From 14cf24570585fd8f072057fcb4a17836b8281eb5 Mon Sep 17 00:00:00 2001 From: Garrett Serack Date: Wed, 16 Nov 2016 13:38:05 -0800 Subject: [PATCH 01/10] fixed typo in autorest.json files --- src/core/AutoRest.Core.Tests/Resource/AutoRest.json | 2 +- src/core/AutoRest/AutoRest.Release.json | 2 +- src/core/AutoRest/AutoRest.json | 2 +- src/dev/AutoRest.Preview/AutoRest.json | 2 +- src/generator/AutoRest.CSharp.Tests/AutoRest.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/AutoRest.Core.Tests/Resource/AutoRest.json b/src/core/AutoRest.Core.Tests/Resource/AutoRest.json index e54a5ceebf..fe6b454bf0 100644 --- a/src/core/AutoRest.Core.Tests/Resource/AutoRest.json +++ b/src/core/AutoRest.Core.Tests/Resource/AutoRest.json @@ -28,7 +28,7 @@ "type": "PluginArs, AutoRest.AzureResourceSchema" }, "Azure.CSharp.Fluent": { - "type": "PluginCsaf, AutoRest.AutoRest.CSharp.Azure.Fluent" + "type": "PluginCsaf, AutoRest.CSharp.Azure.Fluent" } }, "modelers": { diff --git a/src/core/AutoRest/AutoRest.Release.json b/src/core/AutoRest/AutoRest.Release.json index f295741456..3dad1b2f3f 100644 --- a/src/core/AutoRest/AutoRest.Release.json +++ b/src/core/AutoRest/AutoRest.Release.json @@ -28,7 +28,7 @@ "type": "PluginArs, AutoRest.AzureResourceSchema" }, "Azure.CSharp.Fluent": { - "type": "PluginCsaf, AutoRest.AutoRest.CSharp.Azure.Fluent" + "type": "PluginCsaf, AutoRest.CSharp.Azure.Fluent" } }, "codeGenerators": { diff --git a/src/core/AutoRest/AutoRest.json b/src/core/AutoRest/AutoRest.json index 7efc827d94..736b88c741 100644 --- a/src/core/AutoRest/AutoRest.json +++ b/src/core/AutoRest/AutoRest.json @@ -28,7 +28,7 @@ "type": "PluginArs, AutoRest.AzureResourceSchema" }, "Azure.CSharp.Fluent": { - "type": "PluginCsaf, AutoRest.AutoRest.CSharp.Azure.Fluent" + "type": "PluginCsaf, AutoRest.CSharp.Azure.Fluent" } }, diff --git a/src/dev/AutoRest.Preview/AutoRest.json b/src/dev/AutoRest.Preview/AutoRest.json index e54a5ceebf..fe6b454bf0 100644 --- a/src/dev/AutoRest.Preview/AutoRest.json +++ b/src/dev/AutoRest.Preview/AutoRest.json @@ -28,7 +28,7 @@ "type": "PluginArs, AutoRest.AzureResourceSchema" }, "Azure.CSharp.Fluent": { - "type": "PluginCsaf, AutoRest.AutoRest.CSharp.Azure.Fluent" + "type": "PluginCsaf, AutoRest.CSharp.Azure.Fluent" } }, "modelers": { diff --git a/src/generator/AutoRest.CSharp.Tests/AutoRest.json b/src/generator/AutoRest.CSharp.Tests/AutoRest.json index d60389bf04..3775039c21 100644 --- a/src/generator/AutoRest.CSharp.Tests/AutoRest.json +++ b/src/generator/AutoRest.CSharp.Tests/AutoRest.json @@ -25,7 +25,7 @@ "type": "PluginArs, AutoRest.AzureResourceSchema" }, "Azure.CSharp.Fluent": { - "type": "PluginCsaf, AutoRest.AutoRest.CSharp.Azure.Fluent" + "type": "PluginCsaf, AutoRest.CSharp.Azure.Fluent" } }, "modelers": { From 14cc02594aa9648002f665789fd4beb171aeb940 Mon Sep 17 00:00:00 2001 From: Garrett Serack Date: Fri, 18 Nov 2016 15:13:07 -0800 Subject: [PATCH 02/10] Fixed linefeeds, better c# simplifier --- Tools/gulp/gulp-regenerate-expected.js | 1 + gulpfile.js | 62 ++++++++++++------- src/core/AutoRest.Core/CodeGenerator.cs | 18 ++++-- .../AutoRest.Core/Utilities/Extensions.cs | 8 ++- .../AutoRest.Core/Utilities/FileSystem.cs | 28 ++++++--- .../Utilities/MemoryFileSystem.cs | 10 ++- .../AutoRest/Simplify/AddUsingsRewriter.cs | 1 + .../AutoRest/Simplify/CSharpSimplifier.cs | 19 ++++-- .../Templates/ModelTemplate.cshtml | 2 +- 9 files changed, 106 insertions(+), 43 deletions(-) diff --git a/Tools/gulp/gulp-regenerate-expected.js b/Tools/gulp/gulp-regenerate-expected.js index cd4b8dd833..8f6efb4f55 100644 --- a/Tools/gulp/gulp-regenerate-expected.js +++ b/Tools/gulp/gulp-regenerate-expected.js @@ -84,6 +84,7 @@ function gulpRegenerateExpected(options, done) { var mappingBaseDir = optsMappingsValue instanceof Array ? optsMappingsValue[0] : optsMappingsValue; var args = [ GetAutoRestFolder()+'AutoRest.exe', +// '-verbose', '-Modeler', opts.modeler, '-CodeGenerator', opts.codeGenerator, '-PayloadFlatteningThreshold', opts.flatteningThreshold, diff --git a/gulpfile.js b/gulpfile.js index 2971fdd217..1dd2545ec4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -116,6 +116,7 @@ var rubyMappings = { 'custom_base_uri_more':['../../dev/TestServer/swagger/custom-baseUrl-more-options.json', 'CustomBaseUriMoreModule'] }; +/* Until GO is back in the main branch var goMappings = { 'body-array':['../../dev/TestServer/swagger/body-array.json','arraygroup'], 'body-boolean':['../../dev/TestServer/swagger/body-boolean.json', 'booleangroup'], @@ -142,6 +143,8 @@ var goMappings = { 'paging':['../../dev/TestServer/swagger/paging.json', 'paginggroup'], 'azurereport':['../../dev/TestServer/swagger/azure-report.json', 'azurereport'] }; +*/ + var defaultAzureMappings = { 'AcceptanceTests/Lro': '../../dev/TestServer/swagger/lro.json', @@ -189,18 +192,17 @@ gulp.task('regenerate:expected', function(cb){ [ 'regenerate:expected:cs', 'regenerate:expected:csazure', -// disabling until they make it back to master. // 'regenerate:expected:csazurefluent', 'regenerate:expected:node', 'regenerate:expected:nodeazure', 'regenerate:expected:ruby', 'regenerate:expected:rubyazure', -// 'regenerate:expected:java', -// 'regenerate:expected:javaazure', -// 'regenerate:expected:javaazurefluent', 'regenerate:expected:python', 'regenerate:expected:pythonazure', 'regenerate:expected:samples', +// 'regenerate:expected:java', +// 'regenerate:expected:javaazure', +// 'regenerate:expected:javaazurefluent', // 'regenerate:expected:go' ], cb); @@ -212,12 +214,12 @@ gulp.task('regenerate:delete', function(cb){ 'src/generator/AutoRest.CSharp.Tests/Expected', 'src/generator/AutoRest.NodeJS.Tests/Expected', 'src/generator/AutoRest.NodeJS.Azure.Tests/Expected', + 'src/generator/AutoRest.Python.Tests/Expected', + 'src/generator/AutoRest.Python.Azure.Tests/Expected', //'src/generator/AutoRest.Java.Tests/src/main/java', //'src/generator/AutoRest.Java.Azure.Tests/src/main/java', //'src/generator/AutoRest.Java.Azure.Fluent.Tests/src/main/java', - 'src/generator/AutoRest.Python.Tests/Expected', - 'src/generator/AutoRest.Python.Azure.Tests/Expected', - 'src/generator/AutoRest.Go.Tests/src/tests/generated' + //'src/generator/AutoRest.Go.Tests/src/tests/generated' ], cb); }); @@ -330,6 +332,7 @@ gulp.task('regenerate:expected:ruby', function(cb){ }, cb); }) +/* Until JAVA is back in master gulp.task('regenerate:expected:javaazure', function(cb){ mappings = {}; for (var key in defaultAzureMappings) { @@ -391,6 +394,7 @@ gulp.task('regenerate:expected:java', function(cb){ 'nsPrefix': 'Fixtures' }, cb); }) +*/ gulp.task('regenerate:expected:csazure', ['regenerate:expected:csazurecomposite','regenerate:expected:csazureallsync', 'regenerate:expected:csazurenosync'], function (cb) { mappings = mergeOptions({ @@ -408,6 +412,8 @@ gulp.task('regenerate:expected:csazure', ['regenerate:expected:csazurecomposite' }, cb); }); +/* Disable CSFluent for now. + gulp.task('regenerate:expected:csazurefluent', ['regenerate:expected:csazurefluentcomposite','regenerate:expected:csazurefluentallsync', 'regenerate:expected:csazurefluentnosync'], function (cb) { mappings = mergeOptions({ 'AcceptanceTests/AzureBodyDuration': '../../dev/TestServer/swagger/body-duration.json' @@ -423,6 +429,7 @@ gulp.task('regenerate:expected:csazurefluent', ['regenerate:expected:csazureflue 'flatteningThreshold': '1' }, cb); }); +*/ gulp.task('regenerate:expected:cs', ['regenerate:expected:cswithcreds', 'regenerate:expected:cscomposite', 'regenerate:expected:csallsync', 'regenerate:expected:csnosync'], function (cb) { mappings = mergeOptions({ @@ -519,6 +526,7 @@ gulp.task('regenerate:expected:csazureallsync', function(cb){ }, cb); }); +/* Disable CSFluent for now. gulp.task('regenerate:expected:csazurefluentallsync', function(cb){ mappings = mergeOptions( { @@ -536,6 +544,7 @@ gulp.task('regenerate:expected:csazurefluentallsync', function(cb){ 'syncMethods': 'all' }, cb); }); +*/ gulp.task('regenerate:expected:csazurenosync', function(cb){ mappings = mergeOptions( @@ -555,6 +564,7 @@ gulp.task('regenerate:expected:csazurenosync', function(cb){ }, cb); }); +/* Disable CSFluent for now. gulp.task('regenerate:expected:csazurefluentnosync', function(cb){ mappings = mergeOptions( { @@ -572,6 +582,7 @@ gulp.task('regenerate:expected:csazurefluentnosync', function(cb){ 'syncMethods': 'none' }, cb); }); +*/ gulp.task('regenerate:expected:cscomposite', function (cb) { regenExpected({ @@ -599,7 +610,7 @@ gulp.task('regenerate:expected:csazurecomposite', function (cb) { }, cb); }); - +/* Until GO is back in master branch gulp.task('regenerate:expected:go', function(cb){ regenExpected({ 'outputBaseDir': 'src/generator/AutoRest.Go.Tests', @@ -610,7 +621,9 @@ gulp.task('regenerate:expected:go', function(cb){ }, cb); process.env.GOPATH = __dirname + '/src/generator/AutoRest.Go.Tests'; }) +*/ +/* Disable CSFluent for now. gulp.task('regenerate:expected:csazurefluentcomposite', function (cb) { regenExpected({ 'outputBaseDir': 'src/generator/AutoRest.CSharp.Azure.Fluent.Tests', @@ -624,6 +637,7 @@ gulp.task('regenerate:expected:csazurefluentcomposite', function (cb) { }, cb); }); +*/ gulp.task('regenerate:expected:samples', ['regenerate:expected:samples:azure'], function(){ var autorestConfigPath = path.join(basePathOrThrow(), GetAutoRestFolder() + 'AutoRest.json'); var content = fs.readFileSync(autorestConfigPath).toString(); @@ -631,8 +645,8 @@ gulp.task('regenerate:expected:samples', ['regenerate:expected:samples:azure'], content = content.slice(1); } var autorestConfig = JSON.parse(content); - for (var lang in autorestConfig.codeGenerators) { - if (!lang.match(/^Azure\..+/)) { + for (var lang in autorestConfig.plugins) { + if (!lang.match(/^Azure\..+/) && lang != 'Azure.CSharp.Fluent' ) { var generateCmd = path.join(basePathOrThrow(), GetAutoRestFolder() + 'AutoRest.exe') + ' -Modeler Swagger -CodeGenerator ' + lang + ' -OutputDirectory ' + path.join(basePathOrThrow(), 'Samples/petstore/' + lang) + ' -Namespace Petstore -Input ' + path.join(basePathOrThrow(), 'Samples/petstore/petstore.json') + ' -Header NONE'; exec(clrCmd(generateCmd), function(err, stdout, stderr) { console.log(stdout); @@ -649,8 +663,8 @@ gulp.task('regenerate:expected:samples:azure', function(){ content = content.slice(1); } var autorestConfig = JSON.parse(content); - for (var lang in autorestConfig.codeGenerators) { - if (lang.match(/^Azure\..+/)) { + for (var lang in autorestConfig.plugins) { + if (lang.match(/^Azure\..+/) && lang != 'Azure.CSharp.Fluent') { var generateCmd = path.join(basePathOrThrow(), GetAutoRestFolder() + 'AutoRest.exe') + ' -Modeler Swagger -CodeGenerator ' + lang + ' -OutputDirectory ' + path.join(basePathOrThrow(), 'Samples/azure-storage/' + lang) + ' -Namespace Petstore -Input ' + path.join(basePathOrThrow(), 'Samples/azure-storage/azure-storage.json') + ' -Header NONE'; exec(clrCmd(generateCmd), function(err, stdout, stderr) { console.log(stdout); @@ -774,18 +788,24 @@ gulp.task('test:node:azure', shell.task('npm test', {cwd: './src/generator/AutoR gulp.task('test:ruby', ['regenerate:expected:ruby'], shell.task('ruby RspecTests/tests_runner.rb', { cwd: './src/generator/AutoRest.Ruby.Tests', verbosity: 3 })); gulp.task('test:ruby:azure', ['regenerate:expected:rubyazure'], shell.task('ruby RspecTests/tests_runner.rb', { cwd: './src/generator/AutoRest.Ruby.Azure.Tests', verbosity: 3 })); -gulp.task('test:java', ['test:java:init', 'test:clientruntime:java:init', 'test:clientruntime:javaazure:init'], shell.task(basePathOrThrow() + '/gradlew :codegen-tests:check', {cwd: './', verbosity: 3})); -gulp.task('test:java:azure', shell.task(basePathOrThrow() + '/gradlew :azure-codegen-tests:check', {cwd: './', verbosity: 3})); gulp.task('test:python', shell.task('tox', {cwd: './src/generator/AutoRest.Python.Tests/', verbosity: 3})); gulp.task('test:python:azure', shell.task('tox', {cwd: './src/generator/AutoRest.Python.Azure.Tests/', verbosity: 3})); +/* Until JAVA is back in master +gulp.task('test:java', ['test:java:init', 'test:clientruntime:java:init', 'test:clientruntime:javaazure:init'], shell.task(basePathOrThrow() + '/gradlew :codegen-tests:check', {cwd: './', verbosity: 3})); +gulp.task('test:java:azure', shell.task(basePathOrThrow() + '/gradlew :azure-codegen-tests:check', {cwd: './', verbosity: 3})); +*/ + +/* gulp.task('test:go', ['regenerate:expected:go'], shell.task([ 'glide up', 'go fmt ./generated/...', 'go run ./runner.go' ], {cwd: './src/generator/AutoRest.Go.Tests/src/tests', verbosity: 3}) ); +*/ + var xunitTestsDlls = [ ]; @@ -886,13 +906,13 @@ gulp.task('test', function(cb){ 'test:xunit', 'test:node', 'test:node:azure', -// DISABLING TESTS FOR LANGUAGES UNTIL MERGED INTO NEW MODEL 'test:ruby', 'test:ruby:azure', -// 'test:java', -// 'test:java:azure', 'test:python', 'test:python:azure', +// DISABLING TESTS FOR LANGUAGES UNTIL MERGED INTO NEW MODEL +// 'test:java', +// 'test:java:azure', // 'test:go', cb); } else { @@ -900,14 +920,14 @@ gulp.task('test', function(cb){ // 'test:xunit', 'test:node', 'test:node:azure', -// DISABLING TESTS FOR LANGUAGES UNTIL MERGED INTO NEW MODEL -// and solve issues with linux building... 'test:ruby', 'test:ruby:azure', -// 'test:java', -// 'test:java:azure', 'test:python', 'test:python:azure', +// DISABLING TESTS FOR LANGUAGES UNTIL MERGED INTO NEW MODEL +// and solve issues with linux building... +// 'test:java', +// 'test:java:azure', // 'test:go', cb); } diff --git a/src/core/AutoRest.Core/CodeGenerator.cs b/src/core/AutoRest.Core/CodeGenerator.cs index fecb3a2474..0a1d75428a 100644 --- a/src/core/AutoRest.Core/CodeGenerator.cs +++ b/src/core/AutoRest.Core/CodeGenerator.cs @@ -53,7 +53,7 @@ private void ResetFileList() public virtual /* async */ Task Generate(CodeModel codeModel) { ResetFileList(); - + // since we're not actually async, return a completed task. return "".AsResultTask(); } @@ -92,13 +92,13 @@ public async Task Write(string template, string fileName, bool skipEmptyLines) if (Settings.Instance.OutputFileName != null) { - if(!IsSingleFileGenerationSupported) + if (!IsSingleFileGenerationSupported) { Logger.LogError(new ArgumentException(Settings.Instance.OutputFileName), Resources.LanguageDoesNotSupportSingleFileGeneration, Settings.Instance.CodeGenerator); ErrorManager.ThrowErrors(); } - + filePath = Path.Combine(Settings.Instance.OutputDirectory, Settings.Instance.OutputFileName); if (firstTimeWriteSingleFile) @@ -117,24 +117,30 @@ public async Task Write(string template, string fileName, bool skipEmptyLines) throw new Exception($"Duplicate File Generation: {filePath}"); } FileList.Add(filePath); - Settings.Instance.FileSystem.DeleteFile(filePath); + Settings.Instance.FileSystem.DeleteFile(filePath); } // Make sure the directory exist Settings.Instance.FileSystem.CreateDirectory(Path.GetDirectoryName(filePath)); + var lineEnding = filePath.LineEnding(); + using (StringReader streamReader = new StringReader(template)) using (TextWriter textWriter = Settings.Instance.FileSystem.GetTextWriter(filePath)) { string line; while ((line = streamReader.ReadLine()) != null) { + // remove any errant line endings, and trim whitespace from the end too. + line = line.Replace("\r", "").Replace("\n", "").TrimEnd(' ','\r','\n','\t'); + if (line.Contains(TemplateConstants.EmptyLine)) { - await textWriter.WriteLineAsync(); + await textWriter.WriteAsync(lineEnding); } else if (!skipEmptyLines || !string.IsNullOrWhiteSpace(line)) { - await textWriter.WriteLineAsync(line); + await textWriter.WriteAsync(line); + await textWriter.WriteAsync(lineEnding); } } } diff --git a/src/core/AutoRest.Core/Utilities/Extensions.cs b/src/core/AutoRest.Core/Utilities/Extensions.cs index 6552a8c0af..4cd2d735e6 100644 --- a/src/core/AutoRest.Core/Utilities/Extensions.cs +++ b/src/core/AutoRest.Core/Utilities/Extensions.cs @@ -16,7 +16,7 @@ using AutoRest.Core.Model; using AutoRest.Core.Utilities.Collections; using Newtonsoft.Json; - +#pragma warning disable CS3024 // Constraint type is not CLS-compliant namespace AutoRest.Core.Utilities { /// @@ -245,7 +245,9 @@ public static TDestination LoadFrom(this TDestination des return destination; } + public static T? Get(this IDictionary dictionary, string key) where T : struct, IComparable, IConvertible + { object value; @@ -506,6 +508,8 @@ public static Task AsResultTask(this T result) x.SetResult(result); return x.Task; } - + private static string[] LFOnly = new[] { ".py", ".rb", ".ts", ".js" }; + public static bool IsFileLineFeedOnly(this string filename) => LFOnly.Any(each => filename.EndsWith(each, StringComparison.OrdinalIgnoreCase)); + public static string LineEnding(this string filename) => filename.IsFileLineFeedOnly() ? "\n" : "\r\n"; } } \ No newline at end of file diff --git a/src/core/AutoRest.Core/Utilities/FileSystem.cs b/src/core/AutoRest.Core/Utilities/FileSystem.cs index 901932ebf1..f18eed671d 100644 --- a/src/core/AutoRest.Core/Utilities/FileSystem.cs +++ b/src/core/AutoRest.Core/Utilities/FileSystem.cs @@ -3,6 +3,7 @@ using System; using System.IO; +using System.Linq; using System.Net; using System.Text; @@ -12,7 +13,23 @@ public class FileSystem : IFileSystem { public void WriteFile(string path, string contents) { - File.WriteAllText(path, contents, new UTF8Encoding(false, true)); + var eol = path.LineEnding(); + var lines = contents.Split(new[] { "\r\n", "\r", "\n" }, StringSplitOptions.None); + if (File.Exists(path)) + { + var mvname = $"{path}_{new Random().Next(999999)}"; + File.Move(path,mvname); + File.Delete(mvname); + } + // write out the file, with correct line endings for file. + using (var writer = GetTextWriter(path)) + { + foreach (var line in lines) + { + writer.Write(line); + writer.Write(eol); + } + } } /// @@ -53,13 +70,8 @@ public TextWriter GetTextWriter(string path) { return File.AppendText(path); } - return File.CreateText(path); -#if FORCE_UTF8_BOM - // existing ARS files have utf8withbom. - // only necessary for some weird manual testing :D - var utf8WithBom = new System.Text.UTF8Encoding(true); - return new StreamWriter(path, false, utf8WithBom); -#endif + // ensure that we're being very very explicit: NO BYTE ORDER MARK. + return new StreamWriter(path, false, new UTF8Encoding(false, true)); } public bool FileExists(string path) diff --git a/src/core/AutoRest.Core/Utilities/MemoryFileSystem.cs b/src/core/AutoRest.Core/Utilities/MemoryFileSystem.cs index b5e4b896c4..087f9ea21c 100644 --- a/src/core/AutoRest.Core/Utilities/MemoryFileSystem.cs +++ b/src/core/AutoRest.Core/Utilities/MemoryFileSystem.cs @@ -44,8 +44,16 @@ public void WriteFile(string path, string contents) { throw new IOException(string.Format(CultureInfo.InvariantCulture, "Directory {0} does not exist.", directory)); } + var result = new StringBuilder(); + var lines = contents.Split(new[] {"\r\n", "\r", "\n"}, StringSplitOptions.None); + var eol = path.LineEnding(); - VirtualStore[path] = new StringBuilder(contents); + foreach (var l in lines) + { + result.Append(l); + result.Append(eol); + } + VirtualStore[path] = result; } public string ReadFileAsText(string path) diff --git a/src/core/AutoRest/Simplify/AddUsingsRewriter.cs b/src/core/AutoRest/Simplify/AddUsingsRewriter.cs index 3ced499b3c..aef9b62199 100644 --- a/src/core/AutoRest/Simplify/AddUsingsRewriter.cs +++ b/src/core/AutoRest/Simplify/AddUsingsRewriter.cs @@ -11,6 +11,7 @@ #pragma warning disable CS3009 // Base type is not CLS-compliant #pragma warning disable CS3001 #pragma warning disable CS3002 +#pragma warning disable CS3008 namespace AutoRest.Simplify { diff --git a/src/core/AutoRest/Simplify/CSharpSimplifier.cs b/src/core/AutoRest/Simplify/CSharpSimplifier.cs index 68078d10cb..779809a43b 100644 --- a/src/core/AutoRest/Simplify/CSharpSimplifier.cs +++ b/src/core/AutoRest/Simplify/CSharpSimplifier.cs @@ -76,7 +76,7 @@ public async Task Run() var newRoot = await document.GetSyntaxRootAsync(); // get the namespaces used in the file - var names = new GetQualifiedNames().GetNames(newRoot).Concat(new[] {"System.Net.Http"}); + var names = new GetQualifiedNames().GetNames(newRoot); // add the usings that we found newRoot = new AddUsingsRewriter(names).Visit(newRoot); @@ -92,9 +92,20 @@ public async Task Run() // get rid of any BOMs .Trim('\x00EF', '\x00BB', '\x00BF', '\uFEFF', '\u200B'); - // Write out the files back to their original location - var output = Path.Combine(Settings.Instance.FileSystem.CurrentDirectory, document.Name); - Settings.Instance.FileSystem.WriteFile(output, text); + + // special cases the simplifier can't handle. + text = text. + Replace("[Newtonsoft.Json.JsonConverter(", "[JsonConverter("). + Replace("[System.Runtime.Serialization.EnumMember(", "[EnumMember("). + Replace("[Newtonsoft.Json.JsonProperty(", "[JsonProperty("). + Replace("[Newtonsoft.Json.JsonProperty]", "[JsonProperty]"). + Replace("[Newtonsoft.Json.JsonObject]", "[JsonObject]"). + Replace("[Microsoft.Rest.Serialization.JsonTransformation]", "[JsonTransformation]"). + Replace("[Newtonsoft.Json.JsonExtensionData]", "[JsonExtensionData]"); + + // Write out the files back to their original location + var output = Path.Combine(Settings.Instance.FileSystem.CurrentDirectory, document.Name); + Settings.Instance.FileSystem.WriteFile(output, text); } } } diff --git a/src/generator/AutoRest.CSharp/Templates/ModelTemplate.cshtml b/src/generator/AutoRest.CSharp/Templates/ModelTemplate.cshtml index a9eed0d7cd..b2398f68ce 100644 --- a/src/generator/AutoRest.CSharp/Templates/ModelTemplate.cshtml +++ b/src/generator/AutoRest.CSharp/Templates/ModelTemplate.cshtml @@ -158,7 +158,7 @@ namespace @(Settings.Namespace).@(Settings.ModelsName) { @:[Newtonsoft.Json.JsonProperty(PropertyName = "@property.SerializedName")] } - @:public @property.ModelTypeName @property.Name { get; @(property.IsReadOnly ? "private " : "")set; } + @:public @property.ModelTypeName @property.Name { get; @(property.IsReadOnly ? "protected " : "")set; } @EmptyLine } From 5cadd4d4979c81eb6bd6ecf70d7a6d9e096b5492 Mon Sep 17 00:00:00 2001 From: Garrett Serack Date: Fri, 18 Nov 2016 15:14:38 -0800 Subject: [PATCH 03/10] regenerated python (line endings) --- .../models/check_name_availability_result.py | 2 +- .../models/custom_domain.py | 2 +- .../models/endpoints.py | 2 +- .../models/resource.py | 2 +- .../models/storage_account.py | 2 +- ...ount_check_name_availability_parameters.py | 2 +- .../storage_account_create_parameters.py | 2 +- .../models/storage_account_keys.py | 2 +- .../models/storage_account_properties.py | 2 +- ...ge_account_properties_create_parameters.py | 2 +- ...ge_account_properties_update_parameters.py | 2 +- ...orage_account_regenerate_key_parameters.py | 2 +- .../storage_account_update_parameters.py | 2 +- .../storagemanagementclient/models/usage.py | 2 +- .../models/usage_name.py | 2 +- .../Python/swaggerpetstore/models/__init__.py | 4 +- .../Python/swaggerpetstore/models/category.py | 2 +- .../Python/swaggerpetstore/models/order.py | 2 +- .../Python/swaggerpetstore/models/pet.py | 2 +- .../Python/swaggerpetstore/models/tag.py | 2 +- .../Python/swaggerpetstore/models/user.py | 2 +- .../autorestdurationtestservice/__init__.py | 36 +- .../auto_rest_duration_test_service.py | 200 +- .../credentials.py | 40 +- .../autorestdurationtestservice/exceptions.py | 46 +- .../models/__init__.py | 32 +- .../models/error.py | 88 +- .../operations/__init__.py | 32 +- .../operations/duration_operations.py | 456 +-- .../autorestdurationtestservice/version.py | 26 +- .../AzureBodyDuration/setup.py | 80 +- .../__init__.py | 36 +- ...to_rest_parameter_grouping_test_service.py | 200 +- .../credentials.py | 40 +- .../exceptions.py | 46 +- .../models/__init__.py | 48 +- .../models/error.py | 88 +- .../models/first_parameter_group.py | 56 +- ...t_multi_param_groups_second_param_group.py | 54 +- ...meter_grouping_post_optional_parameters.py | 52 +- ...meter_grouping_post_required_parameters.py | 74 +- .../operations/__init__.py | 32 +- .../parameter_grouping_operations.py | 580 ++-- .../version.py | 26 +- .../AzureParameterGrouping/setup.py | 80 +- .../autorestreportserviceforazure/__init__.py | 36 +- .../auto_rest_report_service_for_azure.py | 290 +- .../credentials.py | 40 +- .../exceptions.py | 46 +- .../models/__init__.py | 32 +- .../models/error.py | 88 +- .../autorestreportserviceforazure/version.py | 26 +- .../AcceptanceTests/AzureReport/setup.py | 80 +- .../__init__.py | 36 +- ...o_rest_resource_flattening_test_service.py | 802 ++--- .../credentials.py | 40 +- .../exceptions.py | 46 +- .../models/__init__.py | 44 +- .../models/error.py | 88 +- .../models/flattened_product.py | 120 +- .../models/resource.py | 104 +- .../models/resource_collection.py | 74 +- .../version.py | 26 +- .../AcceptanceTests/AzureResource/setup.py | 80 +- .../__init__.py | 36 +- .../credentials.py | 40 +- .../exceptions.py | 46 +- .../models/__init__.py | 40 +- .../models/error.py | 96 +- ...ed_request_id_param_grouping_parameters.py | 2 +- .../models/odata_filter.py | 62 +- .../operations/__init__.py | 60 +- .../api_version_default_operations.py | 410 +-- .../operations/header_operations.py | 276 +- .../operations/odata_operations.py | 178 +- .../skip_url_encoding_operations.py | 736 ++-- .../subscription_in_credentials_operations.py | 540 +-- .../xms_client_request_id_operations.py | 250 +- .../version.py | 26 +- .../AcceptanceTests/AzureSpecials/setup.py | 80 +- .../__init__.py | 36 +- ...uto_rest_parameterized_host_test_client.py | 216 +- .../credentials.py | 40 +- .../exceptions.py | 46 +- .../models/__init__.py | 32 +- .../models/error.py | 88 +- .../operations/__init__.py | 32 +- .../operations/paths_operations.py | 164 +- .../version.py | 26 +- .../AcceptanceTests/CustomBaseUri/setup.py | 80 +- .../Head/autorestheadtestservice/__init__.py | 36 +- .../auto_rest_head_test_service.py | 198 +- .../autorestheadtestservice/credentials.py | 40 +- .../autorestheadtestservice/exceptions.py | 46 +- .../operations/__init__.py | 32 +- .../operations/http_success_operations.py | 334 +- .../Head/autorestheadtestservice/version.py | 26 +- .../Expected/AcceptanceTests/Head/setup.py | 80 +- .../__init__.py | 36 +- .../auto_rest_head_exception_test_service.py | 198 +- .../credentials.py | 40 +- .../exceptions.py | 46 +- .../operations/__init__.py | 32 +- .../operations/head_exception_operations.py | 322 +- .../version.py | 26 +- .../AcceptanceTests/HeadExceptions/setup.py | 80 +- .../__init__.py | 36 +- ...est_long_running_operation_test_service.py | 230 +- .../credentials.py | 40 +- .../exceptions.py | 46 +- .../models/__init__.py | 56 +- .../models/operation_result.py | 68 +- .../models/operation_result_error.py | 62 +- .../models/product.py | 118 +- .../models/resource.py | 104 +- .../models/sku.py | 62 +- .../models/sub_product.py | 90 +- .../models/sub_resource.py | 68 +- .../operations/__init__.py | 44 +- .../lr_os_custom_header_operations.py | 778 ++--- .../operations/lr_os_operations.py | 6 +- .../version.py | 26 +- .../Expected/AcceptanceTests/Lro/setup.py | 80 +- .../autorestpagingtestservice/__init__.py | 36 +- .../auto_rest_paging_test_service.py | 200 +- .../autorestpagingtestservice/credentials.py | 40 +- .../autorestpagingtestservice/exceptions.py | 46 +- .../models/__init__.py | 64 +- .../models/custom_parameter_group.py | 64 +- .../models/operation_result.py | 58 +- .../paging_get_multiple_pages_options.py | 2 +- ..._get_multiple_pages_with_offset_options.py | 2 +- ...paging_get_odata_multiple_pages_options.py | 2 +- .../models/product.py | 56 +- .../models/product_paged.py | 54 +- .../models/product_paged1.py | 54 +- .../models/product_properties.py | 62 +- .../operations/__init__.py | 32 +- .../autorestpagingtestservice/version.py | 26 +- .../Expected/AcceptanceTests/Paging/setup.py | 80 +- .../StorageManagementClient/setup.py | 78 +- .../storagemanagementclient/__init__.py | 36 +- .../storagemanagementclient/credentials.py | 40 +- .../storagemanagementclient/exceptions.py | 46 +- .../models/__init__.py | 124 +- .../storagemanagementclient/models/bar.py | 58 +- .../models/check_name_availability_result.py | 82 +- .../models/custom_domain.py | 68 +- .../models/endpoints.py | 92 +- .../storagemanagementclient/models/foo.py | 58 +- .../models/resource.py | 106 +- .../models/storage_account.py | 2 +- ...ount_check_name_availability_parameters.py | 70 +- .../storage_account_create_parameters.py | 2 +- .../models/storage_account_keys.py | 62 +- .../models/storage_account_paged.py | 54 +- ...orage_account_regenerate_key_parameters.py | 56 +- .../storage_account_update_parameters.py | 2 +- .../models/storage_management_client_enums.py | 112 +- .../models/sub_resource.py | 54 +- .../storagemanagementclient/models/usage.py | 2 +- .../models/usage_list_result.py | 56 +- .../models/usage_name.py | 64 +- .../operations/__init__.py | 36 +- .../operations/usage_operations.py | 182 +- .../storage_management_client.py | 250 +- .../storagemanagementclient/version.py | 26 +- .../microsoftazuretesturl/__init__.py | 36 +- .../microsoftazuretesturl/credentials.py | 40 +- .../microsoftazuretesturl/exceptions.py | 46 +- .../microsoft_azure_test_url.py | 232 +- .../microsoftazuretesturl/models/__init__.py | 36 +- .../microsoftazuretesturl/models/error.py | 88 +- .../models/sample_resource_group.py | 62 +- .../operations/__init__.py | 32 +- .../operations/group_operations.py | 184 +- .../microsoftazuretesturl/version.py | 26 +- .../SubscriptionIdApiVersion/setup.py | 80 +- .../__init__.py | 36 +- .../auto_rest_swagger_bat_array_service.py | 126 +- .../credentials.py | 30 +- .../exceptions.py | 42 +- .../models/__init__.py | 36 +- .../models/error.py | 88 +- .../models/product.py | 62 +- .../operations/__init__.py | 32 +- .../autorestswaggerbatarrayservice/version.py | 26 +- .../AcceptanceTests/BodyArray/setup.py | 80 +- .../autorestbooltestservice/__init__.py | 36 +- .../auto_rest_bool_test_service.py | 126 +- .../autorestbooltestservice/credentials.py | 30 +- .../autorestbooltestservice/exceptions.py | 42 +- .../models/__init__.py | 32 +- .../autorestbooltestservice/models/error.py | 88 +- .../operations/__init__.py | 32 +- .../operations/bool_model_operations.py | 600 ++-- .../autorestbooltestservice/version.py | 26 +- .../AcceptanceTests/BodyBoolean/setup.py | 80 +- .../autorestswaggerbatbyteservice/__init__.py | 36 +- .../auto_rest_swagger_bat_byte_service.py | 126 +- .../credentials.py | 30 +- .../exceptions.py | 42 +- .../models/__init__.py | 32 +- .../models/error.py | 88 +- .../operations/__init__.py | 32 +- .../autorestswaggerbatbyteservice/version.py | 26 +- .../AcceptanceTests/BodyByte/setup.py | 80 +- .../autorestcomplextestservice/__init__.py | 36 +- .../auto_rest_complex_test_service.py | 204 +- .../autorestcomplextestservice/credentials.py | 30 +- .../autorestcomplextestservice/exceptions.py | 42 +- .../models/__init__.py | 140 +- .../models/array_wrapper.py | 54 +- .../auto_rest_complex_test_service_enums.py | 40 +- .../models/basic.py | 80 +- .../models/boolean_wrapper.py | 62 +- .../models/byte_wrapper.py | 54 +- .../autorestcomplextestservice/models/cat.py | 78 +- .../models/cookiecuttershark.py | 82 +- .../models/date_wrapper.py | 62 +- .../models/datetime_wrapper.py | 62 +- .../models/datetimerfc1123_wrapper.py | 62 +- .../models/dictionary_wrapper.py | 54 +- .../autorestcomplextestservice/models/dog.py | 68 +- .../models/double_wrapper.py | 68 +- .../models/duration_wrapper.py | 54 +- .../models/error.py | 88 +- .../autorestcomplextestservice/models/fish.py | 98 +- .../models/float_wrapper.py | 62 +- .../models/goblinshark.py | 108 +- .../models/int_wrapper.py | 62 +- .../models/long_wrapper.py | 62 +- .../autorestcomplextestservice/models/pet.py | 62 +- .../models/readonly_obj.py | 76 +- .../models/salmon.py | 102 +- .../models/sawshark.py | 108 +- .../models/shark.py | 112 +- .../models/siamese.py | 82 +- .../models/string_wrapper.py | 70 +- .../operations/__init__.py | 60 +- .../operations/array_operations.py | 526 +-- .../operations/basic_operations.py | 618 ++-- .../operations/inheritance_operations.py | 252 +- .../polymorphicrecursive_operations.py | 350 +- .../operations/primitive_operations.py | 2076 ++++++------ .../operations/readonlyproperty_operations.py | 248 +- .../autorestcomplextestservice/version.py | 26 +- .../AcceptanceTests/BodyComplex/setup.py | 80 +- .../autorestdatetestservice/__init__.py | 36 +- .../auto_rest_date_test_service.py | 126 +- .../autorestdatetestservice/credentials.py | 30 +- .../autorestdatetestservice/exceptions.py | 42 +- .../models/__init__.py | 32 +- .../autorestdatetestservice/models/error.py | 88 +- .../operations/__init__.py | 32 +- .../operations/date_model_operations.py | 780 ++--- .../autorestdatetestservice/version.py | 26 +- .../AcceptanceTests/BodyDate/setup.py | 80 +- .../autorestdatetimetestservice/__init__.py | 36 +- .../auto_rest_date_time_test_service.py | 126 +- .../credentials.py | 30 +- .../autorestdatetimetestservice/exceptions.py | 42 +- .../models/__init__.py | 32 +- .../models/error.py | 88 +- .../operations/__init__.py | 32 +- .../operations/datetime_model_operations.py | 1774 +++++----- .../autorestdatetimetestservice/version.py | 26 +- .../AcceptanceTests/BodyDateTime/setup.py | 80 +- .../__init__.py | 36 +- ...uto_rest_rfc1123_date_time_test_service.py | 126 +- .../credentials.py | 30 +- .../exceptions.py | 42 +- .../models/__init__.py | 32 +- .../models/error.py | 88 +- .../operations/__init__.py | 32 +- .../operations/datetimerfc1123_operations.py | 870 ++--- .../version.py | 26 +- .../BodyDateTimeRfc1123/setup.py | 80 +- .../__init__.py | 36 +- ...uto_rest_swagger_ba_tdictionary_service.py | 126 +- .../credentials.py | 30 +- .../exceptions.py | 42 +- .../models/__init__.py | 36 +- .../models/error.py | 88 +- .../models/widget.py | 62 +- .../operations/__init__.py | 32 +- .../version.py | 26 +- .../AcceptanceTests/BodyDictionary/setup.py | 80 +- .../autorestdurationtestservice/__init__.py | 36 +- .../auto_rest_duration_test_service.py | 126 +- .../credentials.py | 30 +- .../autorestdurationtestservice/exceptions.py | 42 +- .../models/__init__.py | 32 +- .../models/error.py | 88 +- .../operations/__init__.py | 32 +- .../operations/duration_operations.py | 422 +-- .../autorestdurationtestservice/version.py | 26 +- .../AcceptanceTests/BodyDuration/setup.py | 80 +- .../autorestswaggerbatfileservice/__init__.py | 36 +- .../auto_rest_swagger_bat_file_service.py | 126 +- .../credentials.py | 30 +- .../exceptions.py | 42 +- .../models/__init__.py | 32 +- .../models/error.py | 88 +- .../operations/__init__.py | 32 +- .../operations/files_operations.py | 364 +- .../autorestswaggerbatfileservice/version.py | 26 +- .../AcceptanceTests/BodyFile/setup.py | 80 +- .../__init__.py | 36 +- ...auto_rest_swagger_bat_form_data_service.py | 126 +- .../credentials.py | 30 +- .../exceptions.py | 42 +- .../models/__init__.py | 32 +- .../models/error.py | 88 +- .../operations/__init__.py | 32 +- .../operations/formdata_operations.py | 300 +- .../version.py | 26 +- .../AcceptanceTests/BodyFormData/setup.py | 80 +- .../autorestintegertestservice/__init__.py | 36 +- .../auto_rest_integer_test_service.py | 126 +- .../autorestintegertestservice/credentials.py | 30 +- .../autorestintegertestservice/exceptions.py | 42 +- .../models/__init__.py | 32 +- .../models/error.py | 88 +- .../operations/__init__.py | 32 +- .../operations/int_model_operations.py | 1314 ++++---- .../autorestintegertestservice/version.py | 26 +- .../AcceptanceTests/BodyInteger/setup.py | 80 +- .../autorestnumbertestservice/__init__.py | 36 +- .../auto_rest_number_test_service.py | 126 +- .../autorestnumbertestservice/credentials.py | 30 +- .../autorestnumbertestservice/exceptions.py | 42 +- .../models/__init__.py | 32 +- .../autorestnumbertestservice/models/error.py | 88 +- .../operations/__init__.py | 32 +- .../operations/number_operations.py | 2204 ++++++------ .../autorestnumbertestservice/version.py | 26 +- .../AcceptanceTests/BodyNumber/setup.py | 80 +- .../autorestswaggerbatservice/__init__.py | 36 +- .../auto_rest_swagger_bat_service.py | 136 +- .../autorestswaggerbatservice/credentials.py | 30 +- .../autorestswaggerbatservice/exceptions.py | 42 +- .../models/__init__.py | 44 +- .../auto_rest_swagger_bat_service_enums.py | 38 +- .../autorestswaggerbatservice/models/error.py | 88 +- .../models/ref_color_constant.py | 80 +- .../operations/__init__.py | 36 +- .../autorestswaggerbatservice/version.py | 26 +- .../AcceptanceTests/BodyString/setup.py | 80 +- .../__init__.py | 36 +- ...uto_rest_parameterized_host_test_client.py | 144 +- .../credentials.py | 30 +- .../exceptions.py | 42 +- .../models/__init__.py | 32 +- .../models/error.py | 88 +- .../operations/__init__.py | 32 +- .../operations/paths_operations.py | 154 +- .../version.py | 26 +- .../AcceptanceTests/CustomBaseUri/setup.py | 80 +- .../__init__.py | 36 +- ...t_parameterized_custom_host_test_client.py | 162 +- .../credentials.py | 30 +- .../exceptions.py | 42 +- .../models/__init__.py | 32 +- .../models/error.py | 88 +- .../operations/__init__.py | 32 +- .../operations/paths_operations.py | 176 +- .../version.py | 26 +- .../CustomBaseUriMoreOptions/setup.py | 80 +- .../__init__.py | 36 +- .../auto_rest_swagger_bat_header_service.py | 126 +- .../credentials.py | 30 +- .../exceptions.py | 42 +- .../models/__init__.py | 40 +- ...o_rest_swagger_bat_header_service_enums.py | 38 +- .../models/error.py | 88 +- .../operations/__init__.py | 32 +- .../version.py | 26 +- .../Expected/AcceptanceTests/Header/setup.py | 80 +- .../__init__.py | 36 +- ...o_rest_http_infrastructure_test_service.py | 188 +- .../credentials.py | 30 +- .../exceptions.py | 42 +- .../models/__init__.py | 48 +- .../models/a.py | 80 +- .../models/b.py | 62 +- .../models/c.py | 54 +- .../models/d.py | 54 +- .../models/error.py | 88 +- .../operations/__init__.py | 56 +- .../http_client_failure_operations.py | 2092 ++++++------ .../operations/http_failure_operations.py | 336 +- .../operations/http_retry_operations.py | 780 ++--- .../http_server_failure_operations.py | 412 +-- .../operations/http_success_operations.py | 1698 +++++----- .../multiple_responses_operations.py | 2974 ++++++++--------- .../version.py | 26 +- .../Expected/AcceptanceTests/Http/setup.py | 80 +- .../__init__.py | 36 +- .../credentials.py | 30 +- .../exceptions.py | 42 +- .../models/__init__.py | 60 +- .../models/base_product.py | 2 +- .../models/error.py | 98 +- .../models/flatten_parameter_group.py | 2 +- .../models/flattened_product.py | 134 +- .../models/generic_url.py | 54 +- .../models/resource.py | 104 +- .../models/resource_collection.py | 74 +- .../models/simple_product.py | 2 +- .../version.py | 26 +- .../AcceptanceTests/ModelFlattening/setup.py | 80 +- .../autorestparameterflattening/__init__.py | 36 +- .../auto_rest_parameter_flattening.py | 128 +- .../credentials.py | 30 +- .../autorestparameterflattening/exceptions.py | 42 +- .../models/__init__.py | 32 +- .../availability_set_update_parameters.py | 62 +- .../operations/__init__.py | 32 +- .../availability_sets_operations.py | 176 +- .../autorestparameterflattening/version.py | 26 +- .../ParameterFlattening/setup.py | 80 +- .../Report/autorestreportservice/__init__.py | 36 +- .../auto_rest_report_service.py | 206 +- .../autorestreportservice/credentials.py | 30 +- .../autorestreportservice/exceptions.py | 42 +- .../autorestreportservice/models/__init__.py | 32 +- .../autorestreportservice/models/error.py | 88 +- .../Report/autorestreportservice/version.py | 26 +- .../Expected/AcceptanceTests/Report/setup.py | 80 +- .../__init__.py | 36 +- ...uto_rest_required_optional_test_service.py | 184 +- .../credentials.py | 30 +- .../exceptions.py | 42 +- .../models/__init__.py | 68 +- .../models/array_optional_wrapper.py | 54 +- .../models/array_wrapper.py | 62 +- .../models/class_optional_wrapper.py | 56 +- .../models/class_wrapper.py | 64 +- .../models/error.py | 88 +- .../models/int_optional_wrapper.py | 54 +- .../models/int_wrapper.py | 62 +- .../models/product.py | 70 +- .../models/string_optional_wrapper.py | 54 +- .../models/string_wrapper.py | 62 +- .../operations/__init__.py | 36 +- .../operations/implicit_operations.py | 664 ++-- .../version.py | 26 +- .../AcceptanceTests/RequiredOptional/setup.py | 80 +- .../Url/autoresturltestservice/__init__.py | 36 +- .../auto_rest_url_test_service.py | 184 +- .../Url/autoresturltestservice/credentials.py | 30 +- .../Url/autoresturltestservice/exceptions.py | 42 +- .../autoresturltestservice/models/__init__.py | 40 +- .../auto_rest_url_test_service_enums.py | 38 +- .../autoresturltestservice/models/error.py | 88 +- .../operations/__init__.py | 40 +- .../operations/queries_operations.py | 2916 ++++++++-------- .../Url/autoresturltestservice/version.py | 26 +- .../Expected/AcceptanceTests/Url/setup.py | 80 +- .../__init__.py | 36 +- ...rl_mutli_collection_format_test_service.py | 126 +- .../credentials.py | 30 +- .../exceptions.py | 42 +- .../models/__init__.py | 32 +- .../models/error.py | 88 +- .../operations/__init__.py | 32 +- .../operations/queries_operations.py | 324 +- .../version.py | 26 +- .../UrlMultiCollectionFormat/setup.py | 80 +- .../autorestvalidationtest/__init__.py | 36 +- .../auto_rest_validation_test.py | 620 ++-- .../autorestvalidationtest/credentials.py | 30 +- .../autorestvalidationtest/exceptions.py | 42 +- .../autorestvalidationtest/models/__init__.py | 52 +- .../models/auto_rest_validation_test_enums.py | 34 +- .../models/child_product.py | 78 +- .../models/constant_product.py | 78 +- .../autorestvalidationtest/models/error.py | 96 +- .../autorestvalidationtest/models/product.py | 154 +- .../autorestvalidationtest/version.py | 26 +- .../AcceptanceTests/Validation/setup.py | 80 +- 482 files changed, 28828 insertions(+), 28828 deletions(-) diff --git a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/check_name_availability_result.py b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/check_name_availability_result.py index 560fcbd890..dc255b091c 100644 --- a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/check_name_availability_result.py +++ b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/check_name_availability_result.py @@ -19,7 +19,7 @@ class CheckNameAvailabilityResult(Model): :param message: Gets an error message explaining the Reason value in more detail. :type message: str - """ + """ _attribute_map = { 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, diff --git a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/custom_domain.py b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/custom_domain.py index 0a85435a5c..d59c442ec5 100644 --- a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/custom_domain.py +++ b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/custom_domain.py @@ -15,7 +15,7 @@ class CustomDomain(Model): :param use_sub_domain: Indicates whether indirect CName validation is enabled. Default value is false. This should only be set on updates :type use_sub_domain: bool - """ + """ _validation = { 'name': {'required': True}, diff --git a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/endpoints.py b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/endpoints.py index e86ca14708..3f6495b90e 100644 --- a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/endpoints.py +++ b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/endpoints.py @@ -17,7 +17,7 @@ class Endpoints(Model): :type table: str :param file: Gets the file endpoint. :type file: str - """ + """ _attribute_map = { 'blob': {'key': 'blob', 'type': 'str'}, diff --git a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/resource.py b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/resource.py index 83a1a02d75..f222a5762f 100644 --- a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/resource.py +++ b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/resource.py @@ -21,7 +21,7 @@ class Resource(Model): :type location: str :param tags: Resource tags :type tags: dict - """ + """ _validation = { 'id': {'readonly': True}, diff --git a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account.py b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account.py index 8cce44fb9b..fbeedbd303 100644 --- a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account.py +++ b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account.py @@ -24,7 +24,7 @@ class StorageAccount(Resource): :param properties: :type properties: :class:`StorageAccountProperties ` - """ + """ _validation = { 'id': {'readonly': True}, diff --git a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_check_name_availability_parameters.py b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_check_name_availability_parameters.py index f8103ee870..4a6d18da15 100644 --- a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_check_name_availability_parameters.py +++ b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_check_name_availability_parameters.py @@ -12,7 +12,7 @@ class StorageAccountCheckNameAvailabilityParameters(Model): :type name: str :param type: Default value: "Microsoft.Storage/storageAccounts" . :type type: str - """ + """ _validation = { 'name': {'required': True}, diff --git a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_create_parameters.py b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_create_parameters.py index bf2224d39a..3101038718 100644 --- a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_create_parameters.py +++ b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_create_parameters.py @@ -15,7 +15,7 @@ class StorageAccountCreateParameters(Model): :param properties: :type properties: :class:`StorageAccountPropertiesCreateParameters ` - """ + """ _validation = { 'location': {'required': True}, diff --git a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_keys.py b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_keys.py index a5d880f68b..646e7df227 100644 --- a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_keys.py +++ b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_keys.py @@ -12,7 +12,7 @@ class StorageAccountKeys(Model): :type key1: str :param key2: Gets the value of key 2. :type key2: str - """ + """ _attribute_map = { 'key1': {'key': 'key1', 'type': 'str'}, diff --git a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_properties.py b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_properties.py index 73407faf56..eff0339d21 100644 --- a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_properties.py +++ b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_properties.py @@ -57,7 +57,7 @@ class StorageAccountProperties(Model): location of the storage account. Only available if the accountType is StandardRAGRS. :type secondary_endpoints: :class:`Endpoints ` - """ + """ _attribute_map = { 'provisioning_state': {'key': 'provisioningState', 'type': 'ProvisioningState'}, diff --git a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_properties_create_parameters.py b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_properties_create_parameters.py index c8b5066e59..720a7170b9 100644 --- a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_properties_create_parameters.py +++ b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_properties_create_parameters.py @@ -13,7 +13,7 @@ class StorageAccountPropertiesCreateParameters(Model): 'Premium_LRS' :type account_type: str or :class:`AccountType ` - """ + """ _validation = { 'account_type': {'required': True}, diff --git a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_properties_update_parameters.py b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_properties_update_parameters.py index 93fd82cccb..8db91906ea 100644 --- a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_properties_update_parameters.py +++ b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_properties_update_parameters.py @@ -20,7 +20,7 @@ class StorageAccountPropertiesUpdateParameters(Model): at this time. To clear the existing custom domain, use an empty string for the custom domain name property. :type custom_domain: :class:`CustomDomain ` - """ + """ _attribute_map = { 'account_type': {'key': 'accountType', 'type': 'AccountType'}, diff --git a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_regenerate_key_parameters.py b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_regenerate_key_parameters.py index 048ec22e65..9fe9955c16 100644 --- a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_regenerate_key_parameters.py +++ b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_regenerate_key_parameters.py @@ -10,7 +10,7 @@ class StorageAccountRegenerateKeyParameters(Model): :param key_name: :type key_name: str - """ + """ _validation = { 'key_name': {'required': True}, diff --git a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_update_parameters.py b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_update_parameters.py index c41ef7f991..af9b60698f 100644 --- a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_update_parameters.py +++ b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/storage_account_update_parameters.py @@ -13,7 +13,7 @@ class StorageAccountUpdateParameters(Model): :param properties: :type properties: :class:`StorageAccountPropertiesUpdateParameters ` - """ + """ _attribute_map = { 'tags': {'key': 'tags', 'type': '{str}'}, diff --git a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/usage.py b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/usage.py index 10f78db7e1..0bfbf79b3a 100644 --- a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/usage.py +++ b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/usage.py @@ -20,7 +20,7 @@ class Usage(Model): :type limit: int :param name: Gets the name of the type of usage. :type name: :class:`UsageName ` - """ + """ _validation = { 'unit': {'required': True}, diff --git a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/usage_name.py b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/usage_name.py index b2e950a61d..470508765c 100644 --- a/Samples/azure-storage/Azure.Python/storagemanagementclient/models/usage_name.py +++ b/Samples/azure-storage/Azure.Python/storagemanagementclient/models/usage_name.py @@ -13,7 +13,7 @@ class UsageName(Model): :param localized_value: Gets a localized string describing the resource name. :type localized_value: str - """ + """ _attribute_map = { 'value': {'key': 'value', 'type': 'str'}, diff --git a/Samples/petstore/Python/swaggerpetstore/models/__init__.py b/Samples/petstore/Python/swaggerpetstore/models/__init__.py index 5c28dafbe7..eba5b68b5f 100644 --- a/Samples/petstore/Python/swaggerpetstore/models/__init__.py +++ b/Samples/petstore/Python/swaggerpetstore/models/__init__.py @@ -4,14 +4,14 @@ from .user import User from .category import Category -from .pet import Pet from .tag import Tag +from .pet import Pet from .order import Order __all__ = [ 'User', 'Category', - 'Pet', 'Tag', + 'Pet', 'Order', ] diff --git a/Samples/petstore/Python/swaggerpetstore/models/category.py b/Samples/petstore/Python/swaggerpetstore/models/category.py index 6bf00d3b69..31dad34e7c 100644 --- a/Samples/petstore/Python/swaggerpetstore/models/category.py +++ b/Samples/petstore/Python/swaggerpetstore/models/category.py @@ -12,7 +12,7 @@ class Category(Model): :type id: long :param name: :type name: str - """ + """ _attribute_map = { 'id': {'key': 'id', 'type': 'long'}, diff --git a/Samples/petstore/Python/swaggerpetstore/models/order.py b/Samples/petstore/Python/swaggerpetstore/models/order.py index b1414b4cf4..571eba2aeb 100644 --- a/Samples/petstore/Python/swaggerpetstore/models/order.py +++ b/Samples/petstore/Python/swaggerpetstore/models/order.py @@ -24,7 +24,7 @@ class Order(Model): :type status: str :param complete: :type complete: bool - """ + """ _validation = { 'id': {'readonly': True}, diff --git a/Samples/petstore/Python/swaggerpetstore/models/pet.py b/Samples/petstore/Python/swaggerpetstore/models/pet.py index a6aff95560..c7870da53c 100644 --- a/Samples/petstore/Python/swaggerpetstore/models/pet.py +++ b/Samples/petstore/Python/swaggerpetstore/models/pet.py @@ -24,7 +24,7 @@ class Pet(Model): :param status: pet status in the store. Possible values include: 'available', 'pending', 'sold' :type status: str - """ + """ _validation = { 'name': {'required': True}, diff --git a/Samples/petstore/Python/swaggerpetstore/models/tag.py b/Samples/petstore/Python/swaggerpetstore/models/tag.py index 71db7ff6f7..67b5ab081a 100644 --- a/Samples/petstore/Python/swaggerpetstore/models/tag.py +++ b/Samples/petstore/Python/swaggerpetstore/models/tag.py @@ -12,7 +12,7 @@ class Tag(Model): :type id: long :param name: :type name: str - """ + """ _attribute_map = { 'id': {'key': 'id', 'type': 'long'}, diff --git a/Samples/petstore/Python/swaggerpetstore/models/user.py b/Samples/petstore/Python/swaggerpetstore/models/user.py index de77af9aae..a7f2e1ffad 100644 --- a/Samples/petstore/Python/swaggerpetstore/models/user.py +++ b/Samples/petstore/Python/swaggerpetstore/models/user.py @@ -24,7 +24,7 @@ class User(Model): :type phone: str :param user_status: User Status :type user_status: int - """ + """ _attribute_map = { 'id': {'key': 'id', 'type': 'long'}, diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/__init__.py index 952ddb1462..4ec26f5748 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_duration_test_service import AutoRestDurationTestService -from .version import VERSION - -__all__ = ['AutoRestDurationTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_duration_test_service import AutoRestDurationTestService +from .version import VERSION + +__all__ = ['AutoRestDurationTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/auto_rest_duration_test_service.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/auto_rest_duration_test_service.py index 3fdf1640f1..8af3333b2e 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/auto_rest_duration_test_service.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/auto_rest_duration_test_service.py @@ -1,100 +1,100 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.duration_operations import DurationOperations -from . import models - - -class AutoRestDurationTestServiceConfiguration(AzureConfiguration): - """Configuration for AutoRestDurationTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if accept_language is not None and not isinstance(accept_language, str): - raise TypeError("Optional parameter 'accept_language' must be str.") - if not base_url: - base_url = 'https://localhost' - - super(AutoRestDurationTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestdurationtestservice/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.accept_language = accept_language - self.long_running_operation_retry_timeout = long_running_operation_retry_timeout - self.generate_client_request_id = generate_client_request_id - - -class AutoRestDurationTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestDurationTestServiceConfiguration - - :ivar duration: Duration operations - :vartype duration: .operations.DurationOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - self.config = AutoRestDurationTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.duration = DurationOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.duration_operations import DurationOperations +from . import models + + +class AutoRestDurationTestServiceConfiguration(AzureConfiguration): + """Configuration for AutoRestDurationTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if accept_language is not None and not isinstance(accept_language, str): + raise TypeError("Optional parameter 'accept_language' must be str.") + if not base_url: + base_url = 'https://localhost' + + super(AutoRestDurationTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestdurationtestservice/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.accept_language = accept_language + self.long_running_operation_retry_timeout = long_running_operation_retry_timeout + self.generate_client_request_id = generate_client_request_id + + +class AutoRestDurationTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestDurationTestServiceConfiguration + + :ivar duration: Duration operations + :vartype duration: .operations.DurationOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + self.config = AutoRestDurationTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) + self._client = ServiceClient(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.duration = DurationOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/credentials.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/credentials.py index 62c6c7ccd7..7a838fea26 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/credentials.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/credentials.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) - -from msrestazure.azure_active_directory import ( - InteractiveCredentials, - ServicePrincipalCredentials, - UserPassCredentials) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) + +from msrestazure.azure_active_directory import ( + InteractiveCredentials, + ServicePrincipalCredentials, + UserPassCredentials) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/exceptions.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/exceptions.py index 52c23132ba..0ed64bcb1f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/exceptions.py @@ -1,23 +1,23 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) - -from msrestazure.azure_exceptions import CloudError +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) + +from msrestazure.azure_exceptions import CloudError diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/models/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/models/error.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/models/error.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/operations/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/operations/__init__.py index af16ab600c..227cc9327c 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .duration_operations import DurationOperations - -__all__ = [ - 'DurationOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .duration_operations import DurationOperations + +__all__ = [ + 'DurationOperations', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/operations/duration_operations.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/operations/duration_operations.py index 12c88946b0..dccf04aaa7 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/operations/duration_operations.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/operations/duration_operations.py @@ -1,228 +1,228 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -import uuid - -from .. import models - - -class DurationOperations(object): - """DurationOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_null( - self, custom_headers=None, raw=False, **operation_config): - """Get null duration value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: timedelta - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/duration/null' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('duration', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_positive_duration( - self, duration_body, custom_headers=None, raw=False, **operation_config): - """Put a positive duration value. - - :param duration_body: - :type duration_body: timedelta - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/duration/positiveduration' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - body_content = self._serialize.body(duration_body, 'duration') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_positive_duration( - self, custom_headers=None, raw=False, **operation_config): - """Get a positive duration value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: timedelta - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/duration/positiveduration' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('duration', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_invalid( - self, custom_headers=None, raw=False, **operation_config): - """Get an invalid duration value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: timedelta - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/duration/invalid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('duration', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +import uuid + +from .. import models + + +class DurationOperations(object): + """DurationOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_null( + self, custom_headers=None, raw=False, **operation_config): + """Get null duration value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: timedelta + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/duration/null' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('duration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_positive_duration( + self, duration_body, custom_headers=None, raw=False, **operation_config): + """Put a positive duration value. + + :param duration_body: + :type duration_body: timedelta + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/duration/positiveduration' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(duration_body, 'duration') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_positive_duration( + self, custom_headers=None, raw=False, **operation_config): + """Get a positive duration value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: timedelta + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/duration/positiveduration' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('duration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_invalid( + self, custom_headers=None, raw=False, **operation_config): + """Get an invalid duration value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: timedelta + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/duration/invalid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('duration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/version.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/version.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/autorestdurationtestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/setup.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/setup.py index 98babc6710..16515125fa 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/setup.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestdurationtestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestDurationTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestDurationTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestdurationtestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestDurationTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestDurationTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/__init__.py index 0909cb886b..375abf70c5 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_parameter_grouping_test_service import AutoRestParameterGroupingTestService -from .version import VERSION - -__all__ = ['AutoRestParameterGroupingTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_parameter_grouping_test_service import AutoRestParameterGroupingTestService +from .version import VERSION + +__all__ = ['AutoRestParameterGroupingTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/auto_rest_parameter_grouping_test_service.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/auto_rest_parameter_grouping_test_service.py index c8f1207be1..352675fde4 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/auto_rest_parameter_grouping_test_service.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/auto_rest_parameter_grouping_test_service.py @@ -1,100 +1,100 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.parameter_grouping_operations import ParameterGroupingOperations -from . import models - - -class AutoRestParameterGroupingTestServiceConfiguration(AzureConfiguration): - """Configuration for AutoRestParameterGroupingTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if accept_language is not None and not isinstance(accept_language, str): - raise TypeError("Optional parameter 'accept_language' must be str.") - if not base_url: - base_url = 'https://localhost' - - super(AutoRestParameterGroupingTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestparametergroupingtestservice/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.accept_language = accept_language - self.long_running_operation_retry_timeout = long_running_operation_retry_timeout - self.generate_client_request_id = generate_client_request_id - - -class AutoRestParameterGroupingTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestParameterGroupingTestServiceConfiguration - - :ivar parameter_grouping: ParameterGrouping operations - :vartype parameter_grouping: .operations.ParameterGroupingOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - self.config = AutoRestParameterGroupingTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.parameter_grouping = ParameterGroupingOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.parameter_grouping_operations import ParameterGroupingOperations +from . import models + + +class AutoRestParameterGroupingTestServiceConfiguration(AzureConfiguration): + """Configuration for AutoRestParameterGroupingTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if accept_language is not None and not isinstance(accept_language, str): + raise TypeError("Optional parameter 'accept_language' must be str.") + if not base_url: + base_url = 'https://localhost' + + super(AutoRestParameterGroupingTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestparametergroupingtestservice/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.accept_language = accept_language + self.long_running_operation_retry_timeout = long_running_operation_retry_timeout + self.generate_client_request_id = generate_client_request_id + + +class AutoRestParameterGroupingTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestParameterGroupingTestServiceConfiguration + + :ivar parameter_grouping: ParameterGrouping operations + :vartype parameter_grouping: .operations.ParameterGroupingOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + self.config = AutoRestParameterGroupingTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) + self._client = ServiceClient(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.parameter_grouping = ParameterGroupingOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/credentials.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/credentials.py index 62c6c7ccd7..7a838fea26 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/credentials.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/credentials.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) - -from msrestazure.azure_active_directory import ( - InteractiveCredentials, - ServicePrincipalCredentials, - UserPassCredentials) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) + +from msrestazure.azure_active_directory import ( + InteractiveCredentials, + ServicePrincipalCredentials, + UserPassCredentials) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/exceptions.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/exceptions.py index 52c23132ba..0ed64bcb1f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/exceptions.py @@ -1,23 +1,23 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) - -from msrestazure.azure_exceptions import CloudError +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) + +from msrestazure.azure_exceptions import CloudError diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/__init__.py index e42dbfffc2..4575d932f3 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/__init__.py @@ -1,24 +1,24 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException -from .parameter_grouping_post_required_parameters import ParameterGroupingPostRequiredParameters -from .parameter_grouping_post_optional_parameters import ParameterGroupingPostOptionalParameters -from .first_parameter_group import FirstParameterGroup -from .parameter_grouping_post_multi_param_groups_second_param_group import ParameterGroupingPostMultiParamGroupsSecondParamGroup - -__all__ = [ - 'Error', 'ErrorException', - 'ParameterGroupingPostRequiredParameters', - 'ParameterGroupingPostOptionalParameters', - 'FirstParameterGroup', - 'ParameterGroupingPostMultiParamGroupsSecondParamGroup', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException +from .parameter_grouping_post_required_parameters import ParameterGroupingPostRequiredParameters +from .parameter_grouping_post_optional_parameters import ParameterGroupingPostOptionalParameters +from .first_parameter_group import FirstParameterGroup +from .parameter_grouping_post_multi_param_groups_second_param_group import ParameterGroupingPostMultiParamGroupsSecondParamGroup + +__all__ = [ + 'Error', 'ErrorException', + 'ParameterGroupingPostRequiredParameters', + 'ParameterGroupingPostOptionalParameters', + 'FirstParameterGroup', + 'ParameterGroupingPostMultiParamGroupsSecondParamGroup', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/error.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/error.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/first_parameter_group.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/first_parameter_group.py index 387a5a9842..f29d092561 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/first_parameter_group.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/first_parameter_group.py @@ -1,28 +1,28 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FirstParameterGroup(Model): - """Additional parameters for a set of operations, such as: - ParameterGrouping_post_multi_param_groups, - ParameterGrouping_post_shared_parameter_group_object. - - :param header_one: - :type header_one: str - :param query_one: Query parameter with default. Default value: 30 . - :type query_one: int - """ - - def __init__(self, header_one=None, query_one=30): - self.header_one = header_one - self.query_one = query_one +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class FirstParameterGroup(Model): + """Additional parameters for a set of operations, such as: + ParameterGrouping_post_multi_param_groups, + ParameterGrouping_post_shared_parameter_group_object. + + :param header_one: + :type header_one: str + :param query_one: Query parameter with default. Default value: 30 . + :type query_one: int + """ + + def __init__(self, header_one=None, query_one=30): + self.header_one = header_one + self.query_one = query_one diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_multi_param_groups_second_param_group.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_multi_param_groups_second_param_group.py index 86eae19681..6ec16bc856 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_multi_param_groups_second_param_group.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_multi_param_groups_second_param_group.py @@ -1,27 +1,27 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParameterGroupingPostMultiParamGroupsSecondParamGroup(Model): - """Additional parameters for the ParameterGrouping_post_multi_param_groups - operation. - - :param header_two: - :type header_two: str - :param query_two: Query parameter with default. Default value: 30 . - :type query_two: int - """ - - def __init__(self, header_two=None, query_two=30): - self.header_two = header_two - self.query_two = query_two +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ParameterGroupingPostMultiParamGroupsSecondParamGroup(Model): + """Additional parameters for the ParameterGrouping_post_multi_param_groups + operation. + + :param header_two: + :type header_two: str + :param query_two: Query parameter with default. Default value: 30 . + :type query_two: int + """ + + def __init__(self, header_two=None, query_two=30): + self.header_two = header_two + self.query_two = query_two diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_optional_parameters.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_optional_parameters.py index 7e0ac1298a..14db22863d 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_optional_parameters.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_optional_parameters.py @@ -1,26 +1,26 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParameterGroupingPostOptionalParameters(Model): - """Additional parameters for the ParameterGrouping_post_optional operation. - - :param custom_header: - :type custom_header: str - :param query: Query parameter with default. Default value: 30 . - :type query: int - """ - - def __init__(self, custom_header=None, query=30): - self.custom_header = custom_header - self.query = query +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ParameterGroupingPostOptionalParameters(Model): + """Additional parameters for the ParameterGrouping_post_optional operation. + + :param custom_header: + :type custom_header: str + :param query: Query parameter with default. Default value: 30 . + :type query: int + """ + + def __init__(self, custom_header=None, query=30): + self.custom_header = custom_header + self.query = query diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_required_parameters.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_required_parameters.py index fb472137ad..7d36b3b4b6 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_required_parameters.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/models/parameter_grouping_post_required_parameters.py @@ -1,37 +1,37 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ParameterGroupingPostRequiredParameters(Model): - """Additional parameters for the ParameterGrouping_post_required operation. - - :param body: - :type body: int - :param custom_header: - :type custom_header: str - :param query: Query parameter with default. Default value: 30 . - :type query: int - :param path: Path parameter - :type path: str - """ - - _validation = { - 'body': {'required': True}, - 'path': {'required': True}, - } - - def __init__(self, body, path, custom_header=None, query=30): - self.body = body - self.custom_header = custom_header - self.query = query - self.path = path +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ParameterGroupingPostRequiredParameters(Model): + """Additional parameters for the ParameterGrouping_post_required operation. + + :param body: + :type body: int + :param custom_header: + :type custom_header: str + :param query: Query parameter with default. Default value: 30 . + :type query: int + :param path: Path parameter + :type path: str + """ + + _validation = { + 'body': {'required': True}, + 'path': {'required': True}, + } + + def __init__(self, body, path, custom_header=None, query=30): + self.body = body + self.custom_header = custom_header + self.query = query + self.path = path diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/operations/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/operations/__init__.py index 2be61427de..1c116ad703 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .parameter_grouping_operations import ParameterGroupingOperations - -__all__ = [ - 'ParameterGroupingOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .parameter_grouping_operations import ParameterGroupingOperations + +__all__ = [ + 'ParameterGroupingOperations', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/operations/parameter_grouping_operations.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/operations/parameter_grouping_operations.py index b7d755bdca..4a61bc6a79 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/operations/parameter_grouping_operations.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/operations/parameter_grouping_operations.py @@ -1,290 +1,290 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -import uuid - -from .. import models - - -class ParameterGroupingOperations(object): - """ParameterGroupingOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def post_required( - self, parameter_grouping_post_required_parameters, custom_headers=None, raw=False, **operation_config): - """Post a bunch of required parameters grouped. - - :param parameter_grouping_post_required_parameters: Additional - parameters for the operation - :type parameter_grouping_post_required_parameters: - :class:`ParameterGroupingPostRequiredParameters - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - body = None - if parameter_grouping_post_required_parameters is not None: - body = parameter_grouping_post_required_parameters.body - custom_header = None - if parameter_grouping_post_required_parameters is not None: - custom_header = parameter_grouping_post_required_parameters.custom_header - query = None - if parameter_grouping_post_required_parameters is not None: - query = parameter_grouping_post_required_parameters.query - path = None - if parameter_grouping_post_required_parameters is not None: - path = parameter_grouping_post_required_parameters.path - - # Construct URL - url = '/parameterGrouping/postRequired/{path}' - path_format_arguments = { - 'path': self._serialize.url("path", path, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if query is not None: - query_parameters['query'] = self._serialize.query("query", query, 'int') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - if custom_header is not None: - header_parameters['customHeader'] = self._serialize.header("custom_header", custom_header, 'str') - - # Construct body - body_content = self._serialize.body(body, 'int') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post_optional( - self, parameter_grouping_post_optional_parameters=None, custom_headers=None, raw=False, **operation_config): - """Post a bunch of optional parameters grouped. - - :param parameter_grouping_post_optional_parameters: Additional - parameters for the operation - :type parameter_grouping_post_optional_parameters: - :class:`ParameterGroupingPostOptionalParameters - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - custom_header = None - if parameter_grouping_post_optional_parameters is not None: - custom_header = parameter_grouping_post_optional_parameters.custom_header - query = None - if parameter_grouping_post_optional_parameters is not None: - query = parameter_grouping_post_optional_parameters.query - - # Construct URL - url = '/parameterGrouping/postOptional' - - # Construct parameters - query_parameters = {} - if query is not None: - query_parameters['query'] = self._serialize.query("query", query, 'int') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - if custom_header is not None: - header_parameters['customHeader'] = self._serialize.header("custom_header", custom_header, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post_multi_param_groups( - self, first_parameter_group=None, parameter_grouping_post_multi_param_groups_second_param_group=None, custom_headers=None, raw=False, **operation_config): - """Post parameters from multiple different parameter groups. - - :param first_parameter_group: Additional parameters for the operation - :type first_parameter_group: :class:`FirstParameterGroup - ` - :param parameter_grouping_post_multi_param_groups_second_param_group: - Additional parameters for the operation - :type parameter_grouping_post_multi_param_groups_second_param_group: - :class:`ParameterGroupingPostMultiParamGroupsSecondParamGroup - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - header_one = None - if first_parameter_group is not None: - header_one = first_parameter_group.header_one - query_one = None - if first_parameter_group is not None: - query_one = first_parameter_group.query_one - header_two = None - if parameter_grouping_post_multi_param_groups_second_param_group is not None: - header_two = parameter_grouping_post_multi_param_groups_second_param_group.header_two - query_two = None - if parameter_grouping_post_multi_param_groups_second_param_group is not None: - query_two = parameter_grouping_post_multi_param_groups_second_param_group.query_two - - # Construct URL - url = '/parameterGrouping/postMultipleParameterGroups' - - # Construct parameters - query_parameters = {} - if query_one is not None: - query_parameters['query-one'] = self._serialize.query("query_one", query_one, 'int') - if query_two is not None: - query_parameters['query-two'] = self._serialize.query("query_two", query_two, 'int') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - if header_one is not None: - header_parameters['header-one'] = self._serialize.header("header_one", header_one, 'str') - if header_two is not None: - header_parameters['header-two'] = self._serialize.header("header_two", header_two, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post_shared_parameter_group_object( - self, first_parameter_group=None, custom_headers=None, raw=False, **operation_config): - """Post parameters with a shared parameter group object. - - :param first_parameter_group: Additional parameters for the operation - :type first_parameter_group: :class:`FirstParameterGroup - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - header_one = None - if first_parameter_group is not None: - header_one = first_parameter_group.header_one - query_one = None - if first_parameter_group is not None: - query_one = first_parameter_group.query_one - - # Construct URL - url = '/parameterGrouping/sharedParameterGroupObject' - - # Construct parameters - query_parameters = {} - if query_one is not None: - query_parameters['query-one'] = self._serialize.query("query_one", query_one, 'int') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - if header_one is not None: - header_parameters['header-one'] = self._serialize.header("header_one", header_one, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +import uuid + +from .. import models + + +class ParameterGroupingOperations(object): + """ParameterGroupingOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def post_required( + self, parameter_grouping_post_required_parameters, custom_headers=None, raw=False, **operation_config): + """Post a bunch of required parameters grouped. + + :param parameter_grouping_post_required_parameters: Additional + parameters for the operation + :type parameter_grouping_post_required_parameters: + :class:`ParameterGroupingPostRequiredParameters + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + body = None + if parameter_grouping_post_required_parameters is not None: + body = parameter_grouping_post_required_parameters.body + custom_header = None + if parameter_grouping_post_required_parameters is not None: + custom_header = parameter_grouping_post_required_parameters.custom_header + query = None + if parameter_grouping_post_required_parameters is not None: + query = parameter_grouping_post_required_parameters.query + path = None + if parameter_grouping_post_required_parameters is not None: + path = parameter_grouping_post_required_parameters.path + + # Construct URL + url = '/parameterGrouping/postRequired/{path}' + path_format_arguments = { + 'path': self._serialize.url("path", path, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if query is not None: + query_parameters['query'] = self._serialize.query("query", query, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + if custom_header is not None: + header_parameters['customHeader'] = self._serialize.header("custom_header", custom_header, 'str') + + # Construct body + body_content = self._serialize.body(body, 'int') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post_optional( + self, parameter_grouping_post_optional_parameters=None, custom_headers=None, raw=False, **operation_config): + """Post a bunch of optional parameters grouped. + + :param parameter_grouping_post_optional_parameters: Additional + parameters for the operation + :type parameter_grouping_post_optional_parameters: + :class:`ParameterGroupingPostOptionalParameters + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + custom_header = None + if parameter_grouping_post_optional_parameters is not None: + custom_header = parameter_grouping_post_optional_parameters.custom_header + query = None + if parameter_grouping_post_optional_parameters is not None: + query = parameter_grouping_post_optional_parameters.query + + # Construct URL + url = '/parameterGrouping/postOptional' + + # Construct parameters + query_parameters = {} + if query is not None: + query_parameters['query'] = self._serialize.query("query", query, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + if custom_header is not None: + header_parameters['customHeader'] = self._serialize.header("custom_header", custom_header, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post_multi_param_groups( + self, first_parameter_group=None, parameter_grouping_post_multi_param_groups_second_param_group=None, custom_headers=None, raw=False, **operation_config): + """Post parameters from multiple different parameter groups. + + :param first_parameter_group: Additional parameters for the operation + :type first_parameter_group: :class:`FirstParameterGroup + ` + :param parameter_grouping_post_multi_param_groups_second_param_group: + Additional parameters for the operation + :type parameter_grouping_post_multi_param_groups_second_param_group: + :class:`ParameterGroupingPostMultiParamGroupsSecondParamGroup + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + header_one = None + if first_parameter_group is not None: + header_one = first_parameter_group.header_one + query_one = None + if first_parameter_group is not None: + query_one = first_parameter_group.query_one + header_two = None + if parameter_grouping_post_multi_param_groups_second_param_group is not None: + header_two = parameter_grouping_post_multi_param_groups_second_param_group.header_two + query_two = None + if parameter_grouping_post_multi_param_groups_second_param_group is not None: + query_two = parameter_grouping_post_multi_param_groups_second_param_group.query_two + + # Construct URL + url = '/parameterGrouping/postMultipleParameterGroups' + + # Construct parameters + query_parameters = {} + if query_one is not None: + query_parameters['query-one'] = self._serialize.query("query_one", query_one, 'int') + if query_two is not None: + query_parameters['query-two'] = self._serialize.query("query_two", query_two, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + if header_one is not None: + header_parameters['header-one'] = self._serialize.header("header_one", header_one, 'str') + if header_two is not None: + header_parameters['header-two'] = self._serialize.header("header_two", header_two, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post_shared_parameter_group_object( + self, first_parameter_group=None, custom_headers=None, raw=False, **operation_config): + """Post parameters with a shared parameter group object. + + :param first_parameter_group: Additional parameters for the operation + :type first_parameter_group: :class:`FirstParameterGroup + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + header_one = None + if first_parameter_group is not None: + header_one = first_parameter_group.header_one + query_one = None + if first_parameter_group is not None: + query_one = first_parameter_group.query_one + + # Construct URL + url = '/parameterGrouping/sharedParameterGroupObject' + + # Construct parameters + query_parameters = {} + if query_one is not None: + query_parameters['query-one'] = self._serialize.query("query_one", query_one, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + if header_one is not None: + header_parameters['header-one'] = self._serialize.header("header_one", header_one, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/version.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/version.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autorestparametergroupingtestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/setup.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/setup.py index 8d35ba4d3c..c307c1e77a 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/setup.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestparametergroupingtestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestParameterGroupingTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestParameterGroupingTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestparametergroupingtestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestParameterGroupingTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestParameterGroupingTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/__init__.py index 95a14d1a59..c038eb8a5d 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_report_service_for_azure import AutoRestReportServiceForAzure -from .version import VERSION - -__all__ = ['AutoRestReportServiceForAzure'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_report_service_for_azure import AutoRestReportServiceForAzure +from .version import VERSION + +__all__ = ['AutoRestReportServiceForAzure'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/auto_rest_report_service_for_azure.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/auto_rest_report_service_for_azure.py index d3d0fec522..cfcb399af2 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/auto_rest_report_service_for_azure.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/auto_rest_report_service_for_azure.py @@ -1,145 +1,145 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from msrest.pipeline import ClientRawResponse -import uuid -from . import models - - -class AutoRestReportServiceForAzureConfiguration(AzureConfiguration): - """Configuration for AutoRestReportServiceForAzure - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if accept_language is not None and not isinstance(accept_language, str): - raise TypeError("Optional parameter 'accept_language' must be str.") - if not base_url: - base_url = 'http://localhost' - - super(AutoRestReportServiceForAzureConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestreportserviceforazure/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.accept_language = accept_language - self.long_running_operation_retry_timeout = long_running_operation_retry_timeout - self.generate_client_request_id = generate_client_request_id - - -class AutoRestReportServiceForAzure(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestReportServiceForAzureConfiguration - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - self.config = AutoRestReportServiceForAzureConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - - def get_report( - self, custom_headers=None, raw=False, **operation_config): - """Get test coverage report. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: dict - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/report/azure' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('{int}', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from msrest.pipeline import ClientRawResponse +import uuid +from . import models + + +class AutoRestReportServiceForAzureConfiguration(AzureConfiguration): + """Configuration for AutoRestReportServiceForAzure + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if accept_language is not None and not isinstance(accept_language, str): + raise TypeError("Optional parameter 'accept_language' must be str.") + if not base_url: + base_url = 'http://localhost' + + super(AutoRestReportServiceForAzureConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestreportserviceforazure/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.accept_language = accept_language + self.long_running_operation_retry_timeout = long_running_operation_retry_timeout + self.generate_client_request_id = generate_client_request_id + + +class AutoRestReportServiceForAzure(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestReportServiceForAzureConfiguration + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + self.config = AutoRestReportServiceForAzureConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) + self._client = ServiceClient(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + + def get_report( + self, custom_headers=None, raw=False, **operation_config): + """Get test coverage report. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: dict + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/report/azure' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('{int}', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/credentials.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/credentials.py index 62c6c7ccd7..7a838fea26 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/credentials.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/credentials.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) - -from msrestazure.azure_active_directory import ( - InteractiveCredentials, - ServicePrincipalCredentials, - UserPassCredentials) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) + +from msrestazure.azure_active_directory import ( + InteractiveCredentials, + ServicePrincipalCredentials, + UserPassCredentials) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/exceptions.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/exceptions.py index 52c23132ba..0ed64bcb1f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/exceptions.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/exceptions.py @@ -1,23 +1,23 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) - -from msrestazure.azure_exceptions import CloudError +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) + +from msrestazure.azure_exceptions import CloudError diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/models/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/models/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/models/error.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/models/error.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/version.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/version.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/autorestreportserviceforazure/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/setup.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/setup.py index 8b61dba3ef..d8c4a98051 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/setup.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureReport/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestreportserviceforazure" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestReportServiceForAzure", - author_email="", - url="", - keywords=["Swagger", "AutoRestReportServiceForAzure"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestreportserviceforazure" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestReportServiceForAzure", + author_email="", + url="", + keywords=["Swagger", "AutoRestReportServiceForAzure"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/__init__.py index 9622cb808a..f01b0f4d27 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_resource_flattening_test_service import AutoRestResourceFlatteningTestService -from .version import VERSION - -__all__ = ['AutoRestResourceFlatteningTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_resource_flattening_test_service import AutoRestResourceFlatteningTestService +from .version import VERSION + +__all__ = ['AutoRestResourceFlatteningTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/auto_rest_resource_flattening_test_service.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/auto_rest_resource_flattening_test_service.py index 5a4ea0b886..fe5d1e1672 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/auto_rest_resource_flattening_test_service.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/auto_rest_resource_flattening_test_service.py @@ -1,401 +1,401 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from msrest.pipeline import ClientRawResponse -import uuid -from . import models - - -class AutoRestResourceFlatteningTestServiceConfiguration(AzureConfiguration): - """Configuration for AutoRestResourceFlatteningTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if accept_language is not None and not isinstance(accept_language, str): - raise TypeError("Optional parameter 'accept_language' must be str.") - if not base_url: - base_url = 'http://localhost' - - super(AutoRestResourceFlatteningTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestresourceflatteningtestservice/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.accept_language = accept_language - self.long_running_operation_retry_timeout = long_running_operation_retry_timeout - self.generate_client_request_id = generate_client_request_id - - -class AutoRestResourceFlatteningTestService(object): - """Resource Flattening for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestResourceFlatteningTestServiceConfiguration - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - self.config = AutoRestResourceFlatteningTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - - def put_array( - self, resource_array=None, custom_headers=None, raw=False, **operation_config): - """Put External Resource as an Array. - - :param resource_array: External Resource as an Array to put - :type resource_array: list of :class:`Resource - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azure/resource-flatten/array' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if resource_array is not None: - body_content = self._serialize.body(resource_array, '[Resource]') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_array( - self, custom_headers=None, raw=False, **operation_config): - """Get External Resource as an Array. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: list of :class:`FlattenedProduct - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azure/resource-flatten/array' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('[FlattenedProduct]', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_dictionary( - self, resource_dictionary=None, custom_headers=None, raw=False, **operation_config): - """Put External Resource as a Dictionary. - - :param resource_dictionary: External Resource as a Dictionary to put - :type resource_dictionary: dict - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azure/resource-flatten/dictionary' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if resource_dictionary is not None: - body_content = self._serialize.body(resource_dictionary, '{FlattenedProduct}') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_dictionary( - self, custom_headers=None, raw=False, **operation_config): - """Get External Resource as a Dictionary. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: dict - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azure/resource-flatten/dictionary' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('{FlattenedProduct}', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_resource_collection( - self, resource_complex_object=None, custom_headers=None, raw=False, **operation_config): - """Put External Resource as a ResourceCollection. - - :param resource_complex_object: External Resource as a - ResourceCollection to put - :type resource_complex_object: :class:`ResourceCollection - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azure/resource-flatten/resourcecollection' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if resource_complex_object is not None: - body_content = self._serialize.body(resource_complex_object, 'ResourceCollection') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_resource_collection( - self, custom_headers=None, raw=False, **operation_config): - """Get External Resource as a ResourceCollection. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`ResourceCollection - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azure/resource-flatten/resourcecollection' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ResourceCollection', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from msrest.pipeline import ClientRawResponse +import uuid +from . import models + + +class AutoRestResourceFlatteningTestServiceConfiguration(AzureConfiguration): + """Configuration for AutoRestResourceFlatteningTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if accept_language is not None and not isinstance(accept_language, str): + raise TypeError("Optional parameter 'accept_language' must be str.") + if not base_url: + base_url = 'http://localhost' + + super(AutoRestResourceFlatteningTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestresourceflatteningtestservice/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.accept_language = accept_language + self.long_running_operation_retry_timeout = long_running_operation_retry_timeout + self.generate_client_request_id = generate_client_request_id + + +class AutoRestResourceFlatteningTestService(object): + """Resource Flattening for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestResourceFlatteningTestServiceConfiguration + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + self.config = AutoRestResourceFlatteningTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) + self._client = ServiceClient(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + + def put_array( + self, resource_array=None, custom_headers=None, raw=False, **operation_config): + """Put External Resource as an Array. + + :param resource_array: External Resource as an Array to put + :type resource_array: list of :class:`Resource + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azure/resource-flatten/array' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + if resource_array is not None: + body_content = self._serialize.body(resource_array, '[Resource]') + else: + body_content = None + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_array( + self, custom_headers=None, raw=False, **operation_config): + """Get External Resource as an Array. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: list of :class:`FlattenedProduct + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azure/resource-flatten/array' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('[FlattenedProduct]', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_dictionary( + self, resource_dictionary=None, custom_headers=None, raw=False, **operation_config): + """Put External Resource as a Dictionary. + + :param resource_dictionary: External Resource as a Dictionary to put + :type resource_dictionary: dict + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azure/resource-flatten/dictionary' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + if resource_dictionary is not None: + body_content = self._serialize.body(resource_dictionary, '{FlattenedProduct}') + else: + body_content = None + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_dictionary( + self, custom_headers=None, raw=False, **operation_config): + """Get External Resource as a Dictionary. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: dict + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azure/resource-flatten/dictionary' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('{FlattenedProduct}', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_resource_collection( + self, resource_complex_object=None, custom_headers=None, raw=False, **operation_config): + """Put External Resource as a ResourceCollection. + + :param resource_complex_object: External Resource as a + ResourceCollection to put + :type resource_complex_object: :class:`ResourceCollection + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azure/resource-flatten/resourcecollection' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + if resource_complex_object is not None: + body_content = self._serialize.body(resource_complex_object, 'ResourceCollection') + else: + body_content = None + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_resource_collection( + self, custom_headers=None, raw=False, **operation_config): + """Get External Resource as a ResourceCollection. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`ResourceCollection + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azure/resource-flatten/resourcecollection' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ResourceCollection', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/credentials.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/credentials.py index 62c6c7ccd7..7a838fea26 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/credentials.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/credentials.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) - -from msrestazure.azure_active_directory import ( - InteractiveCredentials, - ServicePrincipalCredentials, - UserPassCredentials) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) + +from msrestazure.azure_active_directory import ( + InteractiveCredentials, + ServicePrincipalCredentials, + UserPassCredentials) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/exceptions.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/exceptions.py index 52c23132ba..0ed64bcb1f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/exceptions.py @@ -1,23 +1,23 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) - -from msrestazure.azure_exceptions import CloudError +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) + +from msrestazure.azure_exceptions import CloudError diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/__init__.py index e190485de4..dd060298b4 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/__init__.py @@ -1,22 +1,22 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException -from .resource import Resource -from .flattened_product import FlattenedProduct -from .resource_collection import ResourceCollection - -__all__ = [ - 'Error', 'ErrorException', - 'Resource', - 'FlattenedProduct', - 'ResourceCollection', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException +from .resource import Resource +from .flattened_product import FlattenedProduct +from .resource_collection import ResourceCollection + +__all__ = [ + 'Error', 'ErrorException', + 'Resource', + 'FlattenedProduct', + 'ResourceCollection', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/error.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/error.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/flattened_product.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/flattened_product.py index fce4281083..ac69f84572 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/flattened_product.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/flattened_product.py @@ -1,60 +1,60 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class FlattenedProduct(Resource): - """FlattenedProduct. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :ivar type: Resource Type - :vartype type: str - :param tags: - :type tags: dict - :param location: Resource Location - :type location: str - :ivar name: Resource Name - :vartype name: str - :param pname: - :type pname: str - :param lsize: - :type lsize: int - :param provisioning_state: - :type provisioning_state: str - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pname': {'key': 'properties.pname', 'type': 'str'}, - 'lsize': {'key': 'properties.lsize', 'type': 'int'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - } - - def __init__(self, tags=None, location=None, pname=None, lsize=None, provisioning_state=None): - super(FlattenedProduct, self).__init__(tags=tags, location=location) - self.pname = pname - self.lsize = lsize - self.provisioning_state = provisioning_state +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class FlattenedProduct(Resource): + """FlattenedProduct. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar type: Resource Type + :vartype type: str + :param tags: + :type tags: dict + :param location: Resource Location + :type location: str + :ivar name: Resource Name + :vartype name: str + :param pname: + :type pname: str + :param lsize: + :type lsize: int + :param provisioning_state: + :type provisioning_state: str + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pname': {'key': 'properties.pname', 'type': 'str'}, + 'lsize': {'key': 'properties.lsize', 'type': 'int'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, tags=None, location=None, pname=None, lsize=None, provisioning_state=None): + super(FlattenedProduct, self).__init__(tags=tags, location=location) + self.pname = pname + self.lsize = lsize + self.provisioning_state = provisioning_state diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/resource.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/resource.py index bd0b84416e..6403ce0d9e 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/resource.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/resource.py @@ -1,52 +1,52 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Some resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :ivar type: Resource Type - :vartype type: str - :param tags: - :type tags: dict - :param location: Resource Location - :type location: str - :ivar name: Resource Name - :vartype name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, tags=None, location=None): - self.id = None - self.type = None - self.tags = tags - self.location = location - self.name = None +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """Some resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar type: Resource Type + :vartype type: str + :param tags: + :type tags: dict + :param location: Resource Location + :type location: str + :ivar name: Resource Name + :vartype name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, tags=None, location=None): + self.id = None + self.type = None + self.tags = tags + self.location = location + self.name = None diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/resource_collection.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/resource_collection.py index 53229c1f58..8e9c1425ec 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/resource_collection.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/models/resource_collection.py @@ -1,37 +1,37 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceCollection(Model): - """ResourceCollection. - - :param productresource: - :type productresource: :class:`FlattenedProduct - ` - :param arrayofresources: - :type arrayofresources: list of :class:`FlattenedProduct - ` - :param dictionaryofresources: - :type dictionaryofresources: dict - """ - - _attribute_map = { - 'productresource': {'key': 'productresource', 'type': 'FlattenedProduct'}, - 'arrayofresources': {'key': 'arrayofresources', 'type': '[FlattenedProduct]'}, - 'dictionaryofresources': {'key': 'dictionaryofresources', 'type': '{FlattenedProduct}'}, - } - - def __init__(self, productresource=None, arrayofresources=None, dictionaryofresources=None): - self.productresource = productresource - self.arrayofresources = arrayofresources - self.dictionaryofresources = dictionaryofresources +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ResourceCollection(Model): + """ResourceCollection. + + :param productresource: + :type productresource: :class:`FlattenedProduct + ` + :param arrayofresources: + :type arrayofresources: list of :class:`FlattenedProduct + ` + :param dictionaryofresources: + :type dictionaryofresources: dict + """ + + _attribute_map = { + 'productresource': {'key': 'productresource', 'type': 'FlattenedProduct'}, + 'arrayofresources': {'key': 'arrayofresources', 'type': '[FlattenedProduct]'}, + 'dictionaryofresources': {'key': 'dictionaryofresources', 'type': '{FlattenedProduct}'}, + } + + def __init__(self, productresource=None, arrayofresources=None, dictionaryofresources=None): + self.productresource = productresource + self.arrayofresources = arrayofresources + self.dictionaryofresources = dictionaryofresources diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/version.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/version.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/autorestresourceflatteningtestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/setup.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/setup.py index 5813acd828..e06838f4ce 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/setup.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureResource/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestresourceflatteningtestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestResourceFlatteningTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestResourceFlatteningTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Resource Flattening for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestresourceflatteningtestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestResourceFlatteningTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestResourceFlatteningTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Resource Flattening for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/__init__.py index 7aaf4898ec..17626ce777 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_azure_special_parameters_test_client import AutoRestAzureSpecialParametersTestClient -from .version import VERSION - -__all__ = ['AutoRestAzureSpecialParametersTestClient'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_azure_special_parameters_test_client import AutoRestAzureSpecialParametersTestClient +from .version import VERSION + +__all__ = ['AutoRestAzureSpecialParametersTestClient'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/credentials.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/credentials.py index 62c6c7ccd7..7a838fea26 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/credentials.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/credentials.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) - -from msrestazure.azure_active_directory import ( - InteractiveCredentials, - ServicePrincipalCredentials, - UserPassCredentials) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) + +from msrestazure.azure_active_directory import ( + InteractiveCredentials, + ServicePrincipalCredentials, + UserPassCredentials) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/exceptions.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/exceptions.py index 52c23132ba..0ed64bcb1f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/exceptions.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/exceptions.py @@ -1,23 +1,23 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) - -from msrestazure.azure_exceptions import CloudError +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) + +from msrestazure.azure_exceptions import CloudError diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/__init__.py index 311785962e..d97197e4c2 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/__init__.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException -from .odata_filter import OdataFilter -from .header_custom_named_request_id_param_grouping_parameters import HeaderCustomNamedRequestIdParamGroupingParameters - -__all__ = [ - 'Error', 'ErrorException', - 'OdataFilter', - 'HeaderCustomNamedRequestIdParamGroupingParameters', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException +from .odata_filter import OdataFilter +from .header_custom_named_request_id_param_grouping_parameters import HeaderCustomNamedRequestIdParamGroupingParameters + +__all__ = [ + 'Error', 'ErrorException', + 'OdataFilter', + 'HeaderCustomNamedRequestIdParamGroupingParameters', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/error.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/error.py index d5271118d3..21effbf908 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/error.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/error.py @@ -1,48 +1,48 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param constant_id: - :type constant_id: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'constant_id': {'key': 'constantId', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, constant_id=None, message=None): - self.status = status - self.constant_id = constant_id - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param constant_id: + :type constant_id: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'constant_id': {'key': 'constantId', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, constant_id=None, message=None): + self.status = status + self.constant_id = constant_id + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/header_custom_named_request_id_param_grouping_parameters.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/header_custom_named_request_id_param_grouping_parameters.py index a13541acb2..d6c632a248 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/header_custom_named_request_id_param_grouping_parameters.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/header_custom_named_request_id_param_grouping_parameters.py @@ -18,7 +18,7 @@ class HeaderCustomNamedRequestIdParamGroupingParameters(Model): :param foo_client_request_id: The fooRequestId :type foo_client_request_id: str - """ + """ _validation = { 'foo_client_request_id': {'required': True}, diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/odata_filter.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/odata_filter.py index cdf0c6f0d4..290e38fe24 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/odata_filter.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/models/odata_filter.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OdataFilter(Model): - """OdataFilter. - - :param id: - :type id: int - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, id=None, name=None): - self.id = id - self.name = name +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OdataFilter(Model): + """OdataFilter. + + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, id=None, name=None): + self.id = id + self.name = name diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/__init__.py index f0243610dd..9f62b9a828 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/__init__.py @@ -1,30 +1,30 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .xms_client_request_id_operations import XMsClientRequestIdOperations -from .subscription_in_credentials_operations import SubscriptionInCredentialsOperations -from .subscription_in_method_operations import SubscriptionInMethodOperations -from .api_version_default_operations import ApiVersionDefaultOperations -from .api_version_local_operations import ApiVersionLocalOperations -from .skip_url_encoding_operations import SkipUrlEncodingOperations -from .odata_operations import OdataOperations -from .header_operations import HeaderOperations - -__all__ = [ - 'XMsClientRequestIdOperations', - 'SubscriptionInCredentialsOperations', - 'SubscriptionInMethodOperations', - 'ApiVersionDefaultOperations', - 'ApiVersionLocalOperations', - 'SkipUrlEncodingOperations', - 'OdataOperations', - 'HeaderOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .xms_client_request_id_operations import XMsClientRequestIdOperations +from .subscription_in_credentials_operations import SubscriptionInCredentialsOperations +from .subscription_in_method_operations import SubscriptionInMethodOperations +from .api_version_default_operations import ApiVersionDefaultOperations +from .api_version_local_operations import ApiVersionLocalOperations +from .skip_url_encoding_operations import SkipUrlEncodingOperations +from .odata_operations import OdataOperations +from .header_operations import HeaderOperations + +__all__ = [ + 'XMsClientRequestIdOperations', + 'SubscriptionInCredentialsOperations', + 'SubscriptionInMethodOperations', + 'ApiVersionDefaultOperations', + 'ApiVersionLocalOperations', + 'SkipUrlEncodingOperations', + 'OdataOperations', + 'HeaderOperations', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/api_version_default_operations.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/api_version_default_operations.py index da5569665e..44730206f9 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/api_version_default_operations.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/api_version_default_operations.py @@ -1,205 +1,205 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -import uuid - -from .. import models - - -class ApiVersionDefaultOperations(object): - """ApiVersionDefaultOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_method_global_valid( - self, custom_headers=None, raw=False, **operation_config): - """GET method with api-version modeled in global settings. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview' - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_method_global_not_provided_valid( - self, custom_headers=None, raw=False, **operation_config): - """GET method with api-version modeled in global settings. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview' - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_path_global_valid( - self, custom_headers=None, raw=False, **operation_config): - """GET method with api-version modeled in global settings. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview' - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_swagger_global_valid( - self, custom_headers=None, raw=False, **operation_config): - """GET method with api-version modeled in global settings. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/apiVersion/swagger/string/none/query/global/2015-07-01-preview' - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +import uuid + +from .. import models + + +class ApiVersionDefaultOperations(object): + """ApiVersionDefaultOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_method_global_valid( + self, custom_headers=None, raw=False, **operation_config): + """GET method with api-version modeled in global settings. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/apiVersion/method/string/none/query/global/2015-07-01-preview' + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_method_global_not_provided_valid( + self, custom_headers=None, raw=False, **operation_config): + """GET method with api-version modeled in global settings. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/apiVersion/method/string/none/query/globalNotProvided/2015-07-01-preview' + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_path_global_valid( + self, custom_headers=None, raw=False, **operation_config): + """GET method with api-version modeled in global settings. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/apiVersion/path/string/none/query/global/2015-07-01-preview' + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_swagger_global_valid( + self, custom_headers=None, raw=False, **operation_config): + """GET method with api-version modeled in global settings. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/apiVersion/swagger/string/none/query/global/2015-07-01-preview' + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/header_operations.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/header_operations.py index 494b2eb65d..df088ef233 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/header_operations.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/header_operations.py @@ -1,138 +1,138 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -import uuid - -from .. import models - - -class HeaderOperations(object): - """HeaderOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def custom_named_request_id( - self, foo_client_request_id, custom_headers=None, raw=False, **operation_config): - """Send foo-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in - the header of the request. - - :param foo_client_request_id: The fooRequestId - :type foo_client_request_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/customNamedRequestId' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['foo-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - header_parameters['foo-client-request-id'] = self._serialize.header("foo_client_request_id", foo_client_request_id, 'str') - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'foo-request-id': 'str', - }) - return client_raw_response - - def custom_named_request_id_param_grouping( - self, header_custom_named_request_id_param_grouping_parameters, custom_headers=None, raw=False, **operation_config): - """Send foo-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in - the header of the request, via a parameter group. - - :param header_custom_named_request_id_param_grouping_parameters: - Additional parameters for the operation - :type header_custom_named_request_id_param_grouping_parameters: - :class:`HeaderCustomNamedRequestIdParamGroupingParameters - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - foo_client_request_id = None - if header_custom_named_request_id_param_grouping_parameters is not None: - foo_client_request_id = header_custom_named_request_id_param_grouping_parameters.foo_client_request_id - - # Construct URL - url = '/azurespecials/customNamedRequestIdParamGrouping' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['foo-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - header_parameters['foo-client-request-id'] = self._serialize.header("foo_client_request_id", foo_client_request_id, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'foo-request-id': 'str', - }) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +import uuid + +from .. import models + + +class HeaderOperations(object): + """HeaderOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def custom_named_request_id( + self, foo_client_request_id, custom_headers=None, raw=False, **operation_config): + """Send foo-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in + the header of the request. + + :param foo_client_request_id: The fooRequestId + :type foo_client_request_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/customNamedRequestId' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['foo-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + header_parameters['foo-client-request-id'] = self._serialize.header("foo_client_request_id", foo_client_request_id, 'str') + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + client_raw_response.add_headers({ + 'foo-request-id': 'str', + }) + return client_raw_response + + def custom_named_request_id_param_grouping( + self, header_custom_named_request_id_param_grouping_parameters, custom_headers=None, raw=False, **operation_config): + """Send foo-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 in + the header of the request, via a parameter group. + + :param header_custom_named_request_id_param_grouping_parameters: + Additional parameters for the operation + :type header_custom_named_request_id_param_grouping_parameters: + :class:`HeaderCustomNamedRequestIdParamGroupingParameters + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + foo_client_request_id = None + if header_custom_named_request_id_param_grouping_parameters is not None: + foo_client_request_id = header_custom_named_request_id_param_grouping_parameters.foo_client_request_id + + # Construct URL + url = '/azurespecials/customNamedRequestIdParamGrouping' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['foo-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + header_parameters['foo-client-request-id'] = self._serialize.header("foo_client_request_id", foo_client_request_id, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + client_raw_response.add_headers({ + 'foo-request-id': 'str', + }) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/odata_operations.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/odata_operations.py index 29092d3cf0..8cf4d3b085 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/odata_operations.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/odata_operations.py @@ -1,89 +1,89 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -import uuid - -from .. import models - - -class OdataOperations(object): - """OdataOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_with_filter( - self, filter=None, top=None, orderby=None, custom_headers=None, raw=False, **operation_config): - """Specify filter parameter with value '$filter=id gt 5 and name eq - 'foo'&$orderby=id&$top=10'. - - :param filter: The filter parameter with value '$filter=id gt 5 and - name eq 'foo''. - :type filter: str - :param top: The top parameter with value 10. - :type top: int - :param orderby: The orderby parameter with value id. - :type orderby: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/odata/filter' - - # Construct parameters - query_parameters = {} - if filter is not None: - query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') - if top is not None: - query_parameters['$top'] = self._serialize.query("top", top, 'int') - if orderby is not None: - query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +import uuid + +from .. import models + + +class OdataOperations(object): + """OdataOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_with_filter( + self, filter=None, top=None, orderby=None, custom_headers=None, raw=False, **operation_config): + """Specify filter parameter with value '$filter=id gt 5 and name eq + 'foo'&$orderby=id&$top=10'. + + :param filter: The filter parameter with value '$filter=id gt 5 and + name eq 'foo''. + :type filter: str + :param top: The top parameter with value 10. + :type top: int + :param orderby: The orderby parameter with value id. + :type orderby: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/odata/filter' + + # Construct parameters + query_parameters = {} + if filter is not None: + query_parameters['$filter'] = self._serialize.query("filter", filter, 'str') + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int') + if orderby is not None: + query_parameters['$orderby'] = self._serialize.query("orderby", orderby, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/skip_url_encoding_operations.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/skip_url_encoding_operations.py index 378a59885d..8f6bc960e9 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/skip_url_encoding_operations.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/skip_url_encoding_operations.py @@ -1,368 +1,368 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -import uuid - -from .. import models - - -class SkipUrlEncodingOperations(object): - """SkipUrlEncodingOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - :ivar unencoded_path_param: An unencoded path parameter with value 'path1/path2/path3'. Constant value: "path1/path2/path3". - :ivar q1: An unencoded query parameter with value 'value1&q2=value2&q3=value3'. Constant value: "value1&q2=value2&q3=value3". - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.unencoded_path_param = "path1/path2/path3" - self.q1 = "value1&q2=value2&q3=value3" - - self.config = config - - def get_method_path_valid( - self, unencoded_path_param, custom_headers=None, raw=False, **operation_config): - """Get method with unencoded path parameter with value - 'path1/path2/path3'. - - :param unencoded_path_param: Unencoded path parameter with value - 'path1/path2/path3' - :type unencoded_path_param: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}' - path_format_arguments = { - 'unencodedPathParam': self._serialize.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_path_path_valid( - self, unencoded_path_param, custom_headers=None, raw=False, **operation_config): - """Get method with unencoded path parameter with value - 'path1/path2/path3'. - - :param unencoded_path_param: Unencoded path parameter with value - 'path1/path2/path3' - :type unencoded_path_param: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}' - path_format_arguments = { - 'unencodedPathParam': self._serialize.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_swagger_path_valid( - self, custom_headers=None, raw=False, **operation_config): - """Get method with unencoded path parameter with value - 'path1/path2/path3'. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}' - path_format_arguments = { - 'unencodedPathParam': self._serialize.url("self.unencoded_path_param", self.unencoded_path_param, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_method_query_valid( - self, q1, custom_headers=None, raw=False, **operation_config): - """Get method with unencoded query parameter with value - 'value1&q2=value2&q3=value3'. - - :param q1: Unencoded query parameter with value - 'value1&q2=value2&q3=value3' - :type q1: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/skipUrlEncoding/method/query/valid' - - # Construct parameters - query_parameters = {} - query_parameters['q1'] = self._serialize.query("q1", q1, 'str', skip_quote=True) - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_method_query_null( - self, q1=None, custom_headers=None, raw=False, **operation_config): - """Get method with unencoded query parameter with value null. - - :param q1: Unencoded query parameter with value null - :type q1: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/skipUrlEncoding/method/query/null' - - # Construct parameters - query_parameters = {} - if q1 is not None: - query_parameters['q1'] = self._serialize.query("q1", q1, 'str', skip_quote=True) - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_path_query_valid( - self, q1, custom_headers=None, raw=False, **operation_config): - """Get method with unencoded query parameter with value - 'value1&q2=value2&q3=value3'. - - :param q1: Unencoded query parameter with value - 'value1&q2=value2&q3=value3' - :type q1: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/skipUrlEncoding/path/query/valid' - - # Construct parameters - query_parameters = {} - query_parameters['q1'] = self._serialize.query("q1", q1, 'str', skip_quote=True) - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_swagger_query_valid( - self, custom_headers=None, raw=False, **operation_config): - """Get method with unencoded query parameter with value - 'value1&q2=value2&q3=value3'. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/skipUrlEncoding/swagger/query/valid' - - # Construct parameters - query_parameters = {} - query_parameters['q1'] = self._serialize.query("self.q1", self.q1, 'str', skip_quote=True) - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +import uuid + +from .. import models + + +class SkipUrlEncodingOperations(object): + """SkipUrlEncodingOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar unencoded_path_param: An unencoded path parameter with value 'path1/path2/path3'. Constant value: "path1/path2/path3". + :ivar q1: An unencoded query parameter with value 'value1&q2=value2&q3=value3'. Constant value: "value1&q2=value2&q3=value3". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.unencoded_path_param = "path1/path2/path3" + self.q1 = "value1&q2=value2&q3=value3" + + self.config = config + + def get_method_path_valid( + self, unencoded_path_param, custom_headers=None, raw=False, **operation_config): + """Get method with unencoded path parameter with value + 'path1/path2/path3'. + + :param unencoded_path_param: Unencoded path parameter with value + 'path1/path2/path3' + :type unencoded_path_param: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/skipUrlEncoding/method/path/valid/{unencodedPathParam}' + path_format_arguments = { + 'unencodedPathParam': self._serialize.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_path_path_valid( + self, unencoded_path_param, custom_headers=None, raw=False, **operation_config): + """Get method with unencoded path parameter with value + 'path1/path2/path3'. + + :param unencoded_path_param: Unencoded path parameter with value + 'path1/path2/path3' + :type unencoded_path_param: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/skipUrlEncoding/path/path/valid/{unencodedPathParam}' + path_format_arguments = { + 'unencodedPathParam': self._serialize.url("unencoded_path_param", unencoded_path_param, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_swagger_path_valid( + self, custom_headers=None, raw=False, **operation_config): + """Get method with unencoded path parameter with value + 'path1/path2/path3'. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/skipUrlEncoding/swagger/path/valid/{unencodedPathParam}' + path_format_arguments = { + 'unencodedPathParam': self._serialize.url("self.unencoded_path_param", self.unencoded_path_param, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_method_query_valid( + self, q1, custom_headers=None, raw=False, **operation_config): + """Get method with unencoded query parameter with value + 'value1&q2=value2&q3=value3'. + + :param q1: Unencoded query parameter with value + 'value1&q2=value2&q3=value3' + :type q1: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/skipUrlEncoding/method/query/valid' + + # Construct parameters + query_parameters = {} + query_parameters['q1'] = self._serialize.query("q1", q1, 'str', skip_quote=True) + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_method_query_null( + self, q1=None, custom_headers=None, raw=False, **operation_config): + """Get method with unencoded query parameter with value null. + + :param q1: Unencoded query parameter with value null + :type q1: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/skipUrlEncoding/method/query/null' + + # Construct parameters + query_parameters = {} + if q1 is not None: + query_parameters['q1'] = self._serialize.query("q1", q1, 'str', skip_quote=True) + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_path_query_valid( + self, q1, custom_headers=None, raw=False, **operation_config): + """Get method with unencoded query parameter with value + 'value1&q2=value2&q3=value3'. + + :param q1: Unencoded query parameter with value + 'value1&q2=value2&q3=value3' + :type q1: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/skipUrlEncoding/path/query/valid' + + # Construct parameters + query_parameters = {} + query_parameters['q1'] = self._serialize.query("q1", q1, 'str', skip_quote=True) + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_swagger_query_valid( + self, custom_headers=None, raw=False, **operation_config): + """Get method with unencoded query parameter with value + 'value1&q2=value2&q3=value3'. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/skipUrlEncoding/swagger/query/valid' + + # Construct parameters + query_parameters = {} + query_parameters['q1'] = self._serialize.query("self.q1", self.q1, 'str', skip_quote=True) + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/subscription_in_credentials_operations.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/subscription_in_credentials_operations.py index eb45d7fc77..6d3e621a6a 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/subscription_in_credentials_operations.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/subscription_in_credentials_operations.py @@ -1,270 +1,270 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -import uuid - -from .. import models - - -class SubscriptionInCredentialsOperations(object): - """SubscriptionInCredentialsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def post_method_global_valid( - self, custom_headers=None, raw=False, **operation_config): - """POST method with subscriptionId modeled in credentials. Set the - credential subscriptionId to '1234-5678-9012-3456' to succeed. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post_method_global_null( - self, custom_headers=None, raw=False, **operation_config): - """POST method with subscriptionId modeled in credentials. Set the - credential subscriptionId to null, and client-side validation should - prevent you from making this call. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post_method_global_not_provided_valid( - self, custom_headers=None, raw=False, **operation_config): - """POST method with subscriptionId modeled in credentials. Set the - credential subscriptionId to '1234-5678-9012-3456' to succeed. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post_path_global_valid( - self, custom_headers=None, raw=False, **operation_config): - """POST method with subscriptionId modeled in credentials. Set the - credential subscriptionId to '1234-5678-9012-3456' to succeed. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post_swagger_global_valid( - self, custom_headers=None, raw=False, **operation_config): - """POST method with subscriptionId modeled in credentials. Set the - credential subscriptionId to '1234-5678-9012-3456' to succeed. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/subscriptionId/swagger/string/none/path/global/1234-5678-9012-3456/{subscriptionId}' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +import uuid + +from .. import models + + +class SubscriptionInCredentialsOperations(object): + """SubscriptionInCredentialsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def post_method_global_valid( + self, custom_headers=None, raw=False, **operation_config): + """POST method with subscriptionId modeled in credentials. Set the + credential subscriptionId to '1234-5678-9012-3456' to succeed. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/subscriptionId/method/string/none/path/global/1234-5678-9012-3456/{subscriptionId}' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post_method_global_null( + self, custom_headers=None, raw=False, **operation_config): + """POST method with subscriptionId modeled in credentials. Set the + credential subscriptionId to null, and client-side validation should + prevent you from making this call. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/subscriptionId/method/string/none/path/global/null/{subscriptionId}' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post_method_global_not_provided_valid( + self, custom_headers=None, raw=False, **operation_config): + """POST method with subscriptionId modeled in credentials. Set the + credential subscriptionId to '1234-5678-9012-3456' to succeed. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/subscriptionId/method/string/none/path/globalNotProvided/1234-5678-9012-3456/{subscriptionId}' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post_path_global_valid( + self, custom_headers=None, raw=False, **operation_config): + """POST method with subscriptionId modeled in credentials. Set the + credential subscriptionId to '1234-5678-9012-3456' to succeed. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/subscriptionId/path/string/none/path/global/1234-5678-9012-3456/{subscriptionId}' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post_swagger_global_valid( + self, custom_headers=None, raw=False, **operation_config): + """POST method with subscriptionId modeled in credentials. Set the + credential subscriptionId to '1234-5678-9012-3456' to succeed. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/subscriptionId/swagger/string/none/path/global/1234-5678-9012-3456/{subscriptionId}' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/xms_client_request_id_operations.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/xms_client_request_id_operations.py index 81450c21ce..4df0e856c7 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/xms_client_request_id_operations.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/operations/xms_client_request_id_operations.py @@ -1,125 +1,125 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError -import uuid - -from .. import models - - -class XMsClientRequestIdOperations(object): - """XMsClientRequestIdOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get( - self, custom_headers=None, raw=False, **operation_config): - """Get method that overwrites x-ms-client-request header with value - 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: :class:`CloudError` - """ - # Construct URL - url = '/azurespecials/overwrite/x-ms-client-request-id/method/' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def param_get( - self, x_ms_client_request_id, custom_headers=None, raw=False, **operation_config): - """Get method that overwrites x-ms-client-request header with value - 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. - - :param x_ms_client_request_id: This should appear as a method - parameter, use value '9C4D50EE-2D56-4CD3-8152-34347DC9F2B0' - :type x_ms_client_request_id: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/azurespecials/overwrite/x-ms-client-request-id/via-param/method/' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - header_parameters['x-ms-client-request-id'] = self._serialize.header("x_ms_client_request_id", x_ms_client_request_id, 'str') - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +import uuid + +from .. import models + + +class XMsClientRequestIdOperations(object): + """XMsClientRequestIdOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get( + self, custom_headers=None, raw=False, **operation_config): + """Get method that overwrites x-ms-client-request header with value + 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: :class:`CloudError` + """ + # Construct URL + url = '/azurespecials/overwrite/x-ms-client-request-id/method/' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def param_get( + self, x_ms_client_request_id, custom_headers=None, raw=False, **operation_config): + """Get method that overwrites x-ms-client-request header with value + 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. + + :param x_ms_client_request_id: This should appear as a method + parameter, use value '9C4D50EE-2D56-4CD3-8152-34347DC9F2B0' + :type x_ms_client_request_id: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/azurespecials/overwrite/x-ms-client-request-id/via-param/method/' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + header_parameters['x-ms-client-request-id'] = self._serialize.header("x_ms_client_request_id", x_ms_client_request_id, 'str') + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/version.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/version.py index 3fe988b27b..c3c46de91a 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/version.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autorestazurespecialparameterstestclient/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "2015-07-01-preview" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "2015-07-01-preview" + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/setup.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/setup.py index 2eab5b4eb3..0265eef74b 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/setup.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestazurespecialparameterstestclient" -VERSION = "2015-07-01-preview" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestAzureSpecialParametersTestClient", - author_email="", - url="", - keywords=["Swagger", "AutoRestAzureSpecialParametersTestClient"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestazurespecialparameterstestclient" +VERSION = "2015-07-01-preview" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestAzureSpecialParametersTestClient", + author_email="", + url="", + keywords=["Swagger", "AutoRestAzureSpecialParametersTestClient"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/__init__.py index 103d881713..55019b8878 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_parameterized_host_test_client import AutoRestParameterizedHostTestClient -from .version import VERSION - -__all__ = ['AutoRestParameterizedHostTestClient'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_parameterized_host_test_client import AutoRestParameterizedHostTestClient +from .version import VERSION + +__all__ = ['AutoRestParameterizedHostTestClient'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/auto_rest_parameterized_host_test_client.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/auto_rest_parameterized_host_test_client.py index 8d1416ab9d..d9414adf1d 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/auto_rest_parameterized_host_test_client.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/auto_rest_parameterized_host_test_client.py @@ -1,108 +1,108 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.paths_operations import PathsOperations -from . import models - - -class AutoRestParameterizedHostTestClientConfiguration(AzureConfiguration): - """Configuration for AutoRestParameterizedHostTestClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param host: A string value that is used as a global part of the - parameterized host - :type host: str - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str filepath: Existing config - """ - - def __init__( - self, credentials, host, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, filepath=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if host is None: - raise ValueError("Parameter 'host' must not be None.") - if not isinstance(host, str): - raise TypeError("Parameter 'host' must be str.") - if accept_language is not None and not isinstance(accept_language, str): - raise TypeError("Optional parameter 'accept_language' must be str.") - base_url = 'http://{accountName}{host}' - - super(AutoRestParameterizedHostTestClientConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestparameterizedhosttestclient/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.host = host - self.accept_language = accept_language - self.long_running_operation_retry_timeout = long_running_operation_retry_timeout - self.generate_client_request_id = generate_client_request_id - - -class AutoRestParameterizedHostTestClient(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestParameterizedHostTestClientConfiguration - - :ivar paths: Paths operations - :vartype paths: .operations.PathsOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param host: A string value that is used as a global part of the - parameterized host - :type host: str - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str filepath: Existing config - """ - - def __init__( - self, credentials, host, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, filepath=None): - - self.config = AutoRestParameterizedHostTestClientConfiguration(credentials, host, accept_language, long_running_operation_retry_timeout, generate_client_request_id, filepath) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.paths = PathsOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.paths_operations import PathsOperations +from . import models + + +class AutoRestParameterizedHostTestClientConfiguration(AzureConfiguration): + """Configuration for AutoRestParameterizedHostTestClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param host: A string value that is used as a global part of the + parameterized host + :type host: str + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str filepath: Existing config + """ + + def __init__( + self, credentials, host, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, filepath=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if host is None: + raise ValueError("Parameter 'host' must not be None.") + if not isinstance(host, str): + raise TypeError("Parameter 'host' must be str.") + if accept_language is not None and not isinstance(accept_language, str): + raise TypeError("Optional parameter 'accept_language' must be str.") + base_url = 'http://{accountName}{host}' + + super(AutoRestParameterizedHostTestClientConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestparameterizedhosttestclient/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.host = host + self.accept_language = accept_language + self.long_running_operation_retry_timeout = long_running_operation_retry_timeout + self.generate_client_request_id = generate_client_request_id + + +class AutoRestParameterizedHostTestClient(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestParameterizedHostTestClientConfiguration + + :ivar paths: Paths operations + :vartype paths: .operations.PathsOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param host: A string value that is used as a global part of the + parameterized host + :type host: str + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str filepath: Existing config + """ + + def __init__( + self, credentials, host, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, filepath=None): + + self.config = AutoRestParameterizedHostTestClientConfiguration(credentials, host, accept_language, long_running_operation_retry_timeout, generate_client_request_id, filepath) + self._client = ServiceClient(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.paths = PathsOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/credentials.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/credentials.py index 62c6c7ccd7..7a838fea26 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/credentials.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/credentials.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) - -from msrestazure.azure_active_directory import ( - InteractiveCredentials, - ServicePrincipalCredentials, - UserPassCredentials) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) + +from msrestazure.azure_active_directory import ( + InteractiveCredentials, + ServicePrincipalCredentials, + UserPassCredentials) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/exceptions.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/exceptions.py index 52c23132ba..0ed64bcb1f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/exceptions.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/exceptions.py @@ -1,23 +1,23 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) - -from msrestazure.azure_exceptions import CloudError +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) + +from msrestazure.azure_exceptions import CloudError diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/error.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/error.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/__init__.py index f345c4b966..75acd01d4c 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .paths_operations import PathsOperations - -__all__ = [ - 'PathsOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .paths_operations import PathsOperations + +__all__ = [ + 'PathsOperations', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/paths_operations.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/paths_operations.py index 01740d1c0b..3d93f5d3d9 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/paths_operations.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/paths_operations.py @@ -1,82 +1,82 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -import uuid - -from .. import models - - -class PathsOperations(object): - """PathsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_empty( - self, account_name, custom_headers=None, raw=False, **operation_config): - """Get a 200 to test a valid base uri. - - :param account_name: Account Name - :type account_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/customuri' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'host': self._serialize.url("self.config.host", self.config.host, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +import uuid + +from .. import models + + +class PathsOperations(object): + """PathsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_empty( + self, account_name, custom_headers=None, raw=False, **operation_config): + """Get a 200 to test a valid base uri. + + :param account_name: Account Name + :type account_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/customuri' + path_format_arguments = { + 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), + 'host': self._serialize.url("self.config.host", self.config.host, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/version.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/version.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/setup.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/setup.py index 5e47fd4399..f82dd8c0f7 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/setup.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestparameterizedhosttestclient" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestParameterizedHostTestClient", - author_email="", - url="", - keywords=["Swagger", "AutoRestParameterizedHostTestClient"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestparameterizedhosttestclient" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestParameterizedHostTestClient", + author_email="", + url="", + keywords=["Swagger", "AutoRestParameterizedHostTestClient"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/__init__.py index a33225c0b3..6413c91141 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_head_test_service import AutoRestHeadTestService -from .version import VERSION - -__all__ = ['AutoRestHeadTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_head_test_service import AutoRestHeadTestService +from .version import VERSION + +__all__ = ['AutoRestHeadTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/auto_rest_head_test_service.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/auto_rest_head_test_service.py index d9f578fc55..23fbb7fd1a 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/auto_rest_head_test_service.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/auto_rest_head_test_service.py @@ -1,99 +1,99 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.http_success_operations import HttpSuccessOperations - - -class AutoRestHeadTestServiceConfiguration(AzureConfiguration): - """Configuration for AutoRestHeadTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if accept_language is not None and not isinstance(accept_language, str): - raise TypeError("Optional parameter 'accept_language' must be str.") - if not base_url: - base_url = 'http://localhost' - - super(AutoRestHeadTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestheadtestservice/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.accept_language = accept_language - self.long_running_operation_retry_timeout = long_running_operation_retry_timeout - self.generate_client_request_id = generate_client_request_id - - -class AutoRestHeadTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestHeadTestServiceConfiguration - - :ivar http_success: HttpSuccess operations - :vartype http_success: .operations.HttpSuccessOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - self.config = AutoRestHeadTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.http_success = HttpSuccessOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.http_success_operations import HttpSuccessOperations + + +class AutoRestHeadTestServiceConfiguration(AzureConfiguration): + """Configuration for AutoRestHeadTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if accept_language is not None and not isinstance(accept_language, str): + raise TypeError("Optional parameter 'accept_language' must be str.") + if not base_url: + base_url = 'http://localhost' + + super(AutoRestHeadTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestheadtestservice/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.accept_language = accept_language + self.long_running_operation_retry_timeout = long_running_operation_retry_timeout + self.generate_client_request_id = generate_client_request_id + + +class AutoRestHeadTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestHeadTestServiceConfiguration + + :ivar http_success: HttpSuccess operations + :vartype http_success: .operations.HttpSuccessOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + self.config = AutoRestHeadTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) + self._client = ServiceClient(self.config.credentials, self.config) + + client_models = {} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.http_success = HttpSuccessOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/credentials.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/credentials.py index 62c6c7ccd7..7a838fea26 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/credentials.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/credentials.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) - -from msrestazure.azure_active_directory import ( - InteractiveCredentials, - ServicePrincipalCredentials, - UserPassCredentials) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) + +from msrestazure.azure_active_directory import ( + InteractiveCredentials, + ServicePrincipalCredentials, + UserPassCredentials) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/exceptions.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/exceptions.py index 52c23132ba..0ed64bcb1f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/exceptions.py @@ -1,23 +1,23 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) - -from msrestazure.azure_exceptions import CloudError +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) + +from msrestazure.azure_exceptions import CloudError diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/operations/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/operations/__init__.py index b7da4af8e6..0d13719d9f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .http_success_operations import HttpSuccessOperations - -__all__ = [ - 'HttpSuccessOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .http_success_operations import HttpSuccessOperations + +__all__ = [ + 'HttpSuccessOperations', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/operations/http_success_operations.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/operations/http_success_operations.py index 75d431c392..089c4c5b59 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/operations/http_success_operations.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/operations/http_success_operations.py @@ -1,167 +1,167 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError -import uuid - - -class HttpSuccessOperations(object): - """HttpSuccessOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def head200( - self, custom_headers=None, raw=False, **operation_config): - """Return 200 status code if successful. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: bool - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: :class:`CloudError` - """ - # Construct URL - url = '/http/success/200' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 404]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = (response.status_code == 200) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - return deserialized - - def head204( - self, custom_headers=None, raw=False, **operation_config): - """Return 204 status code if successful. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: bool - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: :class:`CloudError` - """ - # Construct URL - url = '/http/success/204' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [204, 404]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = (response.status_code == 204) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - return deserialized - - def head404( - self, custom_headers=None, raw=False, **operation_config): - """Return 404 status code if successful. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: bool - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: :class:`CloudError` - """ - # Construct URL - url = '/http/success/404' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [204, 404]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = (response.status_code == 204) - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +import uuid + + +class HttpSuccessOperations(object): + """HttpSuccessOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def head200( + self, custom_headers=None, raw=False, **operation_config): + """Return 200 status code if successful. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: bool + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: :class:`CloudError` + """ + # Construct URL + url = '/http/success/200' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.head(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200, 404]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = (response.status_code == 200) + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + return deserialized + + def head204( + self, custom_headers=None, raw=False, **operation_config): + """Return 204 status code if successful. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: bool + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: :class:`CloudError` + """ + # Construct URL + url = '/http/success/204' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.head(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [204, 404]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = (response.status_code == 204) + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + return deserialized + + def head404( + self, custom_headers=None, raw=False, **operation_config): + """Return 404 status code if successful. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: bool + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: :class:`CloudError` + """ + # Construct URL + url = '/http/success/404' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.head(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [204, 404]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = (response.status_code == 204) + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + return deserialized diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/version.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/version.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/autorestheadtestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/setup.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/setup.py index 512f7ab6a2..b649cbc67b 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/setup.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Head/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestheadtestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestHeadTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestHeadTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestheadtestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestHeadTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestHeadTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/__init__.py index ff8086b41d..0e63032ad6 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_head_exception_test_service import AutoRestHeadExceptionTestService -from .version import VERSION - -__all__ = ['AutoRestHeadExceptionTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_head_exception_test_service import AutoRestHeadExceptionTestService +from .version import VERSION + +__all__ = ['AutoRestHeadExceptionTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/auto_rest_head_exception_test_service.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/auto_rest_head_exception_test_service.py index c75d7ae39b..6f43da7a0a 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/auto_rest_head_exception_test_service.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/auto_rest_head_exception_test_service.py @@ -1,99 +1,99 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.head_exception_operations import HeadExceptionOperations - - -class AutoRestHeadExceptionTestServiceConfiguration(AzureConfiguration): - """Configuration for AutoRestHeadExceptionTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if accept_language is not None and not isinstance(accept_language, str): - raise TypeError("Optional parameter 'accept_language' must be str.") - if not base_url: - base_url = 'http://localhost' - - super(AutoRestHeadExceptionTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestheadexceptiontestservice/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.accept_language = accept_language - self.long_running_operation_retry_timeout = long_running_operation_retry_timeout - self.generate_client_request_id = generate_client_request_id - - -class AutoRestHeadExceptionTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestHeadExceptionTestServiceConfiguration - - :ivar head_exception: HeadException operations - :vartype head_exception: .operations.HeadExceptionOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - self.config = AutoRestHeadExceptionTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.head_exception = HeadExceptionOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.head_exception_operations import HeadExceptionOperations + + +class AutoRestHeadExceptionTestServiceConfiguration(AzureConfiguration): + """Configuration for AutoRestHeadExceptionTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if accept_language is not None and not isinstance(accept_language, str): + raise TypeError("Optional parameter 'accept_language' must be str.") + if not base_url: + base_url = 'http://localhost' + + super(AutoRestHeadExceptionTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestheadexceptiontestservice/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.accept_language = accept_language + self.long_running_operation_retry_timeout = long_running_operation_retry_timeout + self.generate_client_request_id = generate_client_request_id + + +class AutoRestHeadExceptionTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestHeadExceptionTestServiceConfiguration + + :ivar head_exception: HeadException operations + :vartype head_exception: .operations.HeadExceptionOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + self.config = AutoRestHeadExceptionTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) + self._client = ServiceClient(self.config.credentials, self.config) + + client_models = {} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.head_exception = HeadExceptionOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/credentials.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/credentials.py index 62c6c7ccd7..7a838fea26 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/credentials.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/credentials.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) - -from msrestazure.azure_active_directory import ( - InteractiveCredentials, - ServicePrincipalCredentials, - UserPassCredentials) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) + +from msrestazure.azure_active_directory import ( + InteractiveCredentials, + ServicePrincipalCredentials, + UserPassCredentials) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/exceptions.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/exceptions.py index 52c23132ba..0ed64bcb1f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/exceptions.py @@ -1,23 +1,23 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) - -from msrestazure.azure_exceptions import CloudError +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) + +from msrestazure.azure_exceptions import CloudError diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/operations/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/operations/__init__.py index 34d2affb54..db17d230c7 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .head_exception_operations import HeadExceptionOperations - -__all__ = [ - 'HeadExceptionOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .head_exception_operations import HeadExceptionOperations + +__all__ = [ + 'HeadExceptionOperations', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/operations/head_exception_operations.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/operations/head_exception_operations.py index 75d6fcc565..3c9b41b14c 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/operations/head_exception_operations.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/operations/head_exception_operations.py @@ -1,161 +1,161 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError -import uuid - - -class HeadExceptionOperations(object): - """HeadExceptionOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def head200( - self, custom_headers=None, raw=False, **operation_config): - """Return 200 status code if successful. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: :class:`CloudError` - """ - # Construct URL - url = '/http/success/200' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def head204( - self, custom_headers=None, raw=False, **operation_config): - """Return 204 status code if successful. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: :class:`CloudError` - """ - # Construct URL - url = '/http/success/204' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def head404( - self, custom_headers=None, raw=False, **operation_config): - """Return 404 status code if successful. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: :class:`CloudError` - """ - # Construct URL - url = '/http/success/404' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [204]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +import uuid + + +class HeadExceptionOperations(object): + """HeadExceptionOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def head200( + self, custom_headers=None, raw=False, **operation_config): + """Return 200 status code if successful. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: :class:`CloudError` + """ + # Construct URL + url = '/http/success/200' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.head(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def head204( + self, custom_headers=None, raw=False, **operation_config): + """Return 204 status code if successful. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: :class:`CloudError` + """ + # Construct URL + url = '/http/success/204' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.head(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def head404( + self, custom_headers=None, raw=False, **operation_config): + """Return 404 status code if successful. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: :class:`CloudError` + """ + # Construct URL + url = '/http/success/404' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.head(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/version.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/version.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autorestheadexceptiontestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/setup.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/setup.py index dc03bf07bb..3afd098a07 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/setup.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestheadexceptiontestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestHeadExceptionTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestHeadExceptionTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestheadexceptiontestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestHeadExceptionTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestHeadExceptionTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/__init__.py index 63f842d321..eb1578e8c7 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_long_running_operation_test_service import AutoRestLongRunningOperationTestService -from .version import VERSION - -__all__ = ['AutoRestLongRunningOperationTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_long_running_operation_test_service import AutoRestLongRunningOperationTestService +from .version import VERSION + +__all__ = ['AutoRestLongRunningOperationTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/auto_rest_long_running_operation_test_service.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/auto_rest_long_running_operation_test_service.py index 65b19e168b..f5c00edb82 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/auto_rest_long_running_operation_test_service.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/auto_rest_long_running_operation_test_service.py @@ -1,115 +1,115 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.lr_os_operations import LROsOperations -from .operations.lro_retrys_operations import LRORetrysOperations -from .operations.lrosa_ds_operations import LROSADsOperations -from .operations.lr_os_custom_header_operations import LROsCustomHeaderOperations -from . import models - - -class AutoRestLongRunningOperationTestServiceConfiguration(AzureConfiguration): - """Configuration for AutoRestLongRunningOperationTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if accept_language is not None and not isinstance(accept_language, str): - raise TypeError("Optional parameter 'accept_language' must be str.") - if not base_url: - base_url = 'http://localhost' - - super(AutoRestLongRunningOperationTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestlongrunningoperationtestservice/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.accept_language = accept_language - self.long_running_operation_retry_timeout = long_running_operation_retry_timeout - self.generate_client_request_id = generate_client_request_id - - -class AutoRestLongRunningOperationTestService(object): - """Long-running Operation for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestLongRunningOperationTestServiceConfiguration - - :ivar lr_os: LROs operations - :vartype lr_os: .operations.LROsOperations - :ivar lro_retrys: LRORetrys operations - :vartype lro_retrys: .operations.LRORetrysOperations - :ivar lrosa_ds: LROSADs operations - :vartype lrosa_ds: .operations.LROSADsOperations - :ivar lr_os_custom_header: LROsCustomHeader operations - :vartype lr_os_custom_header: .operations.LROsCustomHeaderOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - self.config = AutoRestLongRunningOperationTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.lr_os = LROsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.lro_retrys = LRORetrysOperations( - self._client, self.config, self._serialize, self._deserialize) - self.lrosa_ds = LROSADsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.lr_os_custom_header = LROsCustomHeaderOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.lr_os_operations import LROsOperations +from .operations.lro_retrys_operations import LRORetrysOperations +from .operations.lrosa_ds_operations import LROSADsOperations +from .operations.lr_os_custom_header_operations import LROsCustomHeaderOperations +from . import models + + +class AutoRestLongRunningOperationTestServiceConfiguration(AzureConfiguration): + """Configuration for AutoRestLongRunningOperationTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if accept_language is not None and not isinstance(accept_language, str): + raise TypeError("Optional parameter 'accept_language' must be str.") + if not base_url: + base_url = 'http://localhost' + + super(AutoRestLongRunningOperationTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestlongrunningoperationtestservice/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.accept_language = accept_language + self.long_running_operation_retry_timeout = long_running_operation_retry_timeout + self.generate_client_request_id = generate_client_request_id + + +class AutoRestLongRunningOperationTestService(object): + """Long-running Operation for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestLongRunningOperationTestServiceConfiguration + + :ivar lr_os: LROs operations + :vartype lr_os: .operations.LROsOperations + :ivar lro_retrys: LRORetrys operations + :vartype lro_retrys: .operations.LRORetrysOperations + :ivar lrosa_ds: LROSADs operations + :vartype lrosa_ds: .operations.LROSADsOperations + :ivar lr_os_custom_header: LROsCustomHeader operations + :vartype lr_os_custom_header: .operations.LROsCustomHeaderOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + self.config = AutoRestLongRunningOperationTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) + self._client = ServiceClient(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.lr_os = LROsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.lro_retrys = LRORetrysOperations( + self._client, self.config, self._serialize, self._deserialize) + self.lrosa_ds = LROSADsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.lr_os_custom_header = LROsCustomHeaderOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/credentials.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/credentials.py index 62c6c7ccd7..7a838fea26 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/credentials.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/credentials.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) - -from msrestazure.azure_active_directory import ( - InteractiveCredentials, - ServicePrincipalCredentials, - UserPassCredentials) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) + +from msrestazure.azure_active_directory import ( + InteractiveCredentials, + ServicePrincipalCredentials, + UserPassCredentials) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/exceptions.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/exceptions.py index 52c23132ba..0ed64bcb1f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/exceptions.py @@ -1,23 +1,23 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) - -from msrestazure.azure_exceptions import CloudError +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) + +from msrestazure.azure_exceptions import CloudError diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/__init__.py index 0c1ddc9dd1..702cda88e1 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/__init__.py @@ -1,28 +1,28 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource -from .sku import Sku -from .product import Product -from .sub_product import SubProduct -from .sub_resource import SubResource -from .operation_result import OperationResult -from .operation_result_error import OperationResultError - -__all__ = [ - 'Resource', - 'Sku', - 'Product', - 'SubProduct', - 'SubResource', - 'OperationResult', - 'OperationResultError', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource +from .sku import Sku +from .product import Product +from .sub_product import SubProduct +from .sub_resource import SubResource +from .operation_result_error import OperationResultError +from .operation_result import OperationResult + +__all__ = [ + 'Resource', + 'Sku', + 'Product', + 'SubProduct', + 'SubResource', + 'OperationResultError', + 'OperationResult', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/operation_result.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/operation_result.py index 4a45231fd0..b43a704b48 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/operation_result.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/operation_result.py @@ -1,34 +1,34 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationResult(Model): - """OperationResult. - - :param status: The status of the request. Possible values include: - 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', - 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' - :type status: str - :param error: - :type error: :class:`OperationResultError - ` - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'error': {'key': 'error', 'type': 'OperationResultError'}, - } - - def __init__(self, status=None, error=None): - self.status = status - self.error = error +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OperationResult(Model): + """OperationResult. + + :param status: The status of the request. Possible values include: + 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', + 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' + :type status: str + :param error: + :type error: :class:`OperationResultError + ` + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'OperationResultError'}, + } + + def __init__(self, status=None, error=None): + self.status = status + self.error = error diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/operation_result_error.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/operation_result_error.py index bb48dbd9c0..33e486a1ae 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/operation_result_error.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/operation_result_error.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationResultError(Model): - """OperationResultError. - - :param code: The error code for an operation failure - :type code: int - :param message: The detailed arror message - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, code=None, message=None): - self.code = code - self.message = message +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OperationResultError(Model): + """OperationResultError. + + :param code: The error code for an operation failure + :type code: int + :param message: The detailed arror message + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, code=None, message=None): + self.code = code + self.message = message diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/product.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/product.py index 976d094ccc..c08dc357be 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/product.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/product.py @@ -1,59 +1,59 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class Product(Resource): - """Product. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :ivar type: Resource Type - :vartype type: str - :param tags: - :type tags: dict - :param location: Resource Location - :type location: str - :ivar name: Resource Name - :vartype name: str - :param provisioning_state: - :type provisioning_state: str - :ivar provisioning_state_values: Possible values include: 'Succeeded', - 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', 'Updating', - 'Updated', 'Deleting', 'Deleted', 'OK' - :vartype provisioning_state_values: str - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'name': {'readonly': True}, - 'provisioning_state_values': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'provisioning_state_values': {'key': 'properties.provisioningStateValues', 'type': 'str'}, - } - - def __init__(self, tags=None, location=None, provisioning_state=None): - super(Product, self).__init__(tags=tags, location=location) - self.provisioning_state = provisioning_state - self.provisioning_state_values = None +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class Product(Resource): + """Product. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar type: Resource Type + :vartype type: str + :param tags: + :type tags: dict + :param location: Resource Location + :type location: str + :ivar name: Resource Name + :vartype name: str + :param provisioning_state: + :type provisioning_state: str + :ivar provisioning_state_values: Possible values include: 'Succeeded', + 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', 'Updating', + 'Updated', 'Deleting', 'Deleted', 'OK' + :vartype provisioning_state_values: str + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'name': {'readonly': True}, + 'provisioning_state_values': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'provisioning_state_values': {'key': 'properties.provisioningStateValues', 'type': 'str'}, + } + + def __init__(self, tags=None, location=None, provisioning_state=None): + super(Product, self).__init__(tags=tags, location=location) + self.provisioning_state = provisioning_state + self.provisioning_state_values = None diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/resource.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/resource.py index a58c932f97..65379a95ca 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/resource.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/resource.py @@ -1,52 +1,52 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :ivar type: Resource Type - :vartype type: str - :param tags: - :type tags: dict - :param location: Resource Location - :type location: str - :ivar name: Resource Name - :vartype name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, tags=None, location=None): - self.id = None - self.type = None - self.tags = tags - self.location = location - self.name = None +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar type: Resource Type + :vartype type: str + :param tags: + :type tags: dict + :param location: Resource Location + :type location: str + :ivar name: Resource Name + :vartype name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, tags=None, location=None): + self.id = None + self.type = None + self.tags = tags + self.location = location + self.name = None diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/sku.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/sku.py index 956bcfa79f..671920493a 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/sku.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/sku.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Sku(Model): - """Sku. - - :param name: - :type name: str - :param id: - :type id: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, name=None, id=None): - self.name = name - self.id = id +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Sku(Model): + """Sku. + + :param name: + :type name: str + :param id: + :type id: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, name=None, id=None): + self.name = name + self.id = id diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/sub_product.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/sub_product.py index adf6225e77..259df668fc 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/sub_product.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/sub_product.py @@ -1,45 +1,45 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sub_resource import SubResource - - -class SubProduct(SubResource): - """SubProduct. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Sub Resource Id - :vartype id: str - :param provisioning_state: - :type provisioning_state: str - :ivar provisioning_state_values: Possible values include: 'Succeeded', - 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', 'Updating', - 'Updated', 'Deleting', 'Deleted', 'OK' - :vartype provisioning_state_values: str - """ - - _validation = { - 'id': {'readonly': True}, - 'provisioning_state_values': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - 'provisioning_state_values': {'key': 'properties.provisioningStateValues', 'type': 'str'}, - } - - def __init__(self, provisioning_state=None): - super(SubProduct, self).__init__() - self.provisioning_state = provisioning_state - self.provisioning_state_values = None +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sub_resource import SubResource + + +class SubProduct(SubResource): + """SubProduct. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Sub Resource Id + :vartype id: str + :param provisioning_state: + :type provisioning_state: str + :ivar provisioning_state_values: Possible values include: 'Succeeded', + 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', 'Updating', + 'Updated', 'Deleting', 'Deleted', 'OK' + :vartype provisioning_state_values: str + """ + + _validation = { + 'id': {'readonly': True}, + 'provisioning_state_values': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'provisioning_state_values': {'key': 'properties.provisioningStateValues', 'type': 'str'}, + } + + def __init__(self, provisioning_state=None): + super(SubProduct, self).__init__() + self.provisioning_state = provisioning_state + self.provisioning_state_values = None diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/sub_resource.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/sub_resource.py index c65614a5b7..3a72abb83f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/sub_resource.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/models/sub_resource.py @@ -1,34 +1,34 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubResource(Model): - """SubResource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Sub Resource Id - :vartype id: str - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self): - self.id = None +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SubResource(Model): + """SubResource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Sub Resource Id + :vartype id: str + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self): + self.id = None diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/operations/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/operations/__init__.py index a8b6142cc0..50e00801ca 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/operations/__init__.py @@ -1,22 +1,22 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .lr_os_operations import LROsOperations -from .lro_retrys_operations import LRORetrysOperations -from .lrosa_ds_operations import LROSADsOperations -from .lr_os_custom_header_operations import LROsCustomHeaderOperations - -__all__ = [ - 'LROsOperations', - 'LRORetrysOperations', - 'LROSADsOperations', - 'LROsCustomHeaderOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .lr_os_operations import LROsOperations +from .lro_retrys_operations import LRORetrysOperations +from .lrosa_ds_operations import LROSADsOperations +from .lr_os_custom_header_operations import LROsCustomHeaderOperations + +__all__ = [ + 'LROsOperations', + 'LRORetrysOperations', + 'LROSADsOperations', + 'LROsCustomHeaderOperations', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/operations/lr_os_custom_header_operations.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/operations/lr_os_custom_header_operations.py index 83ce60d9f6..a596eceb1f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/operations/lr_os_custom_header_operations.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/operations/lr_os_custom_header_operations.py @@ -1,389 +1,389 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError -from msrestazure.azure_operation import AzureOperationPoller -import uuid - -from .. import models - - -class LROsCustomHeaderOperations(object): - """LROsCustomHeaderOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def put_async_retry_succeeded( - self, product=None, custom_headers=None, raw=False, **operation_config): - """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is - required message header for all requests. Long running put request, - service returns a 200 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in - the Azure-AsyncOperation header for operation status. - - :param product: Product to put - :type product: :class:`Product - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :rtype: - :class:`AzureOperationPoller` - instance that returns :class:`Product - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: :class:`CloudError` - """ - # Construct URL - url = '/lro/customheader/putasync/retry/succeeded' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if product is not None: - body_content = self._serialize.body(product, 'Product') - else: - body_content = None - - # Construct and send request - def long_running_send(): - - request = self._client.put(url, query_parameters) - return self._client.send( - request, header_parameters, body_content, **operation_config) - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - return self._client.send( - request, header_parameters, **operation_config) - - def get_long_running_output(response): - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - header_dict = {} - - if response.status_code == 200: - deserialized = self._deserialize('Product', response) - header_dict = { - 'Azure-AsyncOperation': 'str', - 'Location': 'str', - 'Retry-After': 'int', - } - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - client_raw_response.add_headers(header_dict) - return client_raw_response - - return deserialized - - if raw: - response = long_running_send() - return get_long_running_output(response) - - long_running_operation_timeout = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) - - def put201_creating_succeeded200( - self, product=None, custom_headers=None, raw=False, **operation_config): - """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is - required message header for all requests. Long running put request, - service returns a 201 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Polls return this value until - the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. - - :param product: Product to put - :type product: :class:`Product - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :rtype: - :class:`AzureOperationPoller` - instance that returns :class:`Product - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: :class:`CloudError` - """ - # Construct URL - url = '/lro/customheader/put/201/creating/succeeded/200' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if product is not None: - body_content = self._serialize.body(product, 'Product') - else: - body_content = None - - # Construct and send request - def long_running_send(): - - request = self._client.put(url, query_parameters) - return self._client.send( - request, header_parameters, body_content, **operation_config) - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - return self._client.send( - request, header_parameters, **operation_config) - - def get_long_running_output(response): - - if response.status_code not in [200, 201]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Product', response) - if response.status_code == 201: - deserialized = self._deserialize('Product', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - if raw: - response = long_running_send() - return get_long_running_output(response) - - long_running_operation_timeout = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) - - def post202_retry200( - self, product=None, custom_headers=None, raw=False, **operation_config): - """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is - required message header for all requests. Long running post request, - service returns a 202 to the initial request, with 'Location' and - 'Retry-After' headers, Polls return a 200 with a response body after - success. - - :param product: Product to put - :type product: :class:`Product - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :rtype: - :class:`AzureOperationPoller` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: :class:`CloudError` - """ - # Construct URL - url = '/lro/customheader/post/202/retry/200' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if product is not None: - body_content = self._serialize.body(product, 'Product') - else: - body_content = None - - # Construct and send request - def long_running_send(): - - request = self._client.post(url, query_parameters) - return self._client.send( - request, header_parameters, body_content, **operation_config) - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - return self._client.send( - request, header_parameters, **operation_config) - - def get_long_running_output(response): - - if response.status_code not in [202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Location': 'str', - 'Retry-After': 'int', - }) - return client_raw_response - - if raw: - response = long_running_send() - return get_long_running_output(response) - - long_running_operation_timeout = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) - - def post_async_retry_succeeded( - self, product=None, custom_headers=None, raw=False, **operation_config): - """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is - required message header for all requests. Long running post request, - service returns a 202 to the initial request, with an entity that - contains ProvisioningState=’Creating’. Poll the endpoint indicated in - the Azure-AsyncOperation header for operation status. - - :param product: Product to put - :type product: :class:`Product - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :rtype: - :class:`AzureOperationPoller` - instance that returns None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: :class:`CloudError` - """ - # Construct URL - url = '/lro/customheader/postasync/retry/succeeded' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct body - if product is not None: - body_content = self._serialize.body(product, 'Product') - else: - body_content = None - - # Construct and send request - def long_running_send(): - - request = self._client.post(url, query_parameters) - return self._client.send( - request, header_parameters, body_content, **operation_config) - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - return self._client.send( - request, header_parameters, **operation_config) - - def get_long_running_output(response): - - if response.status_code not in [202]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - if raw: - client_raw_response = ClientRawResponse(None, response) - client_raw_response.add_headers({ - 'Azure-AsyncOperation': 'str', - 'Location': 'str', - 'Retry-After': 'int', - }) - return client_raw_response - - if raw: - response = long_running_send() - return get_long_running_output(response) - - long_running_operation_timeout = operation_config.get( - 'long_running_operation_timeout', - self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +from msrestazure.azure_operation import AzureOperationPoller +import uuid + +from .. import models + + +class LROsCustomHeaderOperations(object): + """LROsCustomHeaderOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def put_async_retry_succeeded( + self, product=None, custom_headers=None, raw=False, **operation_config): + """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is + required message header for all requests. Long running put request, + service returns a 200 to the initial request, with an entity that + contains ProvisioningState=’Creating’. Poll the endpoint indicated in + the Azure-AsyncOperation header for operation status. + + :param product: Product to put + :type product: :class:`Product + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :rtype: + :class:`AzureOperationPoller` + instance that returns :class:`Product + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: :class:`CloudError` + """ + # Construct URL + url = '/lro/customheader/putasync/retry/succeeded' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + if product is not None: + body_content = self._serialize.body(product, 'Product') + else: + body_content = None + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + header_dict = {} + + if response.status_code == 200: + deserialized = self._deserialize('Product', response) + header_dict = { + 'Azure-AsyncOperation': 'str', + 'Location': 'str', + 'Retry-After': 'int', + } + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + client_raw_response.add_headers(header_dict) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def put201_creating_succeeded200( + self, product=None, custom_headers=None, raw=False, **operation_config): + """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is + required message header for all requests. Long running put request, + service returns a 201 to the initial request, with an entity that + contains ProvisioningState=’Creating’. Polls return this value until + the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. + + :param product: Product to put + :type product: :class:`Product + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :rtype: + :class:`AzureOperationPoller` + instance that returns :class:`Product + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: :class:`CloudError` + """ + # Construct URL + url = '/lro/customheader/put/201/creating/succeeded/200' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + if product is not None: + body_content = self._serialize.body(product, 'Product') + else: + body_content = None + + # Construct and send request + def long_running_send(): + + request = self._client.put(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [200, 201]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Product', response) + if response.status_code == 201: + deserialized = self._deserialize('Product', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def post202_retry200( + self, product=None, custom_headers=None, raw=False, **operation_config): + """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is + required message header for all requests. Long running post request, + service returns a 202 to the initial request, with 'Location' and + 'Retry-After' headers, Polls return a 200 with a response body after + success. + + :param product: Product to put + :type product: :class:`Product + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :rtype: + :class:`AzureOperationPoller` + instance that returns None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: :class:`CloudError` + """ + # Construct URL + url = '/lro/customheader/post/202/retry/200' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + if product is not None: + body_content = self._serialize.body(product, 'Product') + else: + body_content = None + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + client_raw_response.add_headers({ + 'Location': 'str', + 'Retry-After': 'int', + }) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) + + def post_async_retry_succeeded( + self, product=None, custom_headers=None, raw=False, **operation_config): + """x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is + required message header for all requests. Long running post request, + service returns a 202 to the initial request, with an entity that + contains ProvisioningState=’Creating’. Poll the endpoint indicated in + the Azure-AsyncOperation header for operation status. + + :param product: Product to put + :type product: :class:`Product + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :rtype: + :class:`AzureOperationPoller` + instance that returns None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: :class:`CloudError` + """ + # Construct URL + url = '/lro/customheader/postasync/retry/succeeded' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + if product is not None: + body_content = self._serialize.body(product, 'Product') + else: + body_content = None + + # Construct and send request + def long_running_send(): + + request = self._client.post(url, query_parameters) + return self._client.send( + request, header_parameters, body_content, **operation_config) + + def get_long_running_status(status_link, headers=None): + + request = self._client.get(status_link) + if headers: + request.headers.update(headers) + return self._client.send( + request, header_parameters, **operation_config) + + def get_long_running_output(response): + + if response.status_code not in [202]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + client_raw_response.add_headers({ + 'Azure-AsyncOperation': 'str', + 'Location': 'str', + 'Retry-After': 'int', + }) + return client_raw_response + + if raw: + response = long_running_send() + return get_long_running_output(response) + + long_running_operation_timeout = operation_config.get( + 'long_running_operation_timeout', + self.config.long_running_operation_timeout) + return AzureOperationPoller( + long_running_send, get_long_running_output, + get_long_running_status, long_running_operation_timeout) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/operations/lr_os_operations.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/operations/lr_os_operations.py index f78b8aa7ff..3cdf661f4f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/operations/lr_os_operations.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/operations/lr_os_operations.py @@ -1541,7 +1541,7 @@ def get_long_running_output(response): def delete_provisioning202_accepted200_succeeded( self, custom_headers=None, raw=False, **operation_config): """Long running delete request, service returns a 202 to the initial - request, with an entity that contains ProvisioningState=’Accepted’. + request, with an entity that contains ProvisioningState=’Accepted’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’. @@ -1630,7 +1630,7 @@ def get_long_running_output(response): def delete_provisioning202_deleting_failed200( self, custom_headers=None, raw=False, **operation_config): """Long running delete request, service returns a 202 to the initial - request, with an entity that contains ProvisioningState=’Creating’. + request, with an entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Failed’. @@ -1719,7 +1719,7 @@ def get_long_running_output(response): def delete_provisioning202_deletingcanceled200( self, custom_headers=None, raw=False, **operation_config): """Long running delete request, service returns a 202 to the initial - request, with an entity that contains ProvisioningState=’Creating’. + request, with an entity that contains ProvisioningState=’Creating’. Polls return this value until the last poll returns a ‘200’ with ProvisioningState=’Canceled’. diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/version.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/version.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/autorestlongrunningoperationtestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/setup.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/setup.py index b5ab194134..0c397ad78e 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/setup.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Lro/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestlongrunningoperationtestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestLongRunningOperationTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestLongRunningOperationTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Long-running Operation for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestlongrunningoperationtestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestLongRunningOperationTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestLongRunningOperationTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Long-running Operation for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/__init__.py index 04a8fd93c3..68708b4282 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_paging_test_service import AutoRestPagingTestService -from .version import VERSION - -__all__ = ['AutoRestPagingTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_paging_test_service import AutoRestPagingTestService +from .version import VERSION + +__all__ = ['AutoRestPagingTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/auto_rest_paging_test_service.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/auto_rest_paging_test_service.py index 7f6b7b5d09..9cf0c1c8e7 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/auto_rest_paging_test_service.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/auto_rest_paging_test_service.py @@ -1,100 +1,100 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.paging_operations import PagingOperations -from . import models - - -class AutoRestPagingTestServiceConfiguration(AzureConfiguration): - """Configuration for AutoRestPagingTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if accept_language is not None and not isinstance(accept_language, str): - raise TypeError("Optional parameter 'accept_language' must be str.") - if not base_url: - base_url = 'http://localhost' - - super(AutoRestPagingTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestpagingtestservice/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.accept_language = accept_language - self.long_running_operation_retry_timeout = long_running_operation_retry_timeout - self.generate_client_request_id = generate_client_request_id - - -class AutoRestPagingTestService(object): - """Long-running Operation for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestPagingTestServiceConfiguration - - :ivar paging: Paging operations - :vartype paging: .operations.PagingOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - self.config = AutoRestPagingTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.paging = PagingOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.paging_operations import PagingOperations +from . import models + + +class AutoRestPagingTestServiceConfiguration(AzureConfiguration): + """Configuration for AutoRestPagingTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if accept_language is not None and not isinstance(accept_language, str): + raise TypeError("Optional parameter 'accept_language' must be str.") + if not base_url: + base_url = 'http://localhost' + + super(AutoRestPagingTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestpagingtestservice/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.accept_language = accept_language + self.long_running_operation_retry_timeout = long_running_operation_retry_timeout + self.generate_client_request_id = generate_client_request_id + + +class AutoRestPagingTestService(object): + """Long-running Operation for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestPagingTestServiceConfiguration + + :ivar paging: Paging operations + :vartype paging: .operations.PagingOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + self.config = AutoRestPagingTestServiceConfiguration(credentials, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) + self._client = ServiceClient(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.paging = PagingOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/credentials.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/credentials.py index 62c6c7ccd7..7a838fea26 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/credentials.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/credentials.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) - -from msrestazure.azure_active_directory import ( - InteractiveCredentials, - ServicePrincipalCredentials, - UserPassCredentials) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) + +from msrestazure.azure_active_directory import ( + InteractiveCredentials, + ServicePrincipalCredentials, + UserPassCredentials) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/exceptions.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/exceptions.py index 52c23132ba..0ed64bcb1f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/exceptions.py @@ -1,23 +1,23 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) - -from msrestazure.azure_exceptions import CloudError +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) + +from msrestazure.azure_exceptions import CloudError diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/__init__.py index 4762cd4bca..ba65a16b9a 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/__init__.py @@ -1,32 +1,32 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .product import Product -from .product_properties import ProductProperties -from .operation_result import OperationResult -from .paging_get_multiple_pages_options import PagingGetMultiplePagesOptions -from .paging_get_odata_multiple_pages_options import PagingGetOdataMultiplePagesOptions -from .paging_get_multiple_pages_with_offset_options import PagingGetMultiplePagesWithOffsetOptions -from .custom_parameter_group import CustomParameterGroup -from .product_paged import ProductPaged -from .product_paged1 import ProductPaged1 - -__all__ = [ - 'Product', - 'ProductProperties', - 'OperationResult', - 'PagingGetMultiplePagesOptions', - 'PagingGetOdataMultiplePagesOptions', - 'PagingGetMultiplePagesWithOffsetOptions', - 'CustomParameterGroup', - 'ProductPaged', - 'ProductPaged1', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .product_properties import ProductProperties +from .product import Product +from .operation_result import OperationResult +from .paging_get_multiple_pages_options import PagingGetMultiplePagesOptions +from .paging_get_odata_multiple_pages_options import PagingGetOdataMultiplePagesOptions +from .paging_get_multiple_pages_with_offset_options import PagingGetMultiplePagesWithOffsetOptions +from .custom_parameter_group import CustomParameterGroup +from .product_paged import ProductPaged +from .product_paged1 import ProductPaged1 + +__all__ = [ + 'ProductProperties', + 'Product', + 'OperationResult', + 'PagingGetMultiplePagesOptions', + 'PagingGetOdataMultiplePagesOptions', + 'PagingGetMultiplePagesWithOffsetOptions', + 'CustomParameterGroup', + 'ProductPaged', + 'ProductPaged1', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/custom_parameter_group.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/custom_parameter_group.py index d08998b8aa..4b1eec1c03 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/custom_parameter_group.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/custom_parameter_group.py @@ -1,32 +1,32 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CustomParameterGroup(Model): - """Additional parameters for the - Paging_get_multiple_pages_fragment_with_grouping_next_link operation. - - :param api_version: Sets the api version to use. - :type api_version: str - :param tenant: Sets the tenant to use. - :type tenant: str - """ - - _validation = { - 'api_version': {'required': True}, - 'tenant': {'required': True}, - } - - def __init__(self, api_version, tenant): - self.api_version = api_version - self.tenant = tenant +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CustomParameterGroup(Model): + """Additional parameters for the + Paging_get_multiple_pages_fragment_with_grouping_next_link operation. + + :param api_version: Sets the api version to use. + :type api_version: str + :param tenant: Sets the tenant to use. + :type tenant: str + """ + + _validation = { + 'api_version': {'required': True}, + 'tenant': {'required': True}, + } + + def __init__(self, api_version, tenant): + self.api_version = api_version + self.tenant = tenant diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/operation_result.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/operation_result.py index ac91abc610..3fad4e2ad7 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/operation_result.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/operation_result.py @@ -1,29 +1,29 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationResult(Model): - """OperationResult. - - :param status: The status of the request. Possible values include: - 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', - 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' - :type status: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - } - - def __init__(self, status=None): - self.status = status +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OperationResult(Model): + """OperationResult. + + :param status: The status of the request. Possible values include: + 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', + 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' + :type status: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + } + + def __init__(self, status=None): + self.status = status diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_options.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_options.py index 70ec0f87a7..10a2e598c8 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_options.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_options.py @@ -21,7 +21,7 @@ class PagingGetMultiplePagesOptions(Model): :param timeout: Sets the maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. Default value: 30 . :type timeout: int - """ + """ def __init__(self, maxresults=None, timeout=30): self.maxresults = maxresults diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_with_offset_options.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_with_offset_options.py index 2d2ba38cde..d4726b2666 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_with_offset_options.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_multiple_pages_with_offset_options.py @@ -24,7 +24,7 @@ class PagingGetMultiplePagesWithOffsetOptions(Model): :param timeout: Sets the maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. Default value: 30 . :type timeout: int - """ + """ _validation = { 'offset': {'required': True}, diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_odata_multiple_pages_options.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_odata_multiple_pages_options.py index 4132915ee5..520c14632b 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_odata_multiple_pages_options.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/paging_get_odata_multiple_pages_options.py @@ -21,7 +21,7 @@ class PagingGetOdataMultiplePagesOptions(Model): :param timeout: Sets the maximum time that the server can spend processing the request, in seconds. The default is 30 seconds. Default value: 30 . :type timeout: int - """ + """ def __init__(self, maxresults=None, timeout=30): self.maxresults = maxresults diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product.py index 19530f2a33..36f64271a0 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product.py @@ -1,28 +1,28 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Product(Model): - """Product. - - :param properties: - :type properties: :class:`ProductProperties - ` - """ - - _attribute_map = { - 'properties': {'key': 'properties', 'type': 'ProductProperties'}, - } - - def __init__(self, properties=None): - self.properties = properties +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Product(Model): + """Product. + + :param properties: + :type properties: :class:`ProductProperties + ` + """ + + _attribute_map = { + 'properties': {'key': 'properties', 'type': 'ProductProperties'}, + } + + def __init__(self, properties=None): + self.properties = properties diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product_paged.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product_paged.py index 964d5c4ea8..8c917ff351 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product_paged.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product_paged.py @@ -1,27 +1,27 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ProductPaged(Paged): - """ - A paging container for iterating over a list of Product object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'values', 'type': '[Product]'} - } - - def __init__(self, *args, **kwargs): - - super(ProductPaged, self).__init__(*args, **kwargs) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ProductPaged(Paged): + """ + A paging container for iterating over a list of Product object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'values', 'type': '[Product]'} + } + + def __init__(self, *args, **kwargs): + + super(ProductPaged, self).__init__(*args, **kwargs) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product_paged1.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product_paged1.py index 71f36bef26..d9c028c20d 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product_paged1.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product_paged1.py @@ -1,27 +1,27 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class ProductPaged1(Paged): - """ - A paging container for iterating over a list of Product object - """ - - _attribute_map = { - 'next_link': {'key': 'odata\\.nextLink', 'type': 'str'}, - 'current_page': {'key': 'values', 'type': '[Product]'} - } - - def __init__(self, *args, **kwargs): - - super(ProductPaged1, self).__init__(*args, **kwargs) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class ProductPaged1(Paged): + """ + A paging container for iterating over a list of Product object + """ + + _attribute_map = { + 'next_link': {'key': 'odata\\.nextLink', 'type': 'str'}, + 'current_page': {'key': 'values', 'type': '[Product]'} + } + + def __init__(self, *args, **kwargs): + + super(ProductPaged1, self).__init__(*args, **kwargs) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product_properties.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product_properties.py index 3753fb69b7..57585badf4 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product_properties.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/models/product_properties.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ProductProperties(Model): - """ProductProperties. - - :param id: - :type id: int - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, id=None, name=None): - self.id = id - self.name = name +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ProductProperties(Model): + """ProductProperties. + + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, id=None, name=None): + self.id = id + self.name = name diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/operations/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/operations/__init__.py index 03ea2c18d6..89fe46953d 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .paging_operations import PagingOperations - -__all__ = [ - 'PagingOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .paging_operations import PagingOperations + +__all__ = [ + 'PagingOperations', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/version.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/version.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/autorestpagingtestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/setup.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/setup.py index 26f68f9580..69e7afeb32 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/setup.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/Paging/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestpagingtestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestPagingTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestPagingTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Long-running Operation for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestpagingtestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestPagingTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestPagingTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Long-running Operation for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/setup.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/setup.py index 211ad62468..b27c6048bb 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/setup.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/setup.py @@ -1,39 +1,39 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "storagemanagementclient" -VERSION = "2015-05-01-preview" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] - -setup( - name=NAME, - version=VERSION, - description="StorageManagementClient", - author_email="", - url="", - keywords=["Swagger", "StorageManagementClient"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "storagemanagementclient" +VERSION = "2015-05-01-preview" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] + +setup( + name=NAME, + version=VERSION, + description="StorageManagementClient", + author_email="", + url="", + keywords=["Swagger", "StorageManagementClient"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + """ +) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/__init__.py index d7a01b2acb..0854715e0c 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .storage_management_client import StorageManagementClient -from .version import VERSION - -__all__ = ['StorageManagementClient'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .storage_management_client import StorageManagementClient +from .version import VERSION + +__all__ = ['StorageManagementClient'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/credentials.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/credentials.py index 62c6c7ccd7..7a838fea26 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/credentials.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/credentials.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) - -from msrestazure.azure_active_directory import ( - InteractiveCredentials, - ServicePrincipalCredentials, - UserPassCredentials) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) + +from msrestazure.azure_active_directory import ( + InteractiveCredentials, + ServicePrincipalCredentials, + UserPassCredentials) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/exceptions.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/exceptions.py index 52c23132ba..0ed64bcb1f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/exceptions.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/exceptions.py @@ -1,23 +1,23 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) - -from msrestazure.azure_exceptions import CloudError +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) + +from msrestazure.azure_exceptions import CloudError diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/__init__.py index bcab8b61f5..eb4f8d219a 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/__init__.py @@ -1,62 +1,62 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .storage_account_check_name_availability_parameters import StorageAccountCheckNameAvailabilityParameters -from .check_name_availability_result import CheckNameAvailabilityResult -from .storage_account_create_parameters import StorageAccountCreateParameters -from .endpoints import Endpoints -from .foo import Foo -from .bar import Bar -from .custom_domain import CustomDomain -from .storage_account import StorageAccount -from .storage_account_keys import StorageAccountKeys -from .storage_account_update_parameters import StorageAccountUpdateParameters -from .storage_account_regenerate_key_parameters import StorageAccountRegenerateKeyParameters -from .usage_name import UsageName -from .usage import Usage -from .usage_list_result import UsageListResult -from .resource import Resource -from .sub_resource import SubResource -from .storage_account_paged import StorageAccountPaged -from .storage_management_client_enums import ( - Reason, - AccountType, - ProvisioningState, - AccountStatus, - KeyName, - UsageUnit, -) - -__all__ = [ - 'StorageAccountCheckNameAvailabilityParameters', - 'CheckNameAvailabilityResult', - 'StorageAccountCreateParameters', - 'Endpoints', - 'Foo', - 'Bar', - 'CustomDomain', - 'StorageAccount', - 'StorageAccountKeys', - 'StorageAccountUpdateParameters', - 'StorageAccountRegenerateKeyParameters', - 'UsageName', - 'Usage', - 'UsageListResult', - 'Resource', - 'SubResource', - 'StorageAccountPaged', - 'Reason', - 'AccountType', - 'ProvisioningState', - 'AccountStatus', - 'KeyName', - 'UsageUnit', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .storage_account_check_name_availability_parameters import StorageAccountCheckNameAvailabilityParameters +from .check_name_availability_result import CheckNameAvailabilityResult +from .storage_account_create_parameters import StorageAccountCreateParameters +from .bar import Bar +from .foo import Foo +from .endpoints import Endpoints +from .custom_domain import CustomDomain +from .storage_account import StorageAccount +from .storage_account_keys import StorageAccountKeys +from .storage_account_update_parameters import StorageAccountUpdateParameters +from .storage_account_regenerate_key_parameters import StorageAccountRegenerateKeyParameters +from .usage_name import UsageName +from .usage import Usage +from .usage_list_result import UsageListResult +from .resource import Resource +from .sub_resource import SubResource +from .storage_account_paged import StorageAccountPaged +from .storage_management_client_enums import ( + Reason, + AccountType, + ProvisioningState, + AccountStatus, + KeyName, + UsageUnit, +) + +__all__ = [ + 'StorageAccountCheckNameAvailabilityParameters', + 'CheckNameAvailabilityResult', + 'StorageAccountCreateParameters', + 'Bar', + 'Foo', + 'Endpoints', + 'CustomDomain', + 'StorageAccount', + 'StorageAccountKeys', + 'StorageAccountUpdateParameters', + 'StorageAccountRegenerateKeyParameters', + 'UsageName', + 'Usage', + 'UsageListResult', + 'Resource', + 'SubResource', + 'StorageAccountPaged', + 'Reason', + 'AccountType', + 'ProvisioningState', + 'AccountStatus', + 'KeyName', + 'UsageUnit', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/bar.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/bar.py index a6111ee768..7f6841130e 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/bar.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/bar.py @@ -1,29 +1,29 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Bar(Model): - """The URIs that are used to perform a retrieval of a public blob, queue or - table object. - - :param recursive_point: Recursive Endpoints - :type recursive_point: :class:`Endpoints - ` - """ - - _attribute_map = { - 'recursive_point': {'key': 'RecursivePoint', 'type': 'Endpoints'}, - } - - def __init__(self, recursive_point=None): - self.recursive_point = recursive_point +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Bar(Model): + """The URIs that are used to perform a retrieval of a public blob, queue or + table object. + + :param recursive_point: Recursive Endpoints + :type recursive_point: :class:`Endpoints + ` + """ + + _attribute_map = { + 'recursive_point': {'key': 'RecursivePoint', 'type': 'Endpoints'}, + } + + def __init__(self, recursive_point=None): + self.recursive_point = recursive_point diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/check_name_availability_result.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/check_name_availability_result.py index 4f5a02c1a4..f9580ed767 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/check_name_availability_result.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/check_name_availability_result.py @@ -1,41 +1,41 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CheckNameAvailabilityResult(Model): - """The CheckNameAvailability operation response. - - :param name_available: Gets a boolean value that indicates whether the - name is available for you to use. If true, the name is available. If - false, the name has already been taken or invalid and cannot be used. - :type name_available: bool - :param reason: Gets the reason that a storage account name could not be - used. The Reason element is only returned if NameAvailable is false. - Possible values include: 'AccountNameInvalid', 'AlreadyExists' - :type reason: str or :class:`Reason - ` - :param message: Gets an error message explaining the Reason value in more - detail. - :type message: str - """ - - _attribute_map = { - 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, - 'reason': {'key': 'reason', 'type': 'Reason'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, name_available=None, reason=None, message=None): - self.name_available = name_available - self.reason = reason - self.message = message +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CheckNameAvailabilityResult(Model): + """The CheckNameAvailability operation response. + + :param name_available: Gets a boolean value that indicates whether the + name is available for you to use. If true, the name is available. If + false, the name has already been taken or invalid and cannot be used. + :type name_available: bool + :param reason: Gets the reason that a storage account name could not be + used. The Reason element is only returned if NameAvailable is false. + Possible values include: 'AccountNameInvalid', 'AlreadyExists' + :type reason: str or :class:`Reason + ` + :param message: Gets an error message explaining the Reason value in more + detail. + :type message: str + """ + + _attribute_map = { + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'Reason'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, name_available=None, reason=None, message=None): + self.name_available = name_available + self.reason = reason + self.message = message diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/custom_domain.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/custom_domain.py index 246ebb7cd2..9c030d977e 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/custom_domain.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/custom_domain.py @@ -1,34 +1,34 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CustomDomain(Model): - """The custom domain assigned to this storage account. This can be set via - Update. - - :param name: Gets or sets the custom domain name. Name is the CNAME - source. - :type name: str - :param use_sub_domain: Indicates whether indirect CName validation is - enabled. Default value is false. This should only be set on updates - :type use_sub_domain: bool - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'use_sub_domain': {'key': 'useSubDomain', 'type': 'bool'}, - } - - def __init__(self, name=None, use_sub_domain=None): - self.name = name - self.use_sub_domain = use_sub_domain +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CustomDomain(Model): + """The custom domain assigned to this storage account. This can be set via + Update. + + :param name: Gets or sets the custom domain name. Name is the CNAME + source. + :type name: str + :param use_sub_domain: Indicates whether indirect CName validation is + enabled. Default value is false. This should only be set on updates + :type use_sub_domain: bool + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'use_sub_domain': {'key': 'useSubDomain', 'type': 'bool'}, + } + + def __init__(self, name=None, use_sub_domain=None): + self.name = name + self.use_sub_domain = use_sub_domain diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/endpoints.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/endpoints.py index 1fee72c6e9..ec8afbf6da 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/endpoints.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/endpoints.py @@ -1,46 +1,46 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Endpoints(Model): - """The URIs that are used to perform a retrieval of a public blob, queue or - table object. - - :param blob: Gets the blob endpoint. - :type blob: str - :param queue: Gets the queue endpoint. - :type queue: str - :param table: Gets the table endpoint. - :type table: str - :param dummy_end_point: Dummy EndPoint - :type dummy_end_point: :class:`Endpoints - ` - :param foo_point: Foo point - :type foo_point: :class:`Foo - ` - """ - - _attribute_map = { - 'blob': {'key': 'blob', 'type': 'str'}, - 'queue': {'key': 'queue', 'type': 'str'}, - 'table': {'key': 'table', 'type': 'str'}, - 'dummy_end_point': {'key': 'dummyEndPoint', 'type': 'Endpoints'}, - 'foo_point': {'key': 'FooPoint', 'type': 'Foo'}, - } - - def __init__(self, blob=None, queue=None, table=None, dummy_end_point=None, foo_point=None): - self.blob = blob - self.queue = queue - self.table = table - self.dummy_end_point = dummy_end_point - self.foo_point = foo_point +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Endpoints(Model): + """The URIs that are used to perform a retrieval of a public blob, queue or + table object. + + :param blob: Gets the blob endpoint. + :type blob: str + :param queue: Gets the queue endpoint. + :type queue: str + :param table: Gets the table endpoint. + :type table: str + :param dummy_end_point: Dummy EndPoint + :type dummy_end_point: :class:`Endpoints + ` + :param foo_point: Foo point + :type foo_point: :class:`Foo + ` + """ + + _attribute_map = { + 'blob': {'key': 'blob', 'type': 'str'}, + 'queue': {'key': 'queue', 'type': 'str'}, + 'table': {'key': 'table', 'type': 'str'}, + 'dummy_end_point': {'key': 'dummyEndPoint', 'type': 'Endpoints'}, + 'foo_point': {'key': 'FooPoint', 'type': 'Foo'}, + } + + def __init__(self, blob=None, queue=None, table=None, dummy_end_point=None, foo_point=None): + self.blob = blob + self.queue = queue + self.table = table + self.dummy_end_point = dummy_end_point + self.foo_point = foo_point diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/foo.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/foo.py index a170abc9bd..403a94b53b 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/foo.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/foo.py @@ -1,29 +1,29 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Foo(Model): - """The URIs that are used to perform a retrieval of a public blob, queue or - table object. - - :param bar_point: Bar point - :type bar_point: :class:`Bar - ` - """ - - _attribute_map = { - 'bar_point': {'key': 'Bar\\.Point', 'type': 'Bar'}, - } - - def __init__(self, bar_point=None): - self.bar_point = bar_point +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Foo(Model): + """The URIs that are used to perform a retrieval of a public blob, queue or + table object. + + :param bar_point: Bar point + :type bar_point: :class:`Bar + ` + """ + + _attribute_map = { + 'bar_point': {'key': 'Bar\\.Point', 'type': 'Bar'}, + } + + def __init__(self, bar_point=None): + self.bar_point = bar_point diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/resource.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/resource.py index 48a65e2cef..0ba5f8a501 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/resource.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/resource.py @@ -1,53 +1,53 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, location, tags=None): - self.id = None - self.name = None - self.type = None - self.location = location - self.tags = tags +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, location, tags=None): + self.id = None + self.name = None + self.type = None + self.location = location + self.tags = tags diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account.py index 090449dc70..53bda9dcde 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account.py @@ -80,7 +80,7 @@ class StorageAccount(Resource): StandardRAGRS. :type secondary_endpoints: :class:`Endpoints ` - """ + """ _validation = { 'id': {'readonly': True}, diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_check_name_availability_parameters.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_check_name_availability_parameters.py index 0ecb1d900a..1f7c1abe8b 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_check_name_availability_parameters.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_check_name_availability_parameters.py @@ -1,35 +1,35 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StorageAccountCheckNameAvailabilityParameters(Model): - """StorageAccountCheckNameAvailabilityParameters. - - :param name: - :type name: str - :param type: Default value: "Microsoft.Storage/storageAccounts" . - :type type: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, name, type="Microsoft.Storage/storageAccounts"): - self.name = name - self.type = type +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class StorageAccountCheckNameAvailabilityParameters(Model): + """StorageAccountCheckNameAvailabilityParameters. + + :param name: + :type name: str + :param type: Default value: "Microsoft.Storage/storageAccounts" . + :type type: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, name, type="Microsoft.Storage/storageAccounts"): + self.name = name + self.type = type diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_create_parameters.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_create_parameters.py index ea2956dbe3..ae578eb9a3 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_create_parameters.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_create_parameters.py @@ -33,7 +33,7 @@ class StorageAccountCreateParameters(Resource): 'Premium_LRS' :type account_type: str or :class:`AccountType ` - """ + """ _validation = { 'id': {'readonly': True}, diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_keys.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_keys.py index 9167a40c7d..6345681f84 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_keys.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_keys.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StorageAccountKeys(Model): - """The access keys for the storage account. - - :param key1: Gets the value of key 1. - :type key1: str - :param key2: Gets the value of key 2. - :type key2: str - """ - - _attribute_map = { - 'key1': {'key': 'key1', 'type': 'str'}, - 'key2': {'key': 'key2', 'type': 'str'}, - } - - def __init__(self, key1=None, key2=None): - self.key1 = key1 - self.key2 = key2 +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class StorageAccountKeys(Model): + """The access keys for the storage account. + + :param key1: Gets the value of key 1. + :type key1: str + :param key2: Gets the value of key 2. + :type key2: str + """ + + _attribute_map = { + 'key1': {'key': 'key1', 'type': 'str'}, + 'key2': {'key': 'key2', 'type': 'str'}, + } + + def __init__(self, key1=None, key2=None): + self.key1 = key1 + self.key2 = key2 diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_paged.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_paged.py index 0e91340d3a..e3e82b3460 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_paged.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_paged.py @@ -1,27 +1,27 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.paging import Paged - - -class StorageAccountPaged(Paged): - """ - A paging container for iterating over a list of StorageAccount object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[StorageAccount]'} - } - - def __init__(self, *args, **kwargs): - - super(StorageAccountPaged, self).__init__(*args, **kwargs) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class StorageAccountPaged(Paged): + """ + A paging container for iterating over a list of StorageAccount object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[StorageAccount]'} + } + + def __init__(self, *args, **kwargs): + + super(StorageAccountPaged, self).__init__(*args, **kwargs) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_regenerate_key_parameters.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_regenerate_key_parameters.py index 74fae8cd2b..c7a82daf4f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_regenerate_key_parameters.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_regenerate_key_parameters.py @@ -1,28 +1,28 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StorageAccountRegenerateKeyParameters(Model): - """StorageAccountRegenerateKeyParameters. - - :param key_name: Possible values include: 'key1', 'key2' - :type key_name: str or :class:`KeyName - ` - """ - - _attribute_map = { - 'key_name': {'key': 'keyName', 'type': 'KeyName'}, - } - - def __init__(self, key_name=None): - self.key_name = key_name +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class StorageAccountRegenerateKeyParameters(Model): + """StorageAccountRegenerateKeyParameters. + + :param key_name: Possible values include: 'key1', 'key2' + :type key_name: str or :class:`KeyName + ` + """ + + _attribute_map = { + 'key_name': {'key': 'keyName', 'type': 'KeyName'}, + } + + def __init__(self, key_name=None): + self.key_name = key_name diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_update_parameters.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_update_parameters.py index d6b9a3cb5e..1339d8f7b9 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_update_parameters.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_account_update_parameters.py @@ -41,7 +41,7 @@ class StorageAccountUpdateParameters(Resource): the custom domain name property. :type custom_domain: :class:`CustomDomain ` - """ + """ _validation = { 'id': {'readonly': True}, diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_management_client_enums.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_management_client_enums.py index ff222ad320..5ea99c62f5 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_management_client_enums.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/storage_management_client_enums.py @@ -1,56 +1,56 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum - - -class Reason(Enum): - - account_name_invalid = "AccountNameInvalid" - already_exists = "AlreadyExists" - - -class AccountType(Enum): - - standard_lrs = "Standard_LRS" - standard_zrs = "Standard_ZRS" - standard_grs = "Standard_GRS" - standard_ragrs = "Standard_RAGRS" - premium_lrs = "Premium_LRS" - - -class ProvisioningState(Enum): - - creating = "Creating" - resolving_dns = "ResolvingDNS" - succeeded = "Succeeded" - - -class AccountStatus(Enum): - - available = "Available" - unavailable = "Unavailable" - - -class KeyName(Enum): - - key1 = "key1" - key2 = "key2" - - -class UsageUnit(Enum): - - count = "Count" - bytes = "Bytes" - seconds = "Seconds" - percent = "Percent" - counts_per_second = "CountsPerSecond" - bytes_per_second = "BytesPerSecond" +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum + + +class Reason(Enum): + + account_name_invalid = "AccountNameInvalid" + already_exists = "AlreadyExists" + + +class AccountType(Enum): + + standard_lrs = "Standard_LRS" + standard_zrs = "Standard_ZRS" + standard_grs = "Standard_GRS" + standard_ragrs = "Standard_RAGRS" + premium_lrs = "Premium_LRS" + + +class ProvisioningState(Enum): + + creating = "Creating" + resolving_dns = "ResolvingDNS" + succeeded = "Succeeded" + + +class AccountStatus(Enum): + + available = "Available" + unavailable = "Unavailable" + + +class KeyName(Enum): + + key1 = "key1" + key2 = "key2" + + +class UsageUnit(Enum): + + count = "Count" + bytes = "Bytes" + seconds = "Seconds" + percent = "Percent" + counts_per_second = "CountsPerSecond" + bytes_per_second = "BytesPerSecond" diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/sub_resource.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/sub_resource.py index b113ed0889..e77acb8015 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/sub_resource.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/sub_resource.py @@ -1,27 +1,27 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SubResource(Model): - """SubResource. - - :param id: Resource Id - :type id: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - } - - def __init__(self, id=None): - self.id = id +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SubResource(Model): + """SubResource. + + :param id: Resource Id + :type id: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + } + + def __init__(self, id=None): + self.id = id diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/usage.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/usage.py index 999f03b9dd..b0869c50bf 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/usage.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/usage.py @@ -29,7 +29,7 @@ class Usage(Model): :param name: Gets the name of the type of usage. :type name: :class:`UsageName ` - """ + """ _attribute_map = { 'unit': {'key': 'unit', 'type': 'UsageUnit'}, diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/usage_list_result.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/usage_list_result.py index bdb9048ad5..f238011ef8 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/usage_list_result.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/usage_list_result.py @@ -1,28 +1,28 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UsageListResult(Model): - """The List Usages operation response. - - :param value: Gets or sets the list Storage Resource Usages. - :type value: list of :class:`Usage - ` - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[Usage]'}, - } - - def __init__(self, value=None): - self.value = value +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class UsageListResult(Model): + """The List Usages operation response. + + :param value: Gets or sets the list Storage Resource Usages. + :type value: list of :class:`Usage + ` + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[Usage]'}, + } + + def __init__(self, value=None): + self.value = value diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/usage_name.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/usage_name.py index a1f3796d70..aec8991cb8 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/usage_name.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/models/usage_name.py @@ -1,32 +1,32 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class UsageName(Model): - """The Usage Names. - - :param value: Gets a string describing the resource name. - :type value: str - :param localized_value: Gets a localized string describing the resource - name. - :type localized_value: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, - 'localized_value': {'key': 'localizedValue', 'type': 'str'}, - } - - def __init__(self, value=None, localized_value=None): - self.value = value - self.localized_value = localized_value +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class UsageName(Model): + """The Usage Names. + + :param value: Gets a string describing the resource name. + :type value: str + :param localized_value: Gets a localized string describing the resource + name. + :type localized_value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + 'localized_value': {'key': 'localizedValue', 'type': 'str'}, + } + + def __init__(self, value=None, localized_value=None): + self.value = value + self.localized_value = localized_value diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/operations/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/operations/__init__.py index 8c49b209e6..6c2bfe9071 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/operations/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/operations/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .storage_accounts_operations import StorageAccountsOperations -from .usage_operations import UsageOperations - -__all__ = [ - 'StorageAccountsOperations', - 'UsageOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .storage_accounts_operations import StorageAccountsOperations +from .usage_operations import UsageOperations + +__all__ = [ + 'StorageAccountsOperations', + 'UsageOperations', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/operations/usage_operations.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/operations/usage_operations.py index 4403fb34a8..415bc73998 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/operations/usage_operations.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/operations/usage_operations.py @@ -1,91 +1,91 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError -import uuid - -from .. import models - - -class UsageOperations(object): - """UsageOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def list( - self, custom_headers=None, raw=False, **operation_config): - """Gets the current usage count and the limit for the resources under the - subscription. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`UsageListResult - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: :class:`CloudError` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('UsageListResult', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError +import uuid + +from .. import models + + +class UsageOperations(object): + """UsageOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """Gets the current usage count and the limit for the resources under the + subscription. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`UsageListResult + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: :class:`CloudError` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('UsageListResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/storage_management_client.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/storage_management_client.py index e1c68b15d4..2198ff47af 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/storage_management_client.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/storage_management_client.py @@ -1,125 +1,125 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.storage_accounts_operations import StorageAccountsOperations -from .operations.usage_operations import UsageOperations -from . import models - - -class StorageManagementClientConfiguration(AzureConfiguration): - """Configuration for StorageManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: Gets subscription credentials which uniquely - identify Microsoft Azure subscription. The subscription ID forms part of - the URI for every service call. - :type subscription_id: str - :param api_version: Client Api Version. - :type api_version: str - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, subscription_id, api_version='2015-05-01-preview', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not isinstance(subscription_id, str): - raise TypeError("Parameter 'subscription_id' must be str.") - if api_version is not None and not isinstance(api_version, str): - raise TypeError("Optional parameter 'api_version' must be str.") - if accept_language is not None and not isinstance(accept_language, str): - raise TypeError("Optional parameter 'accept_language' must be str.") - if not base_url: - base_url = 'https://management.azure.com' - - super(StorageManagementClientConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('storagemanagementclient/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - self.api_version = api_version - self.accept_language = accept_language - self.long_running_operation_retry_timeout = long_running_operation_retry_timeout - self.generate_client_request_id = generate_client_request_id - - -class StorageManagementClient(object): - """StorageManagementClient - - :ivar config: Configuration for client. - :vartype config: StorageManagementClientConfiguration - - :ivar storage_accounts: StorageAccounts operations - :vartype storage_accounts: .operations.StorageAccountsOperations - :ivar usage: Usage operations - :vartype usage: .operations.UsageOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: Gets subscription credentials which uniquely - identify Microsoft Azure subscription. The subscription ID forms part of - the URI for every service call. - :type subscription_id: str - :param api_version: Client Api Version. - :type api_version: str - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, subscription_id, api_version='2015-05-01-preview', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - self.config = StorageManagementClientConfiguration(credentials, subscription_id, api_version, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.storage_accounts = StorageAccountsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.usage = UsageOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.storage_accounts_operations import StorageAccountsOperations +from .operations.usage_operations import UsageOperations +from . import models + + +class StorageManagementClientConfiguration(AzureConfiguration): + """Configuration for StorageManagementClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Gets subscription credentials which uniquely + identify Microsoft Azure subscription. The subscription ID forms part of + the URI for every service call. + :type subscription_id: str + :param api_version: Client Api Version. + :type api_version: str + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, subscription_id, api_version='2015-05-01-preview', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not isinstance(subscription_id, str): + raise TypeError("Parameter 'subscription_id' must be str.") + if api_version is not None and not isinstance(api_version, str): + raise TypeError("Optional parameter 'api_version' must be str.") + if accept_language is not None and not isinstance(accept_language, str): + raise TypeError("Optional parameter 'accept_language' must be str.") + if not base_url: + base_url = 'https://management.azure.com' + + super(StorageManagementClientConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('storagemanagementclient/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id + self.api_version = api_version + self.accept_language = accept_language + self.long_running_operation_retry_timeout = long_running_operation_retry_timeout + self.generate_client_request_id = generate_client_request_id + + +class StorageManagementClient(object): + """StorageManagementClient + + :ivar config: Configuration for client. + :vartype config: StorageManagementClientConfiguration + + :ivar storage_accounts: StorageAccounts operations + :vartype storage_accounts: .operations.StorageAccountsOperations + :ivar usage: Usage operations + :vartype usage: .operations.UsageOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Gets subscription credentials which uniquely + identify Microsoft Azure subscription. The subscription ID forms part of + the URI for every service call. + :type subscription_id: str + :param api_version: Client Api Version. + :type api_version: str + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, subscription_id, api_version='2015-05-01-preview', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + self.config = StorageManagementClientConfiguration(credentials, subscription_id, api_version, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) + self._client = ServiceClient(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.storage_accounts = StorageAccountsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.usage = UsageOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/version.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/version.py index 390b868320..65f47fb851 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/version.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storagemanagementclient/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "2015-05-01-preview" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "2015-05-01-preview" + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/__init__.py index 17433d1c47..fb1c1642d2 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .microsoft_azure_test_url import MicrosoftAzureTestUrl -from .version import VERSION - -__all__ = ['MicrosoftAzureTestUrl'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .microsoft_azure_test_url import MicrosoftAzureTestUrl +from .version import VERSION + +__all__ = ['MicrosoftAzureTestUrl'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/credentials.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/credentials.py index 62c6c7ccd7..7a838fea26 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/credentials.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/credentials.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) - -from msrestazure.azure_active_directory import ( - InteractiveCredentials, - ServicePrincipalCredentials, - UserPassCredentials) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) + +from msrestazure.azure_active_directory import ( + InteractiveCredentials, + ServicePrincipalCredentials, + UserPassCredentials) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/exceptions.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/exceptions.py index 52c23132ba..0ed64bcb1f 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/exceptions.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/exceptions.py @@ -1,23 +1,23 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) - -from msrestazure.azure_exceptions import CloudError +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) + +from msrestazure.azure_exceptions import CloudError diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/microsoft_azure_test_url.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/microsoft_azure_test_url.py index 7798d02d01..a4b9d8c7ed 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/microsoft_azure_test_url.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/microsoft_azure_test_url.py @@ -1,116 +1,116 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.group_operations import GroupOperations -from . import models - - -class MicrosoftAzureTestUrlConfiguration(AzureConfiguration): - """Configuration for MicrosoftAzureTestUrl - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: Subscription Id. - :type subscription_id: str - :param api_version: API Version with value '2014-04-01-preview'. - :type api_version: str - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, subscription_id, api_version='2014-04-01-preview', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not isinstance(subscription_id, str): - raise TypeError("Parameter 'subscription_id' must be str.") - if api_version is not None and not isinstance(api_version, str): - raise TypeError("Optional parameter 'api_version' must be str.") - if accept_language is not None and not isinstance(accept_language, str): - raise TypeError("Optional parameter 'accept_language' must be str.") - if not base_url: - base_url = 'https://management.azure.com/' - - super(MicrosoftAzureTestUrlConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('microsoftazuretesturl/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - self.api_version = api_version - self.accept_language = accept_language - self.long_running_operation_retry_timeout = long_running_operation_retry_timeout - self.generate_client_request_id = generate_client_request_id - - -class MicrosoftAzureTestUrl(object): - """Some cool documentation. - - :ivar config: Configuration for client. - :vartype config: MicrosoftAzureTestUrlConfiguration - - :ivar group: Group operations - :vartype group: .operations.GroupOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: Subscription Id. - :type subscription_id: str - :param api_version: API Version with value '2014-04-01-preview'. - :type api_version: str - :param accept_language: Gets or sets the preferred language for the - response. - :type accept_language: str - :param long_running_operation_retry_timeout: Gets or sets the retry - timeout in seconds for Long Running Operations. Default value is 30. - :type long_running_operation_retry_timeout: int - :param generate_client_request_id: When set to true a unique - x-ms-client-request-id value is generated and included in each request. - Default is true. - :type generate_client_request_id: bool - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, credentials, subscription_id, api_version='2014-04-01-preview', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): - - self.config = MicrosoftAzureTestUrlConfiguration(credentials, subscription_id, api_version, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) - self._client = ServiceClient(self.config.credentials, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.group = GroupOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Serializer, Deserializer +from msrestazure import AzureConfiguration +from .version import VERSION +from .operations.group_operations import GroupOperations +from . import models + + +class MicrosoftAzureTestUrlConfiguration(AzureConfiguration): + """Configuration for MicrosoftAzureTestUrl + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Subscription Id. + :type subscription_id: str + :param api_version: API Version with value '2014-04-01-preview'. + :type api_version: str + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, subscription_id, api_version='2014-04-01-preview', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not isinstance(subscription_id, str): + raise TypeError("Parameter 'subscription_id' must be str.") + if api_version is not None and not isinstance(api_version, str): + raise TypeError("Optional parameter 'api_version' must be str.") + if accept_language is not None and not isinstance(accept_language, str): + raise TypeError("Optional parameter 'accept_language' must be str.") + if not base_url: + base_url = 'https://management.azure.com/' + + super(MicrosoftAzureTestUrlConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('microsoftazuretesturl/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id + self.api_version = api_version + self.accept_language = accept_language + self.long_running_operation_retry_timeout = long_running_operation_retry_timeout + self.generate_client_request_id = generate_client_request_id + + +class MicrosoftAzureTestUrl(object): + """Some cool documentation. + + :ivar config: Configuration for client. + :vartype config: MicrosoftAzureTestUrlConfiguration + + :ivar group: Group operations + :vartype group: .operations.GroupOperations + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Subscription Id. + :type subscription_id: str + :param api_version: API Version with value '2014-04-01-preview'. + :type api_version: str + :param accept_language: Gets or sets the preferred language for the + response. + :type accept_language: str + :param long_running_operation_retry_timeout: Gets or sets the retry + timeout in seconds for Long Running Operations. Default value is 30. + :type long_running_operation_retry_timeout: int + :param generate_client_request_id: When set to true a unique + x-ms-client-request-id value is generated and included in each request. + Default is true. + :type generate_client_request_id: bool + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, credentials, subscription_id, api_version='2014-04-01-preview', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None): + + self.config = MicrosoftAzureTestUrlConfiguration(credentials, subscription_id, api_version, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath) + self._client = ServiceClient(self.config.credentials, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.group = GroupOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/models/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/models/__init__.py index fb14f10646..831a8938f8 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/models/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/models/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .sample_resource_group import SampleResourceGroup -from .error import Error, ErrorException - -__all__ = [ - 'SampleResourceGroup', - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .sample_resource_group import SampleResourceGroup +from .error import Error, ErrorException + +__all__ = [ + 'SampleResourceGroup', + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/models/error.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/models/error.py index b446a6cd9f..86b31b334a 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/models/error.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param code: - :type code: int - :param message: - :type message: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, code=None, message=None): - self.code = code - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param code: + :type code: int + :param message: + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, code=None, message=None): + self.code = code + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/models/sample_resource_group.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/models/sample_resource_group.py index 692c0e7db6..60c471891d 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/models/sample_resource_group.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/models/sample_resource_group.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class SampleResourceGroup(Model): - """SampleResourceGroup. - - :param name: resource group name 'testgroup101' - :type name: str - :param location: resource group location 'West US' - :type location: str - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__(self, name=None, location=None): - self.name = name - self.location = location +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class SampleResourceGroup(Model): + """SampleResourceGroup. + + :param name: resource group name 'testgroup101' + :type name: str + :param location: resource group location 'West US' + :type location: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__(self, name=None, location=None): + self.name = name + self.location = location diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/operations/__init__.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/operations/__init__.py index c4bc44c8ea..d223768f1d 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/operations/__init__.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .group_operations import GroupOperations - -__all__ = [ - 'GroupOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .group_operations import GroupOperations + +__all__ = [ + 'GroupOperations', +] diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/operations/group_operations.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/operations/group_operations.py index b610ecd772..2c879af698 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/operations/group_operations.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/operations/group_operations.py @@ -1,92 +1,92 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -import uuid - -from .. import models - - -class GroupOperations(object): - """GroupOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_sample_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Provides a resouce group with name 'testgroup101' and location 'West - US'. - - :param resource_group_name: Resource Group name 'testgroup101'. - :type resource_group_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`SampleResourceGroup - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('SampleResourceGroup', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +import uuid + +from .. import models + + +class GroupOperations(object): + """GroupOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_sample_resource_group( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Provides a resouce group with name 'testgroup101' and location 'West + US'. + + :param resource_group_name: Resource Group name 'testgroup101'. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`SampleResourceGroup + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('SampleResourceGroup', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/version.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/version.py index 55e3b584b5..7cf329a7c7 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/version.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftazuretesturl/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "2014-04-01-preview" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "2014-04-01-preview" + diff --git a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py index 364ee2ac3c..940ccab416 100644 --- a/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py +++ b/src/generator/AutoRest.Python.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "microsoftazuretesturl" -VERSION = "2014-04-01-preview" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] - -setup( - name=NAME, - version=VERSION, - description="MicrosoftAzureTestUrl", - author_email="", - url="", - keywords=["Swagger", "MicrosoftAzureTestUrl"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Some cool documentation. - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "microsoftazuretesturl" +VERSION = "2014-04-01-preview" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.4.0", "msrestazure>=0.4.0"] + +setup( + name=NAME, + version=VERSION, + description="MicrosoftAzureTestUrl", + author_email="", + url="", + keywords=["Swagger", "MicrosoftAzureTestUrl"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Some cool documentation. + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/__init__.py index c1f708f0e4..1aef76714e 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_swagger_bat_array_service import AutoRestSwaggerBATArrayService -from .version import VERSION - -__all__ = ['AutoRestSwaggerBATArrayService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_swagger_bat_array_service import AutoRestSwaggerBATArrayService +from .version import VERSION + +__all__ = ['AutoRestSwaggerBATArrayService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/auto_rest_swagger_bat_array_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/auto_rest_swagger_bat_array_service.py index eca75091fa..ce96dcda4f 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/auto_rest_swagger_bat_array_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/auto_rest_swagger_bat_array_service.py @@ -1,63 +1,63 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.array_operations import ArrayOperations -from . import models - - -class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): - """Configuration for AutoRestSwaggerBATArrayService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'http://localhost' - - super(AutoRestSwaggerBATArrayServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestswaggerbatarrayservice/{}'.format(VERSION)) - - -class AutoRestSwaggerBATArrayService(object): - """Test Infrastructure for AutoRest Swagger BAT - - :ivar config: Configuration for client. - :vartype config: AutoRestSwaggerBATArrayServiceConfiguration - - :ivar array: Array operations - :vartype array: .operations.ArrayOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestSwaggerBATArrayServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.array = ArrayOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.array_operations import ArrayOperations +from . import models + + +class AutoRestSwaggerBATArrayServiceConfiguration(Configuration): + """Configuration for AutoRestSwaggerBATArrayService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'http://localhost' + + super(AutoRestSwaggerBATArrayServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestswaggerbatarrayservice/{}'.format(VERSION)) + + +class AutoRestSwaggerBATArrayService(object): + """Test Infrastructure for AutoRest Swagger BAT + + :ivar config: Configuration for client. + :vartype config: AutoRestSwaggerBATArrayServiceConfiguration + + :ivar array: Array operations + :vartype array: .operations.ArrayOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestSwaggerBATArrayServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.array = ArrayOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/models/__init__.py index 3ed3a76c2e..b6c32b14d1 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/models/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .product import Product -from .error import Error, ErrorException - -__all__ = [ - 'Product', - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .product import Product +from .error import Error, ErrorException + +__all__ = [ + 'Product', + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/models/product.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/models/product.py index 09fec0276f..4018b24083 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/models/product.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/models/product.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Product(Model): - """Product. - - :param integer: - :type integer: int - :param string: - :type string: str - """ - - _attribute_map = { - 'integer': {'key': 'integer', 'type': 'int'}, - 'string': {'key': 'string', 'type': 'str'}, - } - - def __init__(self, integer=None, string=None): - self.integer = integer - self.string = string +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Product(Model): + """Product. + + :param integer: + :type integer: int + :param string: + :type string: str + """ + + _attribute_map = { + 'integer': {'key': 'integer', 'type': 'int'}, + 'string': {'key': 'string', 'type': 'str'}, + } + + def __init__(self, integer=None, string=None): + self.integer = integer + self.string = string diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/operations/__init__.py index 84a7500037..a318baee8c 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .array_operations import ArrayOperations - -__all__ = [ - 'ArrayOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .array_operations import ArrayOperations + +__all__ = [ + 'ArrayOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/autorestswaggerbatarrayservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/setup.py index b7c9f7cace..cf329dfab3 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyArray/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestswaggerbatarrayservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestSwaggerBATArrayService", - author_email="", - url="", - keywords=["Swagger", "AutoRestSwaggerBATArrayService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest Swagger BAT - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestswaggerbatarrayservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestSwaggerBATArrayService", + author_email="", + url="", + keywords=["Swagger", "AutoRestSwaggerBATArrayService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest Swagger BAT + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/__init__.py index 37d578ab2b..b5af29ff2d 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_bool_test_service import AutoRestBoolTestService -from .version import VERSION - -__all__ = ['AutoRestBoolTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_bool_test_service import AutoRestBoolTestService +from .version import VERSION + +__all__ = ['AutoRestBoolTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/auto_rest_bool_test_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/auto_rest_bool_test_service.py index 4fdebfe070..3e545353ac 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/auto_rest_bool_test_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/auto_rest_bool_test_service.py @@ -1,63 +1,63 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.bool_model_operations import BoolModelOperations -from . import models - - -class AutoRestBoolTestServiceConfiguration(Configuration): - """Configuration for AutoRestBoolTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'http://localhost' - - super(AutoRestBoolTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestbooltestservice/{}'.format(VERSION)) - - -class AutoRestBoolTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestBoolTestServiceConfiguration - - :ivar bool_model: BoolModel operations - :vartype bool_model: .operations.BoolModelOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestBoolTestServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.bool_model = BoolModelOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.bool_model_operations import BoolModelOperations +from . import models + + +class AutoRestBoolTestServiceConfiguration(Configuration): + """Configuration for AutoRestBoolTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'http://localhost' + + super(AutoRestBoolTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestbooltestservice/{}'.format(VERSION)) + + +class AutoRestBoolTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestBoolTestServiceConfiguration + + :ivar bool_model: BoolModel operations + :vartype bool_model: .operations.BoolModelOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestBoolTestServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.bool_model = BoolModelOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/operations/__init__.py index b3ae4f693a..f72d76a79d 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .bool_model_operations import BoolModelOperations - -__all__ = [ - 'BoolModelOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .bool_model_operations import BoolModelOperations + +__all__ = [ + 'BoolModelOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/operations/bool_model_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/operations/bool_model_operations.py index 67fc312ad9..f712f7f0a4 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/operations/bool_model_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/operations/bool_model_operations.py @@ -1,300 +1,300 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class BoolModelOperations(object): - """BoolModelOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_true( - self, custom_headers=None, raw=False, **operation_config): - """Get true Boolean value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: bool - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/bool/true' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('bool', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_true( - self, bool_body, custom_headers=None, raw=False, **operation_config): - """Set Boolean value true. - - :param bool_body: - :type bool_body: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/bool/true' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(bool_body, 'bool') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_false( - self, custom_headers=None, raw=False, **operation_config): - """Get false Boolean value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: bool - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/bool/false' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('bool', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_false( - self, bool_body, custom_headers=None, raw=False, **operation_config): - """Set Boolean value false. - - :param bool_body: - :type bool_body: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/bool/false' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(bool_body, 'bool') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_null( - self, custom_headers=None, raw=False, **operation_config): - """Get null Boolean value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: bool - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/bool/null' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('bool', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_invalid( - self, custom_headers=None, raw=False, **operation_config): - """Get invalid Boolean value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: bool - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/bool/invalid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('bool', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class BoolModelOperations(object): + """BoolModelOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_true( + self, custom_headers=None, raw=False, **operation_config): + """Get true Boolean value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: bool + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/bool/true' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('bool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_true( + self, bool_body, custom_headers=None, raw=False, **operation_config): + """Set Boolean value true. + + :param bool_body: + :type bool_body: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/bool/true' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(bool_body, 'bool') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_false( + self, custom_headers=None, raw=False, **operation_config): + """Get false Boolean value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: bool + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/bool/false' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('bool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_false( + self, bool_body, custom_headers=None, raw=False, **operation_config): + """Set Boolean value false. + + :param bool_body: + :type bool_body: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/bool/false' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(bool_body, 'bool') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_null( + self, custom_headers=None, raw=False, **operation_config): + """Get null Boolean value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: bool + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/bool/null' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('bool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_invalid( + self, custom_headers=None, raw=False, **operation_config): + """Get invalid Boolean value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: bool + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/bool/invalid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('bool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/autorestbooltestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/setup.py index 2347272575..facfec90a0 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyBoolean/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestbooltestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestBoolTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestBoolTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestbooltestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestBoolTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestBoolTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/__init__.py index d597f83cd9..5db23a411c 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_swagger_bat_byte_service import AutoRestSwaggerBATByteService -from .version import VERSION - -__all__ = ['AutoRestSwaggerBATByteService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_swagger_bat_byte_service import AutoRestSwaggerBATByteService +from .version import VERSION + +__all__ = ['AutoRestSwaggerBATByteService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/auto_rest_swagger_bat_byte_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/auto_rest_swagger_bat_byte_service.py index 242cbd2264..e9eba2261d 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/auto_rest_swagger_bat_byte_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/auto_rest_swagger_bat_byte_service.py @@ -1,63 +1,63 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.byte_operations import ByteOperations -from . import models - - -class AutoRestSwaggerBATByteServiceConfiguration(Configuration): - """Configuration for AutoRestSwaggerBATByteService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'http://localhost' - - super(AutoRestSwaggerBATByteServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestswaggerbatbyteservice/{}'.format(VERSION)) - - -class AutoRestSwaggerBATByteService(object): - """Test Infrastructure for AutoRest Swagger BAT - - :ivar config: Configuration for client. - :vartype config: AutoRestSwaggerBATByteServiceConfiguration - - :ivar byte: Byte operations - :vartype byte: .operations.ByteOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestSwaggerBATByteServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.byte = ByteOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.byte_operations import ByteOperations +from . import models + + +class AutoRestSwaggerBATByteServiceConfiguration(Configuration): + """Configuration for AutoRestSwaggerBATByteService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'http://localhost' + + super(AutoRestSwaggerBATByteServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestswaggerbatbyteservice/{}'.format(VERSION)) + + +class AutoRestSwaggerBATByteService(object): + """Test Infrastructure for AutoRest Swagger BAT + + :ivar config: Configuration for client. + :vartype config: AutoRestSwaggerBATByteServiceConfiguration + + :ivar byte: Byte operations + :vartype byte: .operations.ByteOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestSwaggerBATByteServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.byte = ByteOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/operations/__init__.py index f98e6bb77e..38ecf95d6f 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .byte_operations import ByteOperations - -__all__ = [ - 'ByteOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .byte_operations import ByteOperations + +__all__ = [ + 'ByteOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/autorestswaggerbatbyteservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/setup.py index 60c55686b4..0482b6833f 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyByte/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestswaggerbatbyteservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestSwaggerBATByteService", - author_email="", - url="", - keywords=["Swagger", "AutoRestSwaggerBATByteService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest Swagger BAT - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestswaggerbatbyteservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestSwaggerBATByteService", + author_email="", + url="", + keywords=["Swagger", "AutoRestSwaggerBATByteService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest Swagger BAT + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/__init__.py index d16805f90c..e1df7688a1 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_complex_test_service import AutoRestComplexTestService -from .version import VERSION - -__all__ = ['AutoRestComplexTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_complex_test_service import AutoRestComplexTestService +from .version import VERSION + +__all__ = ['AutoRestComplexTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/auto_rest_complex_test_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/auto_rest_complex_test_service.py index 30d3200fb4..1c03e912e1 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/auto_rest_complex_test_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/auto_rest_complex_test_service.py @@ -1,102 +1,102 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.basic_operations import BasicOperations -from .operations.primitive_operations import PrimitiveOperations -from .operations.array_operations import ArrayOperations -from .operations.dictionary_operations import DictionaryOperations -from .operations.inheritance_operations import InheritanceOperations -from .operations.polymorphism_operations import PolymorphismOperations -from .operations.polymorphicrecursive_operations import PolymorphicrecursiveOperations -from .operations.readonlyproperty_operations import ReadonlypropertyOperations -from . import models - - -class AutoRestComplexTestServiceConfiguration(Configuration): - """Configuration for AutoRestComplexTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :ivar api_version: API ID. - :type api_version: str - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'http://localhost' - - super(AutoRestComplexTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestcomplextestservice/{}'.format(VERSION)) - - self.api_version = "2014-04-01-preview" - - -class AutoRestComplexTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestComplexTestServiceConfiguration - - :ivar basic: Basic operations - :vartype basic: .operations.BasicOperations - :ivar primitive: Primitive operations - :vartype primitive: .operations.PrimitiveOperations - :ivar array: Array operations - :vartype array: .operations.ArrayOperations - :ivar dictionary: Dictionary operations - :vartype dictionary: .operations.DictionaryOperations - :ivar inheritance: Inheritance operations - :vartype inheritance: .operations.InheritanceOperations - :ivar polymorphism: Polymorphism operations - :vartype polymorphism: .operations.PolymorphismOperations - :ivar polymorphicrecursive: Polymorphicrecursive operations - :vartype polymorphicrecursive: .operations.PolymorphicrecursiveOperations - :ivar readonlyproperty: Readonlyproperty operations - :vartype readonlyproperty: .operations.ReadonlypropertyOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestComplexTestServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.basic = BasicOperations( - self._client, self.config, self._serialize, self._deserialize) - self.primitive = PrimitiveOperations( - self._client, self.config, self._serialize, self._deserialize) - self.array = ArrayOperations( - self._client, self.config, self._serialize, self._deserialize) - self.dictionary = DictionaryOperations( - self._client, self.config, self._serialize, self._deserialize) - self.inheritance = InheritanceOperations( - self._client, self.config, self._serialize, self._deserialize) - self.polymorphism = PolymorphismOperations( - self._client, self.config, self._serialize, self._deserialize) - self.polymorphicrecursive = PolymorphicrecursiveOperations( - self._client, self.config, self._serialize, self._deserialize) - self.readonlyproperty = ReadonlypropertyOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.basic_operations import BasicOperations +from .operations.primitive_operations import PrimitiveOperations +from .operations.array_operations import ArrayOperations +from .operations.dictionary_operations import DictionaryOperations +from .operations.inheritance_operations import InheritanceOperations +from .operations.polymorphism_operations import PolymorphismOperations +from .operations.polymorphicrecursive_operations import PolymorphicrecursiveOperations +from .operations.readonlyproperty_operations import ReadonlypropertyOperations +from . import models + + +class AutoRestComplexTestServiceConfiguration(Configuration): + """Configuration for AutoRestComplexTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :ivar api_version: API ID. + :type api_version: str + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'http://localhost' + + super(AutoRestComplexTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestcomplextestservice/{}'.format(VERSION)) + + self.api_version = "2014-04-01-preview" + + +class AutoRestComplexTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestComplexTestServiceConfiguration + + :ivar basic: Basic operations + :vartype basic: .operations.BasicOperations + :ivar primitive: Primitive operations + :vartype primitive: .operations.PrimitiveOperations + :ivar array: Array operations + :vartype array: .operations.ArrayOperations + :ivar dictionary: Dictionary operations + :vartype dictionary: .operations.DictionaryOperations + :ivar inheritance: Inheritance operations + :vartype inheritance: .operations.InheritanceOperations + :ivar polymorphism: Polymorphism operations + :vartype polymorphism: .operations.PolymorphismOperations + :ivar polymorphicrecursive: Polymorphicrecursive operations + :vartype polymorphicrecursive: .operations.PolymorphicrecursiveOperations + :ivar readonlyproperty: Readonlyproperty operations + :vartype readonlyproperty: .operations.ReadonlypropertyOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestComplexTestServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.basic = BasicOperations( + self._client, self.config, self._serialize, self._deserialize) + self.primitive = PrimitiveOperations( + self._client, self.config, self._serialize, self._deserialize) + self.array = ArrayOperations( + self._client, self.config, self._serialize, self._deserialize) + self.dictionary = DictionaryOperations( + self._client, self.config, self._serialize, self._deserialize) + self.inheritance = InheritanceOperations( + self._client, self.config, self._serialize, self._deserialize) + self.polymorphism = PolymorphismOperations( + self._client, self.config, self._serialize, self._deserialize) + self.polymorphicrecursive = PolymorphicrecursiveOperations( + self._client, self.config, self._serialize, self._deserialize) + self.readonlyproperty = ReadonlypropertyOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/__init__.py index 312844c2ed..2781b9a02d 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/__init__.py @@ -1,70 +1,70 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException -from .basic import Basic -from .pet import Pet -from .cat import Cat -from .dog import Dog -from .siamese import Siamese -from .fish import Fish -from .salmon import Salmon -from .shark import Shark -from .sawshark import Sawshark -from .goblinshark import Goblinshark -from .cookiecuttershark import Cookiecuttershark -from .int_wrapper import IntWrapper -from .long_wrapper import LongWrapper -from .float_wrapper import FloatWrapper -from .double_wrapper import DoubleWrapper -from .boolean_wrapper import BooleanWrapper -from .string_wrapper import StringWrapper -from .date_wrapper import DateWrapper -from .datetime_wrapper import DatetimeWrapper -from .datetimerfc1123_wrapper import Datetimerfc1123Wrapper -from .duration_wrapper import DurationWrapper -from .byte_wrapper import ByteWrapper -from .array_wrapper import ArrayWrapper -from .dictionary_wrapper import DictionaryWrapper -from .readonly_obj import ReadonlyObj -from .auto_rest_complex_test_service_enums import ( - CMYKColors, -) - -__all__ = [ - 'Error', 'ErrorException', - 'Basic', - 'Pet', - 'Cat', - 'Dog', - 'Siamese', - 'Fish', - 'Salmon', - 'Shark', - 'Sawshark', - 'Goblinshark', - 'Cookiecuttershark', - 'IntWrapper', - 'LongWrapper', - 'FloatWrapper', - 'DoubleWrapper', - 'BooleanWrapper', - 'StringWrapper', - 'DateWrapper', - 'DatetimeWrapper', - 'Datetimerfc1123Wrapper', - 'DurationWrapper', - 'ByteWrapper', - 'ArrayWrapper', - 'DictionaryWrapper', - 'ReadonlyObj', - 'CMYKColors', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException +from .basic import Basic +from .pet import Pet +from .dog import Dog +from .cat import Cat +from .siamese import Siamese +from .fish import Fish +from .salmon import Salmon +from .shark import Shark +from .sawshark import Sawshark +from .goblinshark import Goblinshark +from .cookiecuttershark import Cookiecuttershark +from .int_wrapper import IntWrapper +from .long_wrapper import LongWrapper +from .float_wrapper import FloatWrapper +from .double_wrapper import DoubleWrapper +from .boolean_wrapper import BooleanWrapper +from .string_wrapper import StringWrapper +from .date_wrapper import DateWrapper +from .datetime_wrapper import DatetimeWrapper +from .datetimerfc1123_wrapper import Datetimerfc1123Wrapper +from .duration_wrapper import DurationWrapper +from .byte_wrapper import ByteWrapper +from .array_wrapper import ArrayWrapper +from .dictionary_wrapper import DictionaryWrapper +from .readonly_obj import ReadonlyObj +from .auto_rest_complex_test_service_enums import ( + CMYKColors, +) + +__all__ = [ + 'Error', 'ErrorException', + 'Basic', + 'Pet', + 'Dog', + 'Cat', + 'Siamese', + 'Fish', + 'Salmon', + 'Shark', + 'Sawshark', + 'Goblinshark', + 'Cookiecuttershark', + 'IntWrapper', + 'LongWrapper', + 'FloatWrapper', + 'DoubleWrapper', + 'BooleanWrapper', + 'StringWrapper', + 'DateWrapper', + 'DatetimeWrapper', + 'Datetimerfc1123Wrapper', + 'DurationWrapper', + 'ByteWrapper', + 'ArrayWrapper', + 'DictionaryWrapper', + 'ReadonlyObj', + 'CMYKColors', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/array_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/array_wrapper.py index 1efe3f8f7d..094e7cc235 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/array_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/array_wrapper.py @@ -1,27 +1,27 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ArrayWrapper(Model): - """ArrayWrapper. - - :param array: - :type array: list of str - """ - - _attribute_map = { - 'array': {'key': 'array', 'type': '[str]'}, - } - - def __init__(self, array=None): - self.array = array +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ArrayWrapper(Model): + """ArrayWrapper. + + :param array: + :type array: list of str + """ + + _attribute_map = { + 'array': {'key': 'array', 'type': '[str]'}, + } + + def __init__(self, array=None): + self.array = array diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/auto_rest_complex_test_service_enums.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/auto_rest_complex_test_service_enums.py index eaedaff1e5..bbbc842658 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/auto_rest_complex_test_service_enums.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/auto_rest_complex_test_service_enums.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum - - -class CMYKColors(Enum): - - cyan = "cyan" - magenta = "Magenta" - yellow = "YELLOW" - blac_k = "blacK" +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum + + +class CMYKColors(Enum): + + cyan = "cyan" + magenta = "Magenta" + yellow = "YELLOW" + blac_k = "blacK" diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/basic.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/basic.py index 963d5fcbb1..eae13112a4 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/basic.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/basic.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Basic(Model): - """Basic. - - :param id: Basic Id - :type id: int - :param name: Name property with a very - long description that - does not fit on a single line - and a line break. - :type name: str - :param color: Possible values include: 'cyan', 'Magenta', 'YELLOW', - 'blacK' - :type color: str or :class:`CMYKColors - ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'color': {'key': 'color', 'type': 'str'}, - } - - def __init__(self, id=None, name=None, color=None): - self.id = id - self.name = name - self.color = color +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Basic(Model): + """Basic. + + :param id: Basic Id + :type id: int + :param name: Name property with a very + long description that + does not fit on a single line + and a line break. + :type name: str + :param color: Possible values include: 'cyan', 'Magenta', 'YELLOW', + 'blacK' + :type color: str or :class:`CMYKColors + ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'color': {'key': 'color', 'type': 'str'}, + } + + def __init__(self, id=None, name=None, color=None): + self.id = id + self.name = name + self.color = color diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/boolean_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/boolean_wrapper.py index 66dbc69be3..9115a9581b 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/boolean_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/boolean_wrapper.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class BooleanWrapper(Model): - """BooleanWrapper. - - :param field_true: - :type field_true: bool - :param field_false: - :type field_false: bool - """ - - _attribute_map = { - 'field_true': {'key': 'field_true', 'type': 'bool'}, - 'field_false': {'key': 'field_false', 'type': 'bool'}, - } - - def __init__(self, field_true=None, field_false=None): - self.field_true = field_true - self.field_false = field_false +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class BooleanWrapper(Model): + """BooleanWrapper. + + :param field_true: + :type field_true: bool + :param field_false: + :type field_false: bool + """ + + _attribute_map = { + 'field_true': {'key': 'field_true', 'type': 'bool'}, + 'field_false': {'key': 'field_false', 'type': 'bool'}, + } + + def __init__(self, field_true=None, field_false=None): + self.field_true = field_true + self.field_false = field_false diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/byte_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/byte_wrapper.py index 17b16d1373..1f14848052 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/byte_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/byte_wrapper.py @@ -1,27 +1,27 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ByteWrapper(Model): - """ByteWrapper. - - :param field: - :type field: bytearray - """ - - _attribute_map = { - 'field': {'key': 'field', 'type': 'bytearray'}, - } - - def __init__(self, field=None): - self.field = field +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ByteWrapper(Model): + """ByteWrapper. + + :param field: + :type field: bytearray + """ + + _attribute_map = { + 'field': {'key': 'field', 'type': 'bytearray'}, + } + + def __init__(self, field=None): + self.field = field diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/cat.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/cat.py index f0c6c2a492..beead9d226 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/cat.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/cat.py @@ -1,39 +1,39 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .pet import Pet - - -class Cat(Pet): - """Cat. - - :param id: - :type id: int - :param name: - :type name: str - :param color: - :type color: str - :param hates: - :type hates: list of :class:`Dog - ` - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'color': {'key': 'color', 'type': 'str'}, - 'hates': {'key': 'hates', 'type': '[Dog]'}, - } - - def __init__(self, id=None, name=None, color=None, hates=None): - super(Cat, self).__init__(id=id, name=name) - self.color = color - self.hates = hates +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .pet import Pet + + +class Cat(Pet): + """Cat. + + :param id: + :type id: int + :param name: + :type name: str + :param color: + :type color: str + :param hates: + :type hates: list of :class:`Dog + ` + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'color': {'key': 'color', 'type': 'str'}, + 'hates': {'key': 'hates', 'type': '[Dog]'}, + } + + def __init__(self, id=None, name=None, color=None, hates=None): + super(Cat, self).__init__(id=id, name=name) + self.color = color + self.hates = hates diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/cookiecuttershark.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/cookiecuttershark.py index aa83dc4052..df7d2894b0 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/cookiecuttershark.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/cookiecuttershark.py @@ -1,41 +1,41 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .shark import Shark - - -class Cookiecuttershark(Shark): - """Cookiecuttershark. - - :param species: - :type species: str - :param length: - :type length: float - :param siblings: - :type siblings: list of :class:`Fish - ` - :param fishtype: Polymorphic Discriminator - :type fishtype: str - :param age: - :type age: int - :param birthday: - :type birthday: datetime - """ - - _validation = { - 'length': {'required': True}, - 'fishtype': {'required': True}, - 'birthday': {'required': True}, - } - - def __init__(self, length, birthday, species=None, siblings=None, age=None): - super(Cookiecuttershark, self).__init__(species=species, length=length, siblings=siblings, age=age, birthday=birthday) - self.fishtype = 'cookiecuttershark' +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .shark import Shark + + +class Cookiecuttershark(Shark): + """Cookiecuttershark. + + :param species: + :type species: str + :param length: + :type length: float + :param siblings: + :type siblings: list of :class:`Fish + ` + :param fishtype: Polymorphic Discriminator + :type fishtype: str + :param age: + :type age: int + :param birthday: + :type birthday: datetime + """ + + _validation = { + 'length': {'required': True}, + 'fishtype': {'required': True}, + 'birthday': {'required': True}, + } + + def __init__(self, length, birthday, species=None, siblings=None, age=None): + super(Cookiecuttershark, self).__init__(species=species, length=length, siblings=siblings, age=age, birthday=birthday) + self.fishtype = 'cookiecuttershark' diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/date_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/date_wrapper.py index 3ba85563f5..d3ca67b75d 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/date_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/date_wrapper.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DateWrapper(Model): - """DateWrapper. - - :param field: - :type field: date - :param leap: - :type leap: date - """ - - _attribute_map = { - 'field': {'key': 'field', 'type': 'date'}, - 'leap': {'key': 'leap', 'type': 'date'}, - } - - def __init__(self, field=None, leap=None): - self.field = field - self.leap = leap +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DateWrapper(Model): + """DateWrapper. + + :param field: + :type field: date + :param leap: + :type leap: date + """ + + _attribute_map = { + 'field': {'key': 'field', 'type': 'date'}, + 'leap': {'key': 'leap', 'type': 'date'}, + } + + def __init__(self, field=None, leap=None): + self.field = field + self.leap = leap diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/datetime_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/datetime_wrapper.py index f7e21687aa..7eadcec6a2 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/datetime_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/datetime_wrapper.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DatetimeWrapper(Model): - """DatetimeWrapper. - - :param field: - :type field: datetime - :param now: - :type now: datetime - """ - - _attribute_map = { - 'field': {'key': 'field', 'type': 'iso-8601'}, - 'now': {'key': 'now', 'type': 'iso-8601'}, - } - - def __init__(self, field=None, now=None): - self.field = field - self.now = now +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DatetimeWrapper(Model): + """DatetimeWrapper. + + :param field: + :type field: datetime + :param now: + :type now: datetime + """ + + _attribute_map = { + 'field': {'key': 'field', 'type': 'iso-8601'}, + 'now': {'key': 'now', 'type': 'iso-8601'}, + } + + def __init__(self, field=None, now=None): + self.field = field + self.now = now diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/datetimerfc1123_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/datetimerfc1123_wrapper.py index 25158f2b96..0efa83fbca 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/datetimerfc1123_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/datetimerfc1123_wrapper.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Datetimerfc1123Wrapper(Model): - """Datetimerfc1123Wrapper. - - :param field: - :type field: datetime - :param now: - :type now: datetime - """ - - _attribute_map = { - 'field': {'key': 'field', 'type': 'rfc-1123'}, - 'now': {'key': 'now', 'type': 'rfc-1123'}, - } - - def __init__(self, field=None, now=None): - self.field = field - self.now = now +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Datetimerfc1123Wrapper(Model): + """Datetimerfc1123Wrapper. + + :param field: + :type field: datetime + :param now: + :type now: datetime + """ + + _attribute_map = { + 'field': {'key': 'field', 'type': 'rfc-1123'}, + 'now': {'key': 'now', 'type': 'rfc-1123'}, + } + + def __init__(self, field=None, now=None): + self.field = field + self.now = now diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/dictionary_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/dictionary_wrapper.py index c57d3bceea..6000e4eb57 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/dictionary_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/dictionary_wrapper.py @@ -1,27 +1,27 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DictionaryWrapper(Model): - """DictionaryWrapper. - - :param default_program: - :type default_program: dict - """ - - _attribute_map = { - 'default_program': {'key': 'defaultProgram', 'type': '{str}'}, - } - - def __init__(self, default_program=None): - self.default_program = default_program +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DictionaryWrapper(Model): + """DictionaryWrapper. + + :param default_program: + :type default_program: dict + """ + + _attribute_map = { + 'default_program': {'key': 'defaultProgram', 'type': '{str}'}, + } + + def __init__(self, default_program=None): + self.default_program = default_program diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/dog.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/dog.py index 35f15d1290..3e2f75d57f 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/dog.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/dog.py @@ -1,34 +1,34 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .pet import Pet - - -class Dog(Pet): - """Dog. - - :param id: - :type id: int - :param name: - :type name: str - :param food: - :type food: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'food': {'key': 'food', 'type': 'str'}, - } - - def __init__(self, id=None, name=None, food=None): - super(Dog, self).__init__(id=id, name=name) - self.food = food +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .pet import Pet + + +class Dog(Pet): + """Dog. + + :param id: + :type id: int + :param name: + :type name: str + :param food: + :type food: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'food': {'key': 'food', 'type': 'str'}, + } + + def __init__(self, id=None, name=None, food=None): + super(Dog, self).__init__(id=id, name=name) + self.food = food diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/double_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/double_wrapper.py index e88ea8b053..fee1848470 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/double_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/double_wrapper.py @@ -1,34 +1,34 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DoubleWrapper(Model): - """DoubleWrapper. - - :param field1: - :type field1: float - :param - field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: - :type - field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: - float - """ - - _attribute_map = { - 'field1': {'key': 'field1', 'type': 'float'}, - 'field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose': {'key': 'field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose', 'type': 'float'}, - } - - def __init__(self, field1=None, field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose=None): - self.field1 = field1 - self.field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose = field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DoubleWrapper(Model): + """DoubleWrapper. + + :param field1: + :type field1: float + :param + field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: + :type + field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose: + float + """ + + _attribute_map = { + 'field1': {'key': 'field1', 'type': 'float'}, + 'field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose': {'key': 'field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose', 'type': 'float'}, + } + + def __init__(self, field1=None, field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose=None): + self.field1 = field1 + self.field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose = field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/duration_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/duration_wrapper.py index b9e6a71836..462fa34d42 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/duration_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/duration_wrapper.py @@ -1,27 +1,27 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class DurationWrapper(Model): - """DurationWrapper. - - :param field: - :type field: timedelta - """ - - _attribute_map = { - 'field': {'key': 'field', 'type': 'duration'}, - } - - def __init__(self, field=None): - self.field = field +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class DurationWrapper(Model): + """DurationWrapper. + + :param field: + :type field: timedelta + """ + + _attribute_map = { + 'field': {'key': 'field', 'type': 'duration'}, + } + + def __init__(self, field=None): + self.field = field diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/fish.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/fish.py index c0d851c36f..401848f601 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/fish.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/fish.py @@ -1,49 +1,49 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Fish(Model): - """Fish. - - :param species: - :type species: str - :param length: - :type length: float - :param siblings: - :type siblings: list of :class:`Fish - ` - :param fishtype: Polymorphic Discriminator - :type fishtype: str - """ - - _validation = { - 'length': {'required': True}, - 'fishtype': {'required': True}, - } - - _attribute_map = { - 'species': {'key': 'species', 'type': 'str'}, - 'length': {'key': 'length', 'type': 'float'}, - 'siblings': {'key': 'siblings', 'type': '[Fish]'}, - 'fishtype': {'key': 'fishtype', 'type': 'str'}, - } - - _subtype_map = { - 'fishtype': {'salmon': 'Salmon', 'shark': 'Shark'} - } - - def __init__(self, length, species=None, siblings=None): - self.species = species - self.length = length - self.siblings = siblings - self.fishtype = None +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Fish(Model): + """Fish. + + :param species: + :type species: str + :param length: + :type length: float + :param siblings: + :type siblings: list of :class:`Fish + ` + :param fishtype: Polymorphic Discriminator + :type fishtype: str + """ + + _validation = { + 'length': {'required': True}, + 'fishtype': {'required': True}, + } + + _attribute_map = { + 'species': {'key': 'species', 'type': 'str'}, + 'length': {'key': 'length', 'type': 'float'}, + 'siblings': {'key': 'siblings', 'type': '[Fish]'}, + 'fishtype': {'key': 'fishtype', 'type': 'str'}, + } + + _subtype_map = { + 'fishtype': {'salmon': 'Salmon', 'shark': 'Shark'} + } + + def __init__(self, length, species=None, siblings=None): + self.species = species + self.length = length + self.siblings = siblings + self.fishtype = None diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/float_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/float_wrapper.py index 84e62339bf..9772b377e9 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/float_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/float_wrapper.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class FloatWrapper(Model): - """FloatWrapper. - - :param field1: - :type field1: float - :param field2: - :type field2: float - """ - - _attribute_map = { - 'field1': {'key': 'field1', 'type': 'float'}, - 'field2': {'key': 'field2', 'type': 'float'}, - } - - def __init__(self, field1=None, field2=None): - self.field1 = field1 - self.field2 = field2 +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class FloatWrapper(Model): + """FloatWrapper. + + :param field1: + :type field1: float + :param field2: + :type field2: float + """ + + _attribute_map = { + 'field1': {'key': 'field1', 'type': 'float'}, + 'field2': {'key': 'field2', 'type': 'float'}, + } + + def __init__(self, field1=None, field2=None): + self.field1 = field1 + self.field2 = field2 diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/goblinshark.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/goblinshark.py index a8e32c120d..19368f76b5 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/goblinshark.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/goblinshark.py @@ -1,54 +1,54 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .shark import Shark - - -class Goblinshark(Shark): - """Goblinshark. - - :param species: - :type species: str - :param length: - :type length: float - :param siblings: - :type siblings: list of :class:`Fish - ` - :param fishtype: Polymorphic Discriminator - :type fishtype: str - :param age: - :type age: int - :param birthday: - :type birthday: datetime - :param jawsize: - :type jawsize: int - """ - - _validation = { - 'length': {'required': True}, - 'fishtype': {'required': True}, - 'birthday': {'required': True}, - } - - _attribute_map = { - 'species': {'key': 'species', 'type': 'str'}, - 'length': {'key': 'length', 'type': 'float'}, - 'siblings': {'key': 'siblings', 'type': '[Fish]'}, - 'fishtype': {'key': 'fishtype', 'type': 'str'}, - 'age': {'key': 'age', 'type': 'int'}, - 'birthday': {'key': 'birthday', 'type': 'iso-8601'}, - 'jawsize': {'key': 'jawsize', 'type': 'int'}, - } - - def __init__(self, length, birthday, species=None, siblings=None, age=None, jawsize=None): - super(Goblinshark, self).__init__(species=species, length=length, siblings=siblings, age=age, birthday=birthday) - self.jawsize = jawsize - self.fishtype = 'goblin' +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .shark import Shark + + +class Goblinshark(Shark): + """Goblinshark. + + :param species: + :type species: str + :param length: + :type length: float + :param siblings: + :type siblings: list of :class:`Fish + ` + :param fishtype: Polymorphic Discriminator + :type fishtype: str + :param age: + :type age: int + :param birthday: + :type birthday: datetime + :param jawsize: + :type jawsize: int + """ + + _validation = { + 'length': {'required': True}, + 'fishtype': {'required': True}, + 'birthday': {'required': True}, + } + + _attribute_map = { + 'species': {'key': 'species', 'type': 'str'}, + 'length': {'key': 'length', 'type': 'float'}, + 'siblings': {'key': 'siblings', 'type': '[Fish]'}, + 'fishtype': {'key': 'fishtype', 'type': 'str'}, + 'age': {'key': 'age', 'type': 'int'}, + 'birthday': {'key': 'birthday', 'type': 'iso-8601'}, + 'jawsize': {'key': 'jawsize', 'type': 'int'}, + } + + def __init__(self, length, birthday, species=None, siblings=None, age=None, jawsize=None): + super(Goblinshark, self).__init__(species=species, length=length, siblings=siblings, age=age, birthday=birthday) + self.jawsize = jawsize + self.fishtype = 'goblin' diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/int_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/int_wrapper.py index fc276dcc05..3e8df0c282 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/int_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/int_wrapper.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class IntWrapper(Model): - """IntWrapper. - - :param field1: - :type field1: int - :param field2: - :type field2: int - """ - - _attribute_map = { - 'field1': {'key': 'field1', 'type': 'int'}, - 'field2': {'key': 'field2', 'type': 'int'}, - } - - def __init__(self, field1=None, field2=None): - self.field1 = field1 - self.field2 = field2 +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class IntWrapper(Model): + """IntWrapper. + + :param field1: + :type field1: int + :param field2: + :type field2: int + """ + + _attribute_map = { + 'field1': {'key': 'field1', 'type': 'int'}, + 'field2': {'key': 'field2', 'type': 'int'}, + } + + def __init__(self, field1=None, field2=None): + self.field1 = field1 + self.field2 = field2 diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/long_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/long_wrapper.py index 590ce94dd1..6ca06ccef7 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/long_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/long_wrapper.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class LongWrapper(Model): - """LongWrapper. - - :param field1: - :type field1: long - :param field2: - :type field2: long - """ - - _attribute_map = { - 'field1': {'key': 'field1', 'type': 'long'}, - 'field2': {'key': 'field2', 'type': 'long'}, - } - - def __init__(self, field1=None, field2=None): - self.field1 = field1 - self.field2 = field2 +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class LongWrapper(Model): + """LongWrapper. + + :param field1: + :type field1: long + :param field2: + :type field2: long + """ + + _attribute_map = { + 'field1': {'key': 'field1', 'type': 'long'}, + 'field2': {'key': 'field2', 'type': 'long'}, + } + + def __init__(self, field1=None, field2=None): + self.field1 = field1 + self.field2 = field2 diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/pet.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/pet.py index 75d8033b5f..98b7ad4e0d 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/pet.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/pet.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Pet(Model): - """Pet. - - :param id: - :type id: int - :param name: - :type name: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, id=None, name=None): - self.id = id - self.name = name +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Pet(Model): + """Pet. + + :param id: + :type id: int + :param name: + :type name: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, id=None, name=None): + self.id = id + self.name = name diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/readonly_obj.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/readonly_obj.py index 4bb7a86b59..012996fa63 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/readonly_obj.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/readonly_obj.py @@ -1,38 +1,38 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ReadonlyObj(Model): - """ReadonlyObj. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: - :vartype id: str - :param size: - :type size: int - """ - - _validation = { - 'id': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'size': {'key': 'size', 'type': 'int'}, - } - - def __init__(self, size=None): - self.id = None - self.size = size +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ReadonlyObj(Model): + """ReadonlyObj. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: + :vartype id: str + :param size: + :type size: int + """ + + _validation = { + 'id': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'size': {'key': 'size', 'type': 'int'}, + } + + def __init__(self, size=None): + self.id = None + self.size = size diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/salmon.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/salmon.py index fd8d4ad6a0..b6052ab178 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/salmon.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/salmon.py @@ -1,51 +1,51 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .fish import Fish - - -class Salmon(Fish): - """Salmon. - - :param species: - :type species: str - :param length: - :type length: float - :param siblings: - :type siblings: list of :class:`Fish - ` - :param fishtype: Polymorphic Discriminator - :type fishtype: str - :param location: - :type location: str - :param iswild: - :type iswild: bool - """ - - _validation = { - 'length': {'required': True}, - 'fishtype': {'required': True}, - } - - _attribute_map = { - 'species': {'key': 'species', 'type': 'str'}, - 'length': {'key': 'length', 'type': 'float'}, - 'siblings': {'key': 'siblings', 'type': '[Fish]'}, - 'fishtype': {'key': 'fishtype', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'iswild': {'key': 'iswild', 'type': 'bool'}, - } - - def __init__(self, length, species=None, siblings=None, location=None, iswild=None): - super(Salmon, self).__init__(species=species, length=length, siblings=siblings) - self.location = location - self.iswild = iswild - self.fishtype = 'salmon' +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .fish import Fish + + +class Salmon(Fish): + """Salmon. + + :param species: + :type species: str + :param length: + :type length: float + :param siblings: + :type siblings: list of :class:`Fish + ` + :param fishtype: Polymorphic Discriminator + :type fishtype: str + :param location: + :type location: str + :param iswild: + :type iswild: bool + """ + + _validation = { + 'length': {'required': True}, + 'fishtype': {'required': True}, + } + + _attribute_map = { + 'species': {'key': 'species', 'type': 'str'}, + 'length': {'key': 'length', 'type': 'float'}, + 'siblings': {'key': 'siblings', 'type': '[Fish]'}, + 'fishtype': {'key': 'fishtype', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'iswild': {'key': 'iswild', 'type': 'bool'}, + } + + def __init__(self, length, species=None, siblings=None, location=None, iswild=None): + super(Salmon, self).__init__(species=species, length=length, siblings=siblings) + self.location = location + self.iswild = iswild + self.fishtype = 'salmon' diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/sawshark.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/sawshark.py index c5dc0d764a..cde120202c 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/sawshark.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/sawshark.py @@ -1,54 +1,54 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .shark import Shark - - -class Sawshark(Shark): - """Sawshark. - - :param species: - :type species: str - :param length: - :type length: float - :param siblings: - :type siblings: list of :class:`Fish - ` - :param fishtype: Polymorphic Discriminator - :type fishtype: str - :param age: - :type age: int - :param birthday: - :type birthday: datetime - :param picture: - :type picture: bytearray - """ - - _validation = { - 'length': {'required': True}, - 'fishtype': {'required': True}, - 'birthday': {'required': True}, - } - - _attribute_map = { - 'species': {'key': 'species', 'type': 'str'}, - 'length': {'key': 'length', 'type': 'float'}, - 'siblings': {'key': 'siblings', 'type': '[Fish]'}, - 'fishtype': {'key': 'fishtype', 'type': 'str'}, - 'age': {'key': 'age', 'type': 'int'}, - 'birthday': {'key': 'birthday', 'type': 'iso-8601'}, - 'picture': {'key': 'picture', 'type': 'bytearray'}, - } - - def __init__(self, length, birthday, species=None, siblings=None, age=None, picture=None): - super(Sawshark, self).__init__(species=species, length=length, siblings=siblings, age=age, birthday=birthday) - self.picture = picture - self.fishtype = 'sawshark' +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .shark import Shark + + +class Sawshark(Shark): + """Sawshark. + + :param species: + :type species: str + :param length: + :type length: float + :param siblings: + :type siblings: list of :class:`Fish + ` + :param fishtype: Polymorphic Discriminator + :type fishtype: str + :param age: + :type age: int + :param birthday: + :type birthday: datetime + :param picture: + :type picture: bytearray + """ + + _validation = { + 'length': {'required': True}, + 'fishtype': {'required': True}, + 'birthday': {'required': True}, + } + + _attribute_map = { + 'species': {'key': 'species', 'type': 'str'}, + 'length': {'key': 'length', 'type': 'float'}, + 'siblings': {'key': 'siblings', 'type': '[Fish]'}, + 'fishtype': {'key': 'fishtype', 'type': 'str'}, + 'age': {'key': 'age', 'type': 'int'}, + 'birthday': {'key': 'birthday', 'type': 'iso-8601'}, + 'picture': {'key': 'picture', 'type': 'bytearray'}, + } + + def __init__(self, length, birthday, species=None, siblings=None, age=None, picture=None): + super(Sawshark, self).__init__(species=species, length=length, siblings=siblings, age=age, birthday=birthday) + self.picture = picture + self.fishtype = 'sawshark' diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/shark.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/shark.py index b6fcc51cf5..c1f78a267c 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/shark.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/shark.py @@ -1,56 +1,56 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .fish import Fish - - -class Shark(Fish): - """Shark. - - :param species: - :type species: str - :param length: - :type length: float - :param siblings: - :type siblings: list of :class:`Fish - ` - :param fishtype: Polymorphic Discriminator - :type fishtype: str - :param age: - :type age: int - :param birthday: - :type birthday: datetime - """ - - _validation = { - 'length': {'required': True}, - 'fishtype': {'required': True}, - 'birthday': {'required': True}, - } - - _attribute_map = { - 'species': {'key': 'species', 'type': 'str'}, - 'length': {'key': 'length', 'type': 'float'}, - 'siblings': {'key': 'siblings', 'type': '[Fish]'}, - 'fishtype': {'key': 'fishtype', 'type': 'str'}, - 'age': {'key': 'age', 'type': 'int'}, - 'birthday': {'key': 'birthday', 'type': 'iso-8601'}, - } - - _subtype_map = { - 'fishtype': {'sawshark': 'Sawshark', 'goblin': 'Goblinshark', 'cookiecuttershark': 'Cookiecuttershark'} - } - - def __init__(self, length, birthday, species=None, siblings=None, age=None): - super(Shark, self).__init__(species=species, length=length, siblings=siblings) - self.age = age - self.birthday = birthday - self.fishtype = 'shark' +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .fish import Fish + + +class Shark(Fish): + """Shark. + + :param species: + :type species: str + :param length: + :type length: float + :param siblings: + :type siblings: list of :class:`Fish + ` + :param fishtype: Polymorphic Discriminator + :type fishtype: str + :param age: + :type age: int + :param birthday: + :type birthday: datetime + """ + + _validation = { + 'length': {'required': True}, + 'fishtype': {'required': True}, + 'birthday': {'required': True}, + } + + _attribute_map = { + 'species': {'key': 'species', 'type': 'str'}, + 'length': {'key': 'length', 'type': 'float'}, + 'siblings': {'key': 'siblings', 'type': '[Fish]'}, + 'fishtype': {'key': 'fishtype', 'type': 'str'}, + 'age': {'key': 'age', 'type': 'int'}, + 'birthday': {'key': 'birthday', 'type': 'iso-8601'}, + } + + _subtype_map = { + 'fishtype': {'sawshark': 'Sawshark', 'goblin': 'Goblinshark', 'cookiecuttershark': 'Cookiecuttershark'} + } + + def __init__(self, length, birthday, species=None, siblings=None, age=None): + super(Shark, self).__init__(species=species, length=length, siblings=siblings) + self.age = age + self.birthday = birthday + self.fishtype = 'shark' diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/siamese.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/siamese.py index c606b773cc..2e08d28d8d 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/siamese.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/siamese.py @@ -1,41 +1,41 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .cat import Cat - - -class Siamese(Cat): - """Siamese. - - :param id: - :type id: int - :param name: - :type name: str - :param color: - :type color: str - :param hates: - :type hates: list of :class:`Dog - ` - :param breed: - :type breed: str - """ - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - 'color': {'key': 'color', 'type': 'str'}, - 'hates': {'key': 'hates', 'type': '[Dog]'}, - 'breed': {'key': 'breed', 'type': 'str'}, - } - - def __init__(self, id=None, name=None, color=None, hates=None, breed=None): - super(Siamese, self).__init__(id=id, name=name, color=color, hates=hates) - self.breed = breed +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .cat import Cat + + +class Siamese(Cat): + """Siamese. + + :param id: + :type id: int + :param name: + :type name: str + :param color: + :type color: str + :param hates: + :type hates: list of :class:`Dog + ` + :param breed: + :type breed: str + """ + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + 'color': {'key': 'color', 'type': 'str'}, + 'hates': {'key': 'hates', 'type': '[Dog]'}, + 'breed': {'key': 'breed', 'type': 'str'}, + } + + def __init__(self, id=None, name=None, color=None, hates=None, breed=None): + super(Siamese, self).__init__(id=id, name=name, color=color, hates=hates) + self.breed = breed diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/string_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/string_wrapper.py index 86b4224db9..45635a245a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/string_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/string_wrapper.py @@ -1,35 +1,35 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StringWrapper(Model): - """StringWrapper. - - :param field: - :type field: str - :param empty: - :type empty: str - :param null: - :type null: str - """ - - _attribute_map = { - 'field': {'key': 'field', 'type': 'str'}, - 'empty': {'key': 'empty', 'type': 'str'}, - 'null': {'key': 'null', 'type': 'str'}, - } - - def __init__(self, field=None, empty=None, null=None): - self.field = field - self.empty = empty - self.null = null +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class StringWrapper(Model): + """StringWrapper. + + :param field: + :type field: str + :param empty: + :type empty: str + :param null: + :type null: str + """ + + _attribute_map = { + 'field': {'key': 'field', 'type': 'str'}, + 'empty': {'key': 'empty', 'type': 'str'}, + 'null': {'key': 'null', 'type': 'str'}, + } + + def __init__(self, field=None, empty=None, null=None): + self.field = field + self.empty = empty + self.null = null diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/__init__.py index 59d80ba97c..0f50d64a1f 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/__init__.py @@ -1,30 +1,30 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .basic_operations import BasicOperations -from .primitive_operations import PrimitiveOperations -from .array_operations import ArrayOperations -from .dictionary_operations import DictionaryOperations -from .inheritance_operations import InheritanceOperations -from .polymorphism_operations import PolymorphismOperations -from .polymorphicrecursive_operations import PolymorphicrecursiveOperations -from .readonlyproperty_operations import ReadonlypropertyOperations - -__all__ = [ - 'BasicOperations', - 'PrimitiveOperations', - 'ArrayOperations', - 'DictionaryOperations', - 'InheritanceOperations', - 'PolymorphismOperations', - 'PolymorphicrecursiveOperations', - 'ReadonlypropertyOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .basic_operations import BasicOperations +from .primitive_operations import PrimitiveOperations +from .array_operations import ArrayOperations +from .dictionary_operations import DictionaryOperations +from .inheritance_operations import InheritanceOperations +from .polymorphism_operations import PolymorphismOperations +from .polymorphicrecursive_operations import PolymorphicrecursiveOperations +from .readonlyproperty_operations import ReadonlypropertyOperations + +__all__ = [ + 'BasicOperations', + 'PrimitiveOperations', + 'ArrayOperations', + 'DictionaryOperations', + 'InheritanceOperations', + 'PolymorphismOperations', + 'PolymorphicrecursiveOperations', + 'ReadonlypropertyOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/array_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/array_operations.py index 54b0731ffa..d773b4470d 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/array_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/array_operations.py @@ -1,263 +1,263 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class ArrayOperations(object): - """ArrayOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_valid( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types with array property. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`ArrayWrapper - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/array/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ArrayWrapper', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_valid( - self, array=None, custom_headers=None, raw=False, **operation_config): - """Put complex types with array property. - - :param array: - :type array: list of str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - complex_body = models.ArrayWrapper(array=array) - - # Construct URL - url = '/complex/array/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'ArrayWrapper') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_empty( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types with array property which is empty. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`ArrayWrapper - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/array/empty' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ArrayWrapper', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_empty( - self, array=None, custom_headers=None, raw=False, **operation_config): - """Put complex types with array property which is empty. - - :param array: - :type array: list of str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - complex_body = models.ArrayWrapper(array=array) - - # Construct URL - url = '/complex/array/empty' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'ArrayWrapper') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_not_provided( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types with array property while server doesn't provide a - response payload. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`ArrayWrapper - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/array/notprovided' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ArrayWrapper', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class ArrayOperations(object): + """ArrayOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_valid( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types with array property. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`ArrayWrapper + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/array/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ArrayWrapper', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_valid( + self, array=None, custom_headers=None, raw=False, **operation_config): + """Put complex types with array property. + + :param array: + :type array: list of str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + complex_body = models.ArrayWrapper(array=array) + + # Construct URL + url = '/complex/array/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'ArrayWrapper') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_empty( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types with array property which is empty. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`ArrayWrapper + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/array/empty' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ArrayWrapper', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_empty( + self, array=None, custom_headers=None, raw=False, **operation_config): + """Put complex types with array property which is empty. + + :param array: + :type array: list of str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + complex_body = models.ArrayWrapper(array=array) + + # Construct URL + url = '/complex/array/empty' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'ArrayWrapper') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_not_provided( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types with array property while server doesn't provide a + response payload. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`ArrayWrapper + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/array/notprovided' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ArrayWrapper', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/basic_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/basic_operations.py index 0eb6f4b5bf..0c0c545b68 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/basic_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/basic_operations.py @@ -1,309 +1,309 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class BasicOperations(object): - """BasicOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_valid( - self, custom_headers=None, raw=False, **operation_config): - """Get complex type {id: 2, name: 'abc', color: 'YELLOW'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Basic - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/basic/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Basic', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_valid( - self, complex_body, custom_headers=None, raw=False, **operation_config): - """Please put {id: 2, name: 'abc', color: 'Magenta'}. - - :param complex_body: Please put {id: 2, name: 'abc', color: 'Magenta'} - :type complex_body: :class:`Basic - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/basic/valid' - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'Basic') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_invalid( - self, custom_headers=None, raw=False, **operation_config): - """Get a basic complex type that is invalid for the local strong type. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Basic - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/basic/invalid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Basic', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_empty( - self, custom_headers=None, raw=False, **operation_config): - """Get a basic complex type that is empty. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Basic - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/basic/empty' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Basic', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_null( - self, custom_headers=None, raw=False, **operation_config): - """Get a basic complex type whose properties are null. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Basic - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/basic/null' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Basic', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_not_provided( - self, custom_headers=None, raw=False, **operation_config): - """Get a basic complex type while the server doesn't provide a response - payload. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Basic - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/basic/notprovided' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Basic', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class BasicOperations(object): + """BasicOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_valid( + self, custom_headers=None, raw=False, **operation_config): + """Get complex type {id: 2, name: 'abc', color: 'YELLOW'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Basic + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/basic/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Basic', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_valid( + self, complex_body, custom_headers=None, raw=False, **operation_config): + """Please put {id: 2, name: 'abc', color: 'Magenta'}. + + :param complex_body: Please put {id: 2, name: 'abc', color: 'Magenta'} + :type complex_body: :class:`Basic + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/basic/valid' + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'Basic') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_invalid( + self, custom_headers=None, raw=False, **operation_config): + """Get a basic complex type that is invalid for the local strong type. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Basic + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/basic/invalid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Basic', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_empty( + self, custom_headers=None, raw=False, **operation_config): + """Get a basic complex type that is empty. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Basic + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/basic/empty' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Basic', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_null( + self, custom_headers=None, raw=False, **operation_config): + """Get a basic complex type whose properties are null. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Basic + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/basic/null' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Basic', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_not_provided( + self, custom_headers=None, raw=False, **operation_config): + """Get a basic complex type while the server doesn't provide a response + payload. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Basic + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/basic/notprovided' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Basic', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/inheritance_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/inheritance_operations.py index f82752a2ea..b20da6d93a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/inheritance_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/inheritance_operations.py @@ -1,126 +1,126 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class InheritanceOperations(object): - """InheritanceOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_valid( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types that extend others. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Siamese - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/inheritance/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Siamese', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_valid( - self, complex_body, custom_headers=None, raw=False, **operation_config): - """Put complex types that extend others. - - :param complex_body: Please put a siamese with id=2, name="Siameee", - color=green, breed=persion, which hates 2 dogs, the 1st one named - "Potato" with id=1 and food="tomato", and the 2nd one named "Tomato" - with id=-1 and food="french fries". - :type complex_body: :class:`Siamese - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/inheritance/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'Siamese') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class InheritanceOperations(object): + """InheritanceOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_valid( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types that extend others. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Siamese + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/inheritance/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Siamese', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_valid( + self, complex_body, custom_headers=None, raw=False, **operation_config): + """Put complex types that extend others. + + :param complex_body: Please put a siamese with id=2, name="Siameee", + color=green, breed=persion, which hates 2 dogs, the 1st one named + "Potato" with id=1 and food="tomato", and the 2nd one named "Tomato" + with id=-1 and food="french fries". + :type complex_body: :class:`Siamese + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/inheritance/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'Siamese') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/polymorphicrecursive_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/polymorphicrecursive_operations.py index 1611abdace..4c724a4ae0 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/polymorphicrecursive_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/polymorphicrecursive_operations.py @@ -1,175 +1,175 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class PolymorphicrecursiveOperations(object): - """PolymorphicrecursiveOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_valid( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types that are polymorphic and have recursive references. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Fish - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/polymorphicrecursive/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Fish', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_valid( - self, complex_body, custom_headers=None, raw=False, **operation_config): - """Put complex types that are polymorphic and have recursive references. - - :param complex_body: Please put a salmon that looks like this: - { - "fishtype": "salmon", - "species": "king", - "length": 1, - "age": 1, - "location": "alaska", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6, - "siblings": [ - { - "fishtype": "salmon", - "species": "coho", - "length": 2, - "age": 2, - "location": "atlantic", - "iswild": true, - "siblings": [ - { - "fishtype": "shark", - "species": "predator", - "length": 20, - "age": 6 - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - }, - { - "fishtype": "sawshark", - "species": "dangerous", - "length": 10, - "age": 105 - } - ] - } - :type complex_body: :class:`Fish - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/polymorphicrecursive/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'Fish') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class PolymorphicrecursiveOperations(object): + """PolymorphicrecursiveOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_valid( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types that are polymorphic and have recursive references. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Fish + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/polymorphicrecursive/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Fish', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_valid( + self, complex_body, custom_headers=None, raw=False, **operation_config): + """Put complex types that are polymorphic and have recursive references. + + :param complex_body: Please put a salmon that looks like this: + { + "fishtype": "salmon", + "species": "king", + "length": 1, + "age": 1, + "location": "alaska", + "iswild": true, + "siblings": [ + { + "fishtype": "shark", + "species": "predator", + "length": 20, + "age": 6, + "siblings": [ + { + "fishtype": "salmon", + "species": "coho", + "length": 2, + "age": 2, + "location": "atlantic", + "iswild": true, + "siblings": [ + { + "fishtype": "shark", + "species": "predator", + "length": 20, + "age": 6 + }, + { + "fishtype": "sawshark", + "species": "dangerous", + "length": 10, + "age": 105 + } + ] + }, + { + "fishtype": "sawshark", + "species": "dangerous", + "length": 10, + "age": 105 + } + ] + }, + { + "fishtype": "sawshark", + "species": "dangerous", + "length": 10, + "age": 105 + } + ] + } + :type complex_body: :class:`Fish + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/polymorphicrecursive/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'Fish') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/primitive_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/primitive_operations.py index 494f6e88d0..3f2e0c89f2 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/primitive_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/primitive_operations.py @@ -1,1038 +1,1038 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class PrimitiveOperations(object): - """PrimitiveOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_int( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types with integer properties. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`IntWrapper - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/integer' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('IntWrapper', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_int( - self, complex_body, custom_headers=None, raw=False, **operation_config): - """Put complex types with integer properties. - - :param complex_body: Please put -1 and 2 - :type complex_body: :class:`IntWrapper - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/integer' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'IntWrapper') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_long( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types with long properties. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`LongWrapper - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/long' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('LongWrapper', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_long( - self, complex_body, custom_headers=None, raw=False, **operation_config): - """Put complex types with long properties. - - :param complex_body: Please put 1099511627775 and -999511627788 - :type complex_body: :class:`LongWrapper - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/long' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'LongWrapper') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_float( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types with float properties. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`FloatWrapper - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/float' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('FloatWrapper', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_float( - self, complex_body, custom_headers=None, raw=False, **operation_config): - """Put complex types with float properties. - - :param complex_body: Please put 1.05 and -0.003 - :type complex_body: :class:`FloatWrapper - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/float' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'FloatWrapper') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_double( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types with double properties. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`DoubleWrapper - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/double' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('DoubleWrapper', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_double( - self, complex_body, custom_headers=None, raw=False, **operation_config): - """Put complex types with double properties. - - :param complex_body: Please put 3e-100 and - -0.000000000000000000000000000000000000000000000000000000005 - :type complex_body: :class:`DoubleWrapper - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/double' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'DoubleWrapper') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_bool( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types with bool properties. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`BooleanWrapper - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/bool' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('BooleanWrapper', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_bool( - self, complex_body, custom_headers=None, raw=False, **operation_config): - """Put complex types with bool properties. - - :param complex_body: Please put true and false - :type complex_body: :class:`BooleanWrapper - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/bool' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'BooleanWrapper') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_string( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types with string properties. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`StringWrapper - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/string' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('StringWrapper', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_string( - self, complex_body, custom_headers=None, raw=False, **operation_config): - """Put complex types with string properties. - - :param complex_body: Please put 'goodrequest', '', and null - :type complex_body: :class:`StringWrapper - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/string' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'StringWrapper') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_date( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types with date properties. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`DateWrapper - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/date' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('DateWrapper', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_date( - self, complex_body, custom_headers=None, raw=False, **operation_config): - """Put complex types with date properties. - - :param complex_body: Please put '0001-01-01' and '2016-02-29' - :type complex_body: :class:`DateWrapper - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/date' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'DateWrapper') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_date_time( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types with datetime properties. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`DatetimeWrapper - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/datetime' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('DatetimeWrapper', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_date_time( - self, complex_body, custom_headers=None, raw=False, **operation_config): - """Put complex types with datetime properties. - - :param complex_body: Please put '0001-01-01T12:00:00-04:00' and - '2015-05-18T11:38:00-08:00' - :type complex_body: :class:`DatetimeWrapper - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/datetime' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'DatetimeWrapper') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_date_time_rfc1123( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types with datetimeRfc1123 properties. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Datetimerfc1123Wrapper - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/datetimerfc1123' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Datetimerfc1123Wrapper', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_date_time_rfc1123( - self, complex_body, custom_headers=None, raw=False, **operation_config): - """Put complex types with datetimeRfc1123 properties. - - :param complex_body: Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and - 'Mon, 18 May 2015 11:38:00 GMT' - :type complex_body: :class:`Datetimerfc1123Wrapper - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/datetimerfc1123' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'Datetimerfc1123Wrapper') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_duration( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types with duration properties. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`DurationWrapper - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/duration' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('DurationWrapper', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_duration( - self, field=None, custom_headers=None, raw=False, **operation_config): - """Put complex types with duration properties. - - :param field: - :type field: timedelta - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - complex_body = models.DurationWrapper(field=field) - - # Construct URL - url = '/complex/primitive/duration' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'DurationWrapper') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_byte( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types with byte properties. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`ByteWrapper - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/primitive/byte' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ByteWrapper', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_byte( - self, field=None, custom_headers=None, raw=False, **operation_config): - """Put complex types with byte properties. - - :param field: - :type field: bytearray - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - complex_body = models.ByteWrapper(field=field) - - # Construct URL - url = '/complex/primitive/byte' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'ByteWrapper') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class PrimitiveOperations(object): + """PrimitiveOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_int( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types with integer properties. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`IntWrapper + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/integer' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('IntWrapper', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_int( + self, complex_body, custom_headers=None, raw=False, **operation_config): + """Put complex types with integer properties. + + :param complex_body: Please put -1 and 2 + :type complex_body: :class:`IntWrapper + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/integer' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'IntWrapper') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_long( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types with long properties. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`LongWrapper + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/long' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('LongWrapper', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_long( + self, complex_body, custom_headers=None, raw=False, **operation_config): + """Put complex types with long properties. + + :param complex_body: Please put 1099511627775 and -999511627788 + :type complex_body: :class:`LongWrapper + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/long' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'LongWrapper') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_float( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types with float properties. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`FloatWrapper + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/float' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('FloatWrapper', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_float( + self, complex_body, custom_headers=None, raw=False, **operation_config): + """Put complex types with float properties. + + :param complex_body: Please put 1.05 and -0.003 + :type complex_body: :class:`FloatWrapper + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/float' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'FloatWrapper') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_double( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types with double properties. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`DoubleWrapper + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/double' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('DoubleWrapper', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_double( + self, complex_body, custom_headers=None, raw=False, **operation_config): + """Put complex types with double properties. + + :param complex_body: Please put 3e-100 and + -0.000000000000000000000000000000000000000000000000000000005 + :type complex_body: :class:`DoubleWrapper + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/double' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'DoubleWrapper') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_bool( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types with bool properties. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`BooleanWrapper + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/bool' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('BooleanWrapper', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_bool( + self, complex_body, custom_headers=None, raw=False, **operation_config): + """Put complex types with bool properties. + + :param complex_body: Please put true and false + :type complex_body: :class:`BooleanWrapper + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/bool' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'BooleanWrapper') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_string( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types with string properties. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`StringWrapper + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/string' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('StringWrapper', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_string( + self, complex_body, custom_headers=None, raw=False, **operation_config): + """Put complex types with string properties. + + :param complex_body: Please put 'goodrequest', '', and null + :type complex_body: :class:`StringWrapper + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/string' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'StringWrapper') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_date( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types with date properties. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`DateWrapper + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/date' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('DateWrapper', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_date( + self, complex_body, custom_headers=None, raw=False, **operation_config): + """Put complex types with date properties. + + :param complex_body: Please put '0001-01-01' and '2016-02-29' + :type complex_body: :class:`DateWrapper + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/date' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'DateWrapper') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_date_time( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types with datetime properties. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`DatetimeWrapper + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/datetime' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('DatetimeWrapper', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_date_time( + self, complex_body, custom_headers=None, raw=False, **operation_config): + """Put complex types with datetime properties. + + :param complex_body: Please put '0001-01-01T12:00:00-04:00' and + '2015-05-18T11:38:00-08:00' + :type complex_body: :class:`DatetimeWrapper + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/datetime' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'DatetimeWrapper') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_date_time_rfc1123( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types with datetimeRfc1123 properties. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Datetimerfc1123Wrapper + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/datetimerfc1123' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Datetimerfc1123Wrapper', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_date_time_rfc1123( + self, complex_body, custom_headers=None, raw=False, **operation_config): + """Put complex types with datetimeRfc1123 properties. + + :param complex_body: Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and + 'Mon, 18 May 2015 11:38:00 GMT' + :type complex_body: :class:`Datetimerfc1123Wrapper + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/datetimerfc1123' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'Datetimerfc1123Wrapper') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_duration( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types with duration properties. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`DurationWrapper + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/duration' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('DurationWrapper', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_duration( + self, field=None, custom_headers=None, raw=False, **operation_config): + """Put complex types with duration properties. + + :param field: + :type field: timedelta + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + complex_body = models.DurationWrapper(field=field) + + # Construct URL + url = '/complex/primitive/duration' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'DurationWrapper') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_byte( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types with byte properties. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`ByteWrapper + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/primitive/byte' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ByteWrapper', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_byte( + self, field=None, custom_headers=None, raw=False, **operation_config): + """Put complex types with byte properties. + + :param field: + :type field: bytearray + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + complex_body = models.ByteWrapper(field=field) + + # Construct URL + url = '/complex/primitive/byte' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'ByteWrapper') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/readonlyproperty_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/readonlyproperty_operations.py index 5953649de7..d791773664 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/readonlyproperty_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/operations/readonlyproperty_operations.py @@ -1,124 +1,124 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class ReadonlypropertyOperations(object): - """ReadonlypropertyOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_valid( - self, custom_headers=None, raw=False, **operation_config): - """Get complex types that have readonly properties. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`ReadonlyObj - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/complex/readonlyproperty/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ReadonlyObj', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_valid( - self, size=None, custom_headers=None, raw=False, **operation_config): - """Put complex types that have readonly properties. - - :param size: - :type size: int - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - complex_body = models.ReadonlyObj(size=size) - - # Construct URL - url = '/complex/readonlyproperty/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(complex_body, 'ReadonlyObj') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class ReadonlypropertyOperations(object): + """ReadonlypropertyOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_valid( + self, custom_headers=None, raw=False, **operation_config): + """Get complex types that have readonly properties. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`ReadonlyObj + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/complex/readonlyproperty/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ReadonlyObj', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_valid( + self, size=None, custom_headers=None, raw=False, **operation_config): + """Put complex types that have readonly properties. + + :param size: + :type size: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + complex_body = models.ReadonlyObj(size=size) + + # Construct URL + url = '/complex/readonlyproperty/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(complex_body, 'ReadonlyObj') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/version.py index b0138fe050..cfa0e2e1bf 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "2016-02-29" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "2016-02-29" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/setup.py index 12b2b72047..65d0a41a65 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestcomplextestservice" -VERSION = "2016-02-29" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestComplexTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestComplexTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestcomplextestservice" +VERSION = "2016-02-29" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestComplexTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestComplexTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/__init__.py index 2c64130174..f8fdc22a65 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_date_test_service import AutoRestDateTestService -from .version import VERSION - -__all__ = ['AutoRestDateTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_date_test_service import AutoRestDateTestService +from .version import VERSION + +__all__ = ['AutoRestDateTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/auto_rest_date_test_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/auto_rest_date_test_service.py index fa0849ff65..8b665ea887 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/auto_rest_date_test_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/auto_rest_date_test_service.py @@ -1,63 +1,63 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.date_model_operations import DateModelOperations -from . import models - - -class AutoRestDateTestServiceConfiguration(Configuration): - """Configuration for AutoRestDateTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'https://localhost' - - super(AutoRestDateTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestdatetestservice/{}'.format(VERSION)) - - -class AutoRestDateTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestDateTestServiceConfiguration - - :ivar date_model: DateModel operations - :vartype date_model: .operations.DateModelOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestDateTestServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.date_model = DateModelOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.date_model_operations import DateModelOperations +from . import models + + +class AutoRestDateTestServiceConfiguration(Configuration): + """Configuration for AutoRestDateTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'https://localhost' + + super(AutoRestDateTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestdatetestservice/{}'.format(VERSION)) + + +class AutoRestDateTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestDateTestServiceConfiguration + + :ivar date_model: DateModel operations + :vartype date_model: .operations.DateModelOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestDateTestServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.date_model = DateModelOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/operations/__init__.py index 70cc25034d..6b50268fb8 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .date_model_operations import DateModelOperations - -__all__ = [ - 'DateModelOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .date_model_operations import DateModelOperations + +__all__ = [ + 'DateModelOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/operations/date_model_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/operations/date_model_operations.py index 19bdad2386..1de2170a45 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/operations/date_model_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/operations/date_model_operations.py @@ -1,390 +1,390 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class DateModelOperations(object): - """DateModelOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_null( - self, custom_headers=None, raw=False, **operation_config): - """Get null date value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: date - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/date/null' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('date', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_invalid_date( - self, custom_headers=None, raw=False, **operation_config): - """Get invalid date value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: date - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/date/invaliddate' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('date', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_overflow_date( - self, custom_headers=None, raw=False, **operation_config): - """Get overflow date value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: date - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/date/overflowdate' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('date', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_underflow_date( - self, custom_headers=None, raw=False, **operation_config): - """Get underflow date value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: date - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/date/underflowdate' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('date', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_max_date( - self, date_body, custom_headers=None, raw=False, **operation_config): - """Put max date value 9999-12-31. - - :param date_body: - :type date_body: date - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/date/max' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(date_body, 'date') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_max_date( - self, custom_headers=None, raw=False, **operation_config): - """Get max date value 9999-12-31. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: date - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/date/max' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('date', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_min_date( - self, date_body, custom_headers=None, raw=False, **operation_config): - """Put min date value 0000-01-01. - - :param date_body: - :type date_body: date - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/date/min' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(date_body, 'date') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_min_date( - self, custom_headers=None, raw=False, **operation_config): - """Get min date value 0000-01-01. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: date - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/date/min' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('date', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class DateModelOperations(object): + """DateModelOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_null( + self, custom_headers=None, raw=False, **operation_config): + """Get null date value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: date + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/date/null' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('date', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_invalid_date( + self, custom_headers=None, raw=False, **operation_config): + """Get invalid date value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: date + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/date/invaliddate' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('date', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_overflow_date( + self, custom_headers=None, raw=False, **operation_config): + """Get overflow date value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: date + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/date/overflowdate' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('date', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_underflow_date( + self, custom_headers=None, raw=False, **operation_config): + """Get underflow date value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: date + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/date/underflowdate' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('date', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_max_date( + self, date_body, custom_headers=None, raw=False, **operation_config): + """Put max date value 9999-12-31. + + :param date_body: + :type date_body: date + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/date/max' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(date_body, 'date') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_max_date( + self, custom_headers=None, raw=False, **operation_config): + """Get max date value 9999-12-31. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: date + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/date/max' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('date', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_min_date( + self, date_body, custom_headers=None, raw=False, **operation_config): + """Put min date value 0000-01-01. + + :param date_body: + :type date_body: date + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/date/min' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(date_body, 'date') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_min_date( + self, custom_headers=None, raw=False, **operation_config): + """Get min date value 0000-01-01. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: date + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/date/min' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('date', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/autorestdatetestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/setup.py index 521d598eaf..c70f0e8100 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDate/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestdatetestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestDateTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestDateTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestdatetestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestDateTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestDateTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/__init__.py index c6caa5184b..40d7df46c4 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_date_time_test_service import AutoRestDateTimeTestService -from .version import VERSION - -__all__ = ['AutoRestDateTimeTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_date_time_test_service import AutoRestDateTimeTestService +from .version import VERSION + +__all__ = ['AutoRestDateTimeTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/auto_rest_date_time_test_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/auto_rest_date_time_test_service.py index dff0dbb588..f51ab11b57 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/auto_rest_date_time_test_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/auto_rest_date_time_test_service.py @@ -1,63 +1,63 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.datetime_model_operations import DatetimeModelOperations -from . import models - - -class AutoRestDateTimeTestServiceConfiguration(Configuration): - """Configuration for AutoRestDateTimeTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'https://localhost' - - super(AutoRestDateTimeTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestdatetimetestservice/{}'.format(VERSION)) - - -class AutoRestDateTimeTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestDateTimeTestServiceConfiguration - - :ivar datetime_model: DatetimeModel operations - :vartype datetime_model: .operations.DatetimeModelOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestDateTimeTestServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.datetime_model = DatetimeModelOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.datetime_model_operations import DatetimeModelOperations +from . import models + + +class AutoRestDateTimeTestServiceConfiguration(Configuration): + """Configuration for AutoRestDateTimeTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'https://localhost' + + super(AutoRestDateTimeTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestdatetimetestservice/{}'.format(VERSION)) + + +class AutoRestDateTimeTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestDateTimeTestServiceConfiguration + + :ivar datetime_model: DatetimeModel operations + :vartype datetime_model: .operations.DatetimeModelOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestDateTimeTestServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.datetime_model = DatetimeModelOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/operations/__init__.py index 6138c1296f..dbd01c4329 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .datetime_model_operations import DatetimeModelOperations - -__all__ = [ - 'DatetimeModelOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .datetime_model_operations import DatetimeModelOperations + +__all__ = [ + 'DatetimeModelOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/operations/datetime_model_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/operations/datetime_model_operations.py index 7a934aab28..22a74fc45f 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/operations/datetime_model_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/operations/datetime_model_operations.py @@ -1,887 +1,887 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class DatetimeModelOperations(object): - """DatetimeModelOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_null( - self, custom_headers=None, raw=False, **operation_config): - """Get null datetime value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/null' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('iso-8601', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_invalid( - self, custom_headers=None, raw=False, **operation_config): - """Get invalid datetime value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/invalid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('iso-8601', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_overflow( - self, custom_headers=None, raw=False, **operation_config): - """Get overflow datetime value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/overflow' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('iso-8601', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_underflow( - self, custom_headers=None, raw=False, **operation_config): - """Get underflow datetime value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/underflow' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('iso-8601', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_utc_max_date_time( - self, datetime_body, custom_headers=None, raw=False, **operation_config): - """Put max datetime value 9999-12-31T23:59:59.9999999Z. - - :param datetime_body: - :type datetime_body: datetime - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/max/utc' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(datetime_body, 'iso-8601') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_utc_lowercase_max_date_time( - self, custom_headers=None, raw=False, **operation_config): - """Get max datetime value 9999-12-31t23:59:59.9999999z. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/max/utc/lowercase' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('iso-8601', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_utc_uppercase_max_date_time( - self, custom_headers=None, raw=False, **operation_config): - """Get max datetime value 9999-12-31T23:59:59.9999999Z. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/max/utc/uppercase' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('iso-8601', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_local_positive_offset_max_date_time( - self, datetime_body, custom_headers=None, raw=False, **operation_config): - """Put max datetime value with positive numoffset - 9999-12-31t23:59:59.9999999+14:00. - - :param datetime_body: - :type datetime_body: datetime - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/max/localpositiveoffset' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(datetime_body, 'iso-8601') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_local_positive_offset_lowercase_max_date_time( - self, custom_headers=None, raw=False, **operation_config): - """Get max datetime value with positive num offset - 9999-12-31t23:59:59.9999999+14:00. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/max/localpositiveoffset/lowercase' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('iso-8601', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_local_positive_offset_uppercase_max_date_time( - self, custom_headers=None, raw=False, **operation_config): - """Get max datetime value with positive num offset - 9999-12-31T23:59:59.9999999+14:00. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/max/localpositiveoffset/uppercase' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('iso-8601', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_local_negative_offset_max_date_time( - self, datetime_body, custom_headers=None, raw=False, **operation_config): - """Put max datetime value with positive numoffset - 9999-12-31t23:59:59.9999999-14:00. - - :param datetime_body: - :type datetime_body: datetime - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/max/localnegativeoffset' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(datetime_body, 'iso-8601') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_local_negative_offset_uppercase_max_date_time( - self, custom_headers=None, raw=False, **operation_config): - """Get max datetime value with positive num offset - 9999-12-31T23:59:59.9999999-14:00. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/max/localnegativeoffset/uppercase' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('iso-8601', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_local_negative_offset_lowercase_max_date_time( - self, custom_headers=None, raw=False, **operation_config): - """Get max datetime value with positive num offset - 9999-12-31t23:59:59.9999999-14:00. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/max/localnegativeoffset/lowercase' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('iso-8601', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_utc_min_date_time( - self, datetime_body, custom_headers=None, raw=False, **operation_config): - """Put min datetime value 0001-01-01T00:00:00Z. - - :param datetime_body: - :type datetime_body: datetime - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/min/utc' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(datetime_body, 'iso-8601') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_utc_min_date_time( - self, custom_headers=None, raw=False, **operation_config): - """Get min datetime value 0001-01-01T00:00:00Z. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/min/utc' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('iso-8601', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_local_positive_offset_min_date_time( - self, datetime_body, custom_headers=None, raw=False, **operation_config): - """Put min datetime value 0001-01-01T00:00:00+14:00. - - :param datetime_body: - :type datetime_body: datetime - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/min/localpositiveoffset' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(datetime_body, 'iso-8601') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_local_positive_offset_min_date_time( - self, custom_headers=None, raw=False, **operation_config): - """Get min datetime value 0001-01-01T00:00:00+14:00. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/min/localpositiveoffset' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('iso-8601', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_local_negative_offset_min_date_time( - self, datetime_body, custom_headers=None, raw=False, **operation_config): - """Put min datetime value 0001-01-01T00:00:00-14:00. - - :param datetime_body: - :type datetime_body: datetime - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/min/localnegativeoffset' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(datetime_body, 'iso-8601') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_local_negative_offset_min_date_time( - self, custom_headers=None, raw=False, **operation_config): - """Get min datetime value 0001-01-01T00:00:00-14:00. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetime/min/localnegativeoffset' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('iso-8601', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class DatetimeModelOperations(object): + """DatetimeModelOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_null( + self, custom_headers=None, raw=False, **operation_config): + """Get null datetime value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/null' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('iso-8601', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_invalid( + self, custom_headers=None, raw=False, **operation_config): + """Get invalid datetime value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/invalid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('iso-8601', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_overflow( + self, custom_headers=None, raw=False, **operation_config): + """Get overflow datetime value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/overflow' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('iso-8601', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_underflow( + self, custom_headers=None, raw=False, **operation_config): + """Get underflow datetime value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/underflow' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('iso-8601', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_utc_max_date_time( + self, datetime_body, custom_headers=None, raw=False, **operation_config): + """Put max datetime value 9999-12-31T23:59:59.9999999Z. + + :param datetime_body: + :type datetime_body: datetime + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/max/utc' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(datetime_body, 'iso-8601') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_utc_lowercase_max_date_time( + self, custom_headers=None, raw=False, **operation_config): + """Get max datetime value 9999-12-31t23:59:59.9999999z. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/max/utc/lowercase' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('iso-8601', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_utc_uppercase_max_date_time( + self, custom_headers=None, raw=False, **operation_config): + """Get max datetime value 9999-12-31T23:59:59.9999999Z. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/max/utc/uppercase' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('iso-8601', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_local_positive_offset_max_date_time( + self, datetime_body, custom_headers=None, raw=False, **operation_config): + """Put max datetime value with positive numoffset + 9999-12-31t23:59:59.9999999+14:00. + + :param datetime_body: + :type datetime_body: datetime + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/max/localpositiveoffset' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(datetime_body, 'iso-8601') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_local_positive_offset_lowercase_max_date_time( + self, custom_headers=None, raw=False, **operation_config): + """Get max datetime value with positive num offset + 9999-12-31t23:59:59.9999999+14:00. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/max/localpositiveoffset/lowercase' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('iso-8601', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_local_positive_offset_uppercase_max_date_time( + self, custom_headers=None, raw=False, **operation_config): + """Get max datetime value with positive num offset + 9999-12-31T23:59:59.9999999+14:00. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/max/localpositiveoffset/uppercase' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('iso-8601', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_local_negative_offset_max_date_time( + self, datetime_body, custom_headers=None, raw=False, **operation_config): + """Put max datetime value with positive numoffset + 9999-12-31t23:59:59.9999999-14:00. + + :param datetime_body: + :type datetime_body: datetime + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/max/localnegativeoffset' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(datetime_body, 'iso-8601') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_local_negative_offset_uppercase_max_date_time( + self, custom_headers=None, raw=False, **operation_config): + """Get max datetime value with positive num offset + 9999-12-31T23:59:59.9999999-14:00. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/max/localnegativeoffset/uppercase' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('iso-8601', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_local_negative_offset_lowercase_max_date_time( + self, custom_headers=None, raw=False, **operation_config): + """Get max datetime value with positive num offset + 9999-12-31t23:59:59.9999999-14:00. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/max/localnegativeoffset/lowercase' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('iso-8601', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_utc_min_date_time( + self, datetime_body, custom_headers=None, raw=False, **operation_config): + """Put min datetime value 0001-01-01T00:00:00Z. + + :param datetime_body: + :type datetime_body: datetime + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/min/utc' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(datetime_body, 'iso-8601') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_utc_min_date_time( + self, custom_headers=None, raw=False, **operation_config): + """Get min datetime value 0001-01-01T00:00:00Z. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/min/utc' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('iso-8601', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_local_positive_offset_min_date_time( + self, datetime_body, custom_headers=None, raw=False, **operation_config): + """Put min datetime value 0001-01-01T00:00:00+14:00. + + :param datetime_body: + :type datetime_body: datetime + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/min/localpositiveoffset' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(datetime_body, 'iso-8601') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_local_positive_offset_min_date_time( + self, custom_headers=None, raw=False, **operation_config): + """Get min datetime value 0001-01-01T00:00:00+14:00. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/min/localpositiveoffset' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('iso-8601', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_local_negative_offset_min_date_time( + self, datetime_body, custom_headers=None, raw=False, **operation_config): + """Put min datetime value 0001-01-01T00:00:00-14:00. + + :param datetime_body: + :type datetime_body: datetime + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/min/localnegativeoffset' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(datetime_body, 'iso-8601') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_local_negative_offset_min_date_time( + self, custom_headers=None, raw=False, **operation_config): + """Get min datetime value 0001-01-01T00:00:00-14:00. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetime/min/localnegativeoffset' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('iso-8601', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/autorestdatetimetestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/setup.py index 81a5e74839..ac383e8eb0 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTime/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestdatetimetestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestDateTimeTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestDateTimeTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestdatetimetestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestDateTimeTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestDateTimeTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/__init__.py index c847540614..85daa6afc2 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_rfc1123_date_time_test_service import AutoRestRFC1123DateTimeTestService -from .version import VERSION - -__all__ = ['AutoRestRFC1123DateTimeTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_rfc1123_date_time_test_service import AutoRestRFC1123DateTimeTestService +from .version import VERSION + +__all__ = ['AutoRestRFC1123DateTimeTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/auto_rest_rfc1123_date_time_test_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/auto_rest_rfc1123_date_time_test_service.py index 883083a1e3..b1f09a3c6a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/auto_rest_rfc1123_date_time_test_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/auto_rest_rfc1123_date_time_test_service.py @@ -1,63 +1,63 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.datetimerfc1123_operations import Datetimerfc1123Operations -from . import models - - -class AutoRestRFC1123DateTimeTestServiceConfiguration(Configuration): - """Configuration for AutoRestRFC1123DateTimeTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'https://localhost' - - super(AutoRestRFC1123DateTimeTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestrfc1123datetimetestservice/{}'.format(VERSION)) - - -class AutoRestRFC1123DateTimeTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestRFC1123DateTimeTestServiceConfiguration - - :ivar datetimerfc1123: Datetimerfc1123 operations - :vartype datetimerfc1123: .operations.Datetimerfc1123Operations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestRFC1123DateTimeTestServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.datetimerfc1123 = Datetimerfc1123Operations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.datetimerfc1123_operations import Datetimerfc1123Operations +from . import models + + +class AutoRestRFC1123DateTimeTestServiceConfiguration(Configuration): + """Configuration for AutoRestRFC1123DateTimeTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'https://localhost' + + super(AutoRestRFC1123DateTimeTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestrfc1123datetimetestservice/{}'.format(VERSION)) + + +class AutoRestRFC1123DateTimeTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestRFC1123DateTimeTestServiceConfiguration + + :ivar datetimerfc1123: Datetimerfc1123 operations + :vartype datetimerfc1123: .operations.Datetimerfc1123Operations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestRFC1123DateTimeTestServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.datetimerfc1123 = Datetimerfc1123Operations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/operations/__init__.py index b9264b0c33..eb83c424a1 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .datetimerfc1123_operations import Datetimerfc1123Operations - -__all__ = [ - 'Datetimerfc1123Operations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .datetimerfc1123_operations import Datetimerfc1123Operations + +__all__ = [ + 'Datetimerfc1123Operations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/operations/datetimerfc1123_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/operations/datetimerfc1123_operations.py index 7ca501ca68..7b9bfa4633 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/operations/datetimerfc1123_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/operations/datetimerfc1123_operations.py @@ -1,435 +1,435 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class Datetimerfc1123Operations(object): - """Datetimerfc1123Operations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_null( - self, custom_headers=None, raw=False, **operation_config): - """Get null datetime value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetimerfc1123/null' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('rfc-1123', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_invalid( - self, custom_headers=None, raw=False, **operation_config): - """Get invalid datetime value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetimerfc1123/invalid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('rfc-1123', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_overflow( - self, custom_headers=None, raw=False, **operation_config): - """Get overflow datetime value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetimerfc1123/overflow' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('rfc-1123', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_underflow( - self, custom_headers=None, raw=False, **operation_config): - """Get underflow datetime value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetimerfc1123/underflow' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('rfc-1123', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_utc_max_date_time( - self, datetime_body, custom_headers=None, raw=False, **operation_config): - """Put max datetime value Fri, 31 Dec 9999 23:59:59 GMT. - - :param datetime_body: - :type datetime_body: datetime - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetimerfc1123/max' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(datetime_body, 'rfc-1123') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_utc_lowercase_max_date_time( - self, custom_headers=None, raw=False, **operation_config): - """Get max datetime value fri, 31 dec 9999 23:59:59 gmt. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetimerfc1123/max/lowercase' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('rfc-1123', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_utc_uppercase_max_date_time( - self, custom_headers=None, raw=False, **operation_config): - """Get max datetime value FRI, 31 DEC 9999 23:59:59 GMT. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetimerfc1123/max/uppercase' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('rfc-1123', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_utc_min_date_time( - self, datetime_body, custom_headers=None, raw=False, **operation_config): - """Put min datetime value Mon, 1 Jan 0001 00:00:00 GMT. - - :param datetime_body: - :type datetime_body: datetime - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetimerfc1123/min' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(datetime_body, 'rfc-1123') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_utc_min_date_time( - self, custom_headers=None, raw=False, **operation_config): - """Get min datetime value Mon, 1 Jan 0001 00:00:00 GMT. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/datetimerfc1123/min' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('rfc-1123', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class Datetimerfc1123Operations(object): + """Datetimerfc1123Operations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_null( + self, custom_headers=None, raw=False, **operation_config): + """Get null datetime value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetimerfc1123/null' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('rfc-1123', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_invalid( + self, custom_headers=None, raw=False, **operation_config): + """Get invalid datetime value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetimerfc1123/invalid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('rfc-1123', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_overflow( + self, custom_headers=None, raw=False, **operation_config): + """Get overflow datetime value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetimerfc1123/overflow' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('rfc-1123', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_underflow( + self, custom_headers=None, raw=False, **operation_config): + """Get underflow datetime value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetimerfc1123/underflow' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('rfc-1123', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_utc_max_date_time( + self, datetime_body, custom_headers=None, raw=False, **operation_config): + """Put max datetime value Fri, 31 Dec 9999 23:59:59 GMT. + + :param datetime_body: + :type datetime_body: datetime + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetimerfc1123/max' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(datetime_body, 'rfc-1123') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_utc_lowercase_max_date_time( + self, custom_headers=None, raw=False, **operation_config): + """Get max datetime value fri, 31 dec 9999 23:59:59 gmt. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetimerfc1123/max/lowercase' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('rfc-1123', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_utc_uppercase_max_date_time( + self, custom_headers=None, raw=False, **operation_config): + """Get max datetime value FRI, 31 DEC 9999 23:59:59 GMT. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetimerfc1123/max/uppercase' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('rfc-1123', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_utc_min_date_time( + self, datetime_body, custom_headers=None, raw=False, **operation_config): + """Put min datetime value Mon, 1 Jan 0001 00:00:00 GMT. + + :param datetime_body: + :type datetime_body: datetime + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetimerfc1123/min' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(datetime_body, 'rfc-1123') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_utc_min_date_time( + self, custom_headers=None, raw=False, **operation_config): + """Get min datetime value Mon, 1 Jan 0001 00:00:00 GMT. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/datetimerfc1123/min' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('rfc-1123', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autorestrfc1123datetimetestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py index b79741534d..143969182a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestrfc1123datetimetestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestRFC1123DateTimeTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestRFC1123DateTimeTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestrfc1123datetimetestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestRFC1123DateTimeTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestRFC1123DateTimeTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/__init__.py index b4d07928d9..81ebb3c0c2 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_swagger_ba_tdictionary_service import AutoRestSwaggerBATdictionaryService -from .version import VERSION - -__all__ = ['AutoRestSwaggerBATdictionaryService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_swagger_ba_tdictionary_service import AutoRestSwaggerBATdictionaryService +from .version import VERSION + +__all__ = ['AutoRestSwaggerBATdictionaryService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/auto_rest_swagger_ba_tdictionary_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/auto_rest_swagger_ba_tdictionary_service.py index ed5f0381ca..26d72d6808 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/auto_rest_swagger_ba_tdictionary_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/auto_rest_swagger_ba_tdictionary_service.py @@ -1,63 +1,63 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.dictionary_operations import DictionaryOperations -from . import models - - -class AutoRestSwaggerBATdictionaryServiceConfiguration(Configuration): - """Configuration for AutoRestSwaggerBATdictionaryService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'http://localhost' - - super(AutoRestSwaggerBATdictionaryServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestswaggerbatdictionaryservice/{}'.format(VERSION)) - - -class AutoRestSwaggerBATdictionaryService(object): - """Test Infrastructure for AutoRest Swagger BAT - - :ivar config: Configuration for client. - :vartype config: AutoRestSwaggerBATdictionaryServiceConfiguration - - :ivar dictionary: Dictionary operations - :vartype dictionary: .operations.DictionaryOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestSwaggerBATdictionaryServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.dictionary = DictionaryOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.dictionary_operations import DictionaryOperations +from . import models + + +class AutoRestSwaggerBATdictionaryServiceConfiguration(Configuration): + """Configuration for AutoRestSwaggerBATdictionaryService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'http://localhost' + + super(AutoRestSwaggerBATdictionaryServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestswaggerbatdictionaryservice/{}'.format(VERSION)) + + +class AutoRestSwaggerBATdictionaryService(object): + """Test Infrastructure for AutoRest Swagger BAT + + :ivar config: Configuration for client. + :vartype config: AutoRestSwaggerBATdictionaryServiceConfiguration + + :ivar dictionary: Dictionary operations + :vartype dictionary: .operations.DictionaryOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestSwaggerBATdictionaryServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.dictionary = DictionaryOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/models/__init__.py index e024b360cc..0e7e9f1a75 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/models/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .widget import Widget -from .error import Error, ErrorException - -__all__ = [ - 'Widget', - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .widget import Widget +from .error import Error, ErrorException + +__all__ = [ + 'Widget', + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/models/widget.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/models/widget.py index 2b514eaa7e..f545b5d4b2 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/models/widget.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/models/widget.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Widget(Model): - """Widget. - - :param integer: - :type integer: int - :param string: - :type string: str - """ - - _attribute_map = { - 'integer': {'key': 'integer', 'type': 'int'}, - 'string': {'key': 'string', 'type': 'str'}, - } - - def __init__(self, integer=None, string=None): - self.integer = integer - self.string = string +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Widget(Model): + """Widget. + + :param integer: + :type integer: int + :param string: + :type string: str + """ + + _attribute_map = { + 'integer': {'key': 'integer', 'type': 'int'}, + 'string': {'key': 'string', 'type': 'str'}, + } + + def __init__(self, integer=None, string=None): + self.integer = integer + self.string = string diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/operations/__init__.py index 4c58576c59..40e35e3578 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .dictionary_operations import DictionaryOperations - -__all__ = [ - 'DictionaryOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .dictionary_operations import DictionaryOperations + +__all__ = [ + 'DictionaryOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/autorestswaggerbatdictionaryservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/setup.py index 35b2ab34a2..3326b76166 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDictionary/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestswaggerbatdictionaryservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestSwaggerBATdictionaryService", - author_email="", - url="", - keywords=["Swagger", "AutoRestSwaggerBATdictionaryService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest Swagger BAT - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestswaggerbatdictionaryservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestSwaggerBATdictionaryService", + author_email="", + url="", + keywords=["Swagger", "AutoRestSwaggerBATdictionaryService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest Swagger BAT + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/__init__.py index 952ddb1462..4ec26f5748 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_duration_test_service import AutoRestDurationTestService -from .version import VERSION - -__all__ = ['AutoRestDurationTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_duration_test_service import AutoRestDurationTestService +from .version import VERSION + +__all__ = ['AutoRestDurationTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/auto_rest_duration_test_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/auto_rest_duration_test_service.py index 8137b700a2..97941c29d7 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/auto_rest_duration_test_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/auto_rest_duration_test_service.py @@ -1,63 +1,63 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.duration_operations import DurationOperations -from . import models - - -class AutoRestDurationTestServiceConfiguration(Configuration): - """Configuration for AutoRestDurationTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'https://localhost' - - super(AutoRestDurationTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestdurationtestservice/{}'.format(VERSION)) - - -class AutoRestDurationTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestDurationTestServiceConfiguration - - :ivar duration: Duration operations - :vartype duration: .operations.DurationOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestDurationTestServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.duration = DurationOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.duration_operations import DurationOperations +from . import models + + +class AutoRestDurationTestServiceConfiguration(Configuration): + """Configuration for AutoRestDurationTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'https://localhost' + + super(AutoRestDurationTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestdurationtestservice/{}'.format(VERSION)) + + +class AutoRestDurationTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestDurationTestServiceConfiguration + + :ivar duration: Duration operations + :vartype duration: .operations.DurationOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestDurationTestServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.duration = DurationOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/operations/__init__.py index af16ab600c..227cc9327c 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .duration_operations import DurationOperations - -__all__ = [ - 'DurationOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .duration_operations import DurationOperations + +__all__ = [ + 'DurationOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/operations/duration_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/operations/duration_operations.py index 43c108c089..fe02526c57 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/operations/duration_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/operations/duration_operations.py @@ -1,211 +1,211 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class DurationOperations(object): - """DurationOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_null( - self, custom_headers=None, raw=False, **operation_config): - """Get null duration value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: timedelta - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/duration/null' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('duration', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_positive_duration( - self, duration_body, custom_headers=None, raw=False, **operation_config): - """Put a positive duration value. - - :param duration_body: - :type duration_body: timedelta - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/duration/positiveduration' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(duration_body, 'duration') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_positive_duration( - self, custom_headers=None, raw=False, **operation_config): - """Get a positive duration value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: timedelta - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/duration/positiveduration' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('duration', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_invalid( - self, custom_headers=None, raw=False, **operation_config): - """Get an invalid duration value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: timedelta - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/duration/invalid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('duration', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class DurationOperations(object): + """DurationOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_null( + self, custom_headers=None, raw=False, **operation_config): + """Get null duration value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: timedelta + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/duration/null' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('duration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_positive_duration( + self, duration_body, custom_headers=None, raw=False, **operation_config): + """Put a positive duration value. + + :param duration_body: + :type duration_body: timedelta + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/duration/positiveduration' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(duration_body, 'duration') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_positive_duration( + self, custom_headers=None, raw=False, **operation_config): + """Get a positive duration value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: timedelta + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/duration/positiveduration' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('duration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_invalid( + self, custom_headers=None, raw=False, **operation_config): + """Get an invalid duration value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: timedelta + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/duration/invalid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('duration', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/autorestdurationtestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/setup.py index 3bc6b4ad28..88bb6938d4 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyDuration/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestdurationtestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestDurationTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestDurationTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestdurationtestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestDurationTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestDurationTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/__init__.py index a38c4a6dd2..51dcc09c83 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_swagger_bat_file_service import AutoRestSwaggerBATFileService -from .version import VERSION - -__all__ = ['AutoRestSwaggerBATFileService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_swagger_bat_file_service import AutoRestSwaggerBATFileService +from .version import VERSION + +__all__ = ['AutoRestSwaggerBATFileService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/auto_rest_swagger_bat_file_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/auto_rest_swagger_bat_file_service.py index 9c03604647..2b3303f49e 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/auto_rest_swagger_bat_file_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/auto_rest_swagger_bat_file_service.py @@ -1,63 +1,63 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.files_operations import FilesOperations -from . import models - - -class AutoRestSwaggerBATFileServiceConfiguration(Configuration): - """Configuration for AutoRestSwaggerBATFileService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'http://localhost' - - super(AutoRestSwaggerBATFileServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestswaggerbatfileservice/{}'.format(VERSION)) - - -class AutoRestSwaggerBATFileService(object): - """Test Infrastructure for AutoRest Swagger BAT - - :ivar config: Configuration for client. - :vartype config: AutoRestSwaggerBATFileServiceConfiguration - - :ivar files: Files operations - :vartype files: .operations.FilesOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestSwaggerBATFileServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.files = FilesOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.files_operations import FilesOperations +from . import models + + +class AutoRestSwaggerBATFileServiceConfiguration(Configuration): + """Configuration for AutoRestSwaggerBATFileService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'http://localhost' + + super(AutoRestSwaggerBATFileServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestswaggerbatfileservice/{}'.format(VERSION)) + + +class AutoRestSwaggerBATFileService(object): + """Test Infrastructure for AutoRest Swagger BAT + + :ivar config: Configuration for client. + :vartype config: AutoRestSwaggerBATFileServiceConfiguration + + :ivar files: Files operations + :vartype files: .operations.FilesOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestSwaggerBATFileServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.files = FilesOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/operations/__init__.py index f2dbbf872d..42ee1bbd32 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .files_operations import FilesOperations - -__all__ = [ - 'FilesOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .files_operations import FilesOperations + +__all__ = [ + 'FilesOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/operations/files_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/operations/files_operations.py index 8a487d24ae..98f321d487 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/operations/files_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/operations/files_operations.py @@ -1,182 +1,182 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class FilesOperations(object): - """FilesOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_file( - self, custom_headers=None, raw=False, callback=None, **operation_config): - """Get file. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param callback: When specified, will be called with each chunk of - data that is streamed. The callback should take two arguments, the - bytes of the current chunk of data and the response object. If the - data is uploading, response will be None. - :type callback: Callable[Bytes, response=None] - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: Generator - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/files/stream/nonempty' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._client.stream_download(response, callback) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_file_large( - self, custom_headers=None, raw=False, callback=None, **operation_config): - """Get a large file. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param callback: When specified, will be called with each chunk of - data that is streamed. The callback should take two arguments, the - bytes of the current chunk of data and the response object. If the - data is uploading, response will be None. - :type callback: Callable[Bytes, response=None] - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: Generator - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/files/stream/verylarge' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._client.stream_download(response, callback) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_empty_file( - self, custom_headers=None, raw=False, callback=None, **operation_config): - """Get empty file. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param callback: When specified, will be called with each chunk of - data that is streamed. The callback should take two arguments, the - bytes of the current chunk of data and the response object. If the - data is uploading, response will be None. - :type callback: Callable[Bytes, response=None] - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: Generator - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/files/stream/empty' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._client.stream_download(response, callback) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class FilesOperations(object): + """FilesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_file( + self, custom_headers=None, raw=False, callback=None, **operation_config): + """Get file. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param callback: When specified, will be called with each chunk of + data that is streamed. The callback should take two arguments, the + bytes of the current chunk of data and the response object. If the + data is uploading, response will be None. + :type callback: Callable[Bytes, response=None] + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: Generator + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/files/stream/nonempty' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._client.stream_download(response, callback) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_file_large( + self, custom_headers=None, raw=False, callback=None, **operation_config): + """Get a large file. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param callback: When specified, will be called with each chunk of + data that is streamed. The callback should take two arguments, the + bytes of the current chunk of data and the response object. If the + data is uploading, response will be None. + :type callback: Callable[Bytes, response=None] + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: Generator + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/files/stream/verylarge' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._client.stream_download(response, callback) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_empty_file( + self, custom_headers=None, raw=False, callback=None, **operation_config): + """Get empty file. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param callback: When specified, will be called with each chunk of + data that is streamed. The callback should take two arguments, the + bytes of the current chunk of data and the response object. If the + data is uploading, response will be None. + :type callback: Callable[Bytes, response=None] + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: Generator + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/files/stream/empty' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._client.stream_download(response, callback) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/autorestswaggerbatfileservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/setup.py index af45e38df5..ff524cfed3 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFile/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestswaggerbatfileservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestSwaggerBATFileService", - author_email="", - url="", - keywords=["Swagger", "AutoRestSwaggerBATFileService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest Swagger BAT - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestswaggerbatfileservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestSwaggerBATFileService", + author_email="", + url="", + keywords=["Swagger", "AutoRestSwaggerBATFileService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest Swagger BAT + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/__init__.py index fe71aa00d4..3460a7aa1b 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_swagger_bat_form_data_service import AutoRestSwaggerBATFormDataService -from .version import VERSION - -__all__ = ['AutoRestSwaggerBATFormDataService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_swagger_bat_form_data_service import AutoRestSwaggerBATFormDataService +from .version import VERSION + +__all__ = ['AutoRestSwaggerBATFormDataService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/auto_rest_swagger_bat_form_data_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/auto_rest_swagger_bat_form_data_service.py index 3e443a2ec4..45ade7e198 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/auto_rest_swagger_bat_form_data_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/auto_rest_swagger_bat_form_data_service.py @@ -1,63 +1,63 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.formdata_operations import FormdataOperations -from . import models - - -class AutoRestSwaggerBATFormDataServiceConfiguration(Configuration): - """Configuration for AutoRestSwaggerBATFormDataService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'http://localhost' - - super(AutoRestSwaggerBATFormDataServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestswaggerbatformdataservice/{}'.format(VERSION)) - - -class AutoRestSwaggerBATFormDataService(object): - """Test Infrastructure for AutoRest Swagger BAT - - :ivar config: Configuration for client. - :vartype config: AutoRestSwaggerBATFormDataServiceConfiguration - - :ivar formdata: Formdata operations - :vartype formdata: .operations.FormdataOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestSwaggerBATFormDataServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.formdata = FormdataOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.formdata_operations import FormdataOperations +from . import models + + +class AutoRestSwaggerBATFormDataServiceConfiguration(Configuration): + """Configuration for AutoRestSwaggerBATFormDataService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'http://localhost' + + super(AutoRestSwaggerBATFormDataServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestswaggerbatformdataservice/{}'.format(VERSION)) + + +class AutoRestSwaggerBATFormDataService(object): + """Test Infrastructure for AutoRest Swagger BAT + + :ivar config: Configuration for client. + :vartype config: AutoRestSwaggerBATFormDataServiceConfiguration + + :ivar formdata: Formdata operations + :vartype formdata: .operations.FormdataOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestSwaggerBATFormDataServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.formdata = FormdataOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/operations/__init__.py index 55904546e7..e32476fee6 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .formdata_operations import FormdataOperations - -__all__ = [ - 'FormdataOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .formdata_operations import FormdataOperations + +__all__ = [ + 'FormdataOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/operations/formdata_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/operations/formdata_operations.py index a433a87031..f86df20ace 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/operations/formdata_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/operations/formdata_operations.py @@ -1,150 +1,150 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class FormdataOperations(object): - """FormdataOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def upload_file( - self, file_content, file_name, custom_headers=None, raw=False, callback=None, **operation_config): - """Upload file. - - :param file_content: File to upload. - :type file_content: Generator - :param file_name: File name to upload. Name has to be spelled exactly - as written here. - :type file_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param callback: When specified, will be called with each chunk of - data that is streamed. The callback should take two arguments, the - bytes of the current chunk of data and the response object. If the - data is uploading, response will be None. - :type callback: Callable[Bytes, response=None] - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: Generator - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/formdata/stream/uploadfile' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'multipart/form-data' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct form data - form_data_content = { - 'fileContent': file_content, - 'fileName': file_name, - } - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send_formdata( - request, header_parameters, form_data_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._client.stream_download(response, callback) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def upload_file_via_body( - self, file_content, custom_headers=None, raw=False, callback=None, **operation_config): - """Upload file. - - :param file_content: File to upload. - :type file_content: Generator - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param callback: When specified, will be called with each chunk of - data that is streamed. The callback should take two arguments, the - bytes of the current chunk of data and the response object. If the - data is uploading, response will be None. - :type callback: Callable[Bytes, response=None] - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: Generator - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/formdata/stream/uploadfile' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/octet-stream' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._client.stream_upload(file_content, callback) - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._client.stream_download(response, callback) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class FormdataOperations(object): + """FormdataOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def upload_file( + self, file_content, file_name, custom_headers=None, raw=False, callback=None, **operation_config): + """Upload file. + + :param file_content: File to upload. + :type file_content: Generator + :param file_name: File name to upload. Name has to be spelled exactly + as written here. + :type file_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param callback: When specified, will be called with each chunk of + data that is streamed. The callback should take two arguments, the + bytes of the current chunk of data and the response object. If the + data is uploading, response will be None. + :type callback: Callable[Bytes, response=None] + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: Generator + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/formdata/stream/uploadfile' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'multipart/form-data' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct form data + form_data_content = { + 'fileContent': file_content, + 'fileName': file_name, + } + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send_formdata( + request, header_parameters, form_data_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._client.stream_download(response, callback) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def upload_file_via_body( + self, file_content, custom_headers=None, raw=False, callback=None, **operation_config): + """Upload file. + + :param file_content: File to upload. + :type file_content: Generator + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param callback: When specified, will be called with each chunk of + data that is streamed. The callback should take two arguments, the + bytes of the current chunk of data and the response object. If the + data is uploading, response will be None. + :type callback: Callable[Bytes, response=None] + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: Generator + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/formdata/stream/uploadfile' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/octet-stream' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._client.stream_upload(file_content, callback) + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._client.stream_download(response, callback) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/autorestswaggerbatformdataservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/setup.py index a3fde071ff..f71daa3028 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyFormData/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestswaggerbatformdataservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestSwaggerBATFormDataService", - author_email="", - url="", - keywords=["Swagger", "AutoRestSwaggerBATFormDataService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest Swagger BAT - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestswaggerbatformdataservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestSwaggerBATFormDataService", + author_email="", + url="", + keywords=["Swagger", "AutoRestSwaggerBATFormDataService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest Swagger BAT + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/__init__.py index 05dddedd1c..ee85c655bd 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_integer_test_service import AutoRestIntegerTestService -from .version import VERSION - -__all__ = ['AutoRestIntegerTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_integer_test_service import AutoRestIntegerTestService +from .version import VERSION + +__all__ = ['AutoRestIntegerTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/auto_rest_integer_test_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/auto_rest_integer_test_service.py index 8322c18af3..37f074098b 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/auto_rest_integer_test_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/auto_rest_integer_test_service.py @@ -1,63 +1,63 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.int_model_operations import IntModelOperations -from . import models - - -class AutoRestIntegerTestServiceConfiguration(Configuration): - """Configuration for AutoRestIntegerTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'http://localhost' - - super(AutoRestIntegerTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestintegertestservice/{}'.format(VERSION)) - - -class AutoRestIntegerTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestIntegerTestServiceConfiguration - - :ivar int_model: IntModel operations - :vartype int_model: .operations.IntModelOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestIntegerTestServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.int_model = IntModelOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.int_model_operations import IntModelOperations +from . import models + + +class AutoRestIntegerTestServiceConfiguration(Configuration): + """Configuration for AutoRestIntegerTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'http://localhost' + + super(AutoRestIntegerTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestintegertestservice/{}'.format(VERSION)) + + +class AutoRestIntegerTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestIntegerTestServiceConfiguration + + :ivar int_model: IntModel operations + :vartype int_model: .operations.IntModelOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestIntegerTestServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.int_model = IntModelOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/operations/__init__.py index aed1c24824..2053c0e8bf 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .int_model_operations import IntModelOperations - -__all__ = [ - 'IntModelOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .int_model_operations import IntModelOperations + +__all__ = [ + 'IntModelOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/operations/int_model_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/operations/int_model_operations.py index 7692818aa0..23b113bc56 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/operations/int_model_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/operations/int_model_operations.py @@ -1,657 +1,657 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class IntModelOperations(object): - """IntModelOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_null( - self, custom_headers=None, raw=False, **operation_config): - """Get null Int value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: int - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/int/null' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('int', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_invalid( - self, custom_headers=None, raw=False, **operation_config): - """Get invalid Int value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: int - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/int/invalid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('int', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_overflow_int32( - self, custom_headers=None, raw=False, **operation_config): - """Get overflow Int32 value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: int - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/int/overflowint32' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('int', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_underflow_int32( - self, custom_headers=None, raw=False, **operation_config): - """Get underflow Int32 value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: int - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/int/underflowint32' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('int', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_overflow_int64( - self, custom_headers=None, raw=False, **operation_config): - """Get overflow Int64 value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: long - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/int/overflowint64' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('long', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_underflow_int64( - self, custom_headers=None, raw=False, **operation_config): - """Get underflow Int64 value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: long - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/int/underflowint64' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('long', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_max32( - self, int_body, custom_headers=None, raw=False, **operation_config): - """Put max int32 value. - - :param int_body: - :type int_body: int - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/int/max/32' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(int_body, 'int') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def put_max64( - self, int_body, custom_headers=None, raw=False, **operation_config): - """Put max int64 value. - - :param int_body: - :type int_body: long - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/int/max/64' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(int_body, 'long') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def put_min32( - self, int_body, custom_headers=None, raw=False, **operation_config): - """Put min int32 value. - - :param int_body: - :type int_body: int - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/int/min/32' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(int_body, 'int') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def put_min64( - self, int_body, custom_headers=None, raw=False, **operation_config): - """Put min int64 value. - - :param int_body: - :type int_body: long - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/int/min/64' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(int_body, 'long') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_unix_time( - self, custom_headers=None, raw=False, **operation_config): - """Get datetime encoded as Unix time value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/int/unixtime' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('unix-time', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_unix_time_date( - self, int_body, custom_headers=None, raw=False, **operation_config): - """Put datetime encoded as Unix time. - - :param int_body: - :type int_body: datetime - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/int/unixtime' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(int_body, 'unix-time') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_invalid_unix_time( - self, custom_headers=None, raw=False, **operation_config): - """Get invalid Unix time value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/int/invalidunixtime' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('unix-time', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_null_unix_time( - self, custom_headers=None, raw=False, **operation_config): - """Get null Unix time value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: datetime - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/int/nullunixtime' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('unix-time', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class IntModelOperations(object): + """IntModelOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_null( + self, custom_headers=None, raw=False, **operation_config): + """Get null Int value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: int + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/int/null' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('int', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_invalid( + self, custom_headers=None, raw=False, **operation_config): + """Get invalid Int value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: int + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/int/invalid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('int', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_overflow_int32( + self, custom_headers=None, raw=False, **operation_config): + """Get overflow Int32 value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: int + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/int/overflowint32' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('int', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_underflow_int32( + self, custom_headers=None, raw=False, **operation_config): + """Get underflow Int32 value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: int + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/int/underflowint32' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('int', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_overflow_int64( + self, custom_headers=None, raw=False, **operation_config): + """Get overflow Int64 value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: long + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/int/overflowint64' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('long', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_underflow_int64( + self, custom_headers=None, raw=False, **operation_config): + """Get underflow Int64 value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: long + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/int/underflowint64' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('long', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_max32( + self, int_body, custom_headers=None, raw=False, **operation_config): + """Put max int32 value. + + :param int_body: + :type int_body: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/int/max/32' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(int_body, 'int') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def put_max64( + self, int_body, custom_headers=None, raw=False, **operation_config): + """Put max int64 value. + + :param int_body: + :type int_body: long + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/int/max/64' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(int_body, 'long') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def put_min32( + self, int_body, custom_headers=None, raw=False, **operation_config): + """Put min int32 value. + + :param int_body: + :type int_body: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/int/min/32' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(int_body, 'int') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def put_min64( + self, int_body, custom_headers=None, raw=False, **operation_config): + """Put min int64 value. + + :param int_body: + :type int_body: long + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/int/min/64' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(int_body, 'long') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_unix_time( + self, custom_headers=None, raw=False, **operation_config): + """Get datetime encoded as Unix time value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/int/unixtime' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('unix-time', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_unix_time_date( + self, int_body, custom_headers=None, raw=False, **operation_config): + """Put datetime encoded as Unix time. + + :param int_body: + :type int_body: datetime + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/int/unixtime' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(int_body, 'unix-time') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_invalid_unix_time( + self, custom_headers=None, raw=False, **operation_config): + """Get invalid Unix time value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/int/invalidunixtime' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('unix-time', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_null_unix_time( + self, custom_headers=None, raw=False, **operation_config): + """Get null Unix time value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: datetime + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/int/nullunixtime' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('unix-time', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/autorestintegertestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/setup.py index a2de2f65d9..c203877495 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyInteger/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestintegertestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestIntegerTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestIntegerTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestintegertestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestIntegerTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestIntegerTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/__init__.py index 88c70ad526..b43669b429 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_number_test_service import AutoRestNumberTestService -from .version import VERSION - -__all__ = ['AutoRestNumberTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_number_test_service import AutoRestNumberTestService +from .version import VERSION + +__all__ = ['AutoRestNumberTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/auto_rest_number_test_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/auto_rest_number_test_service.py index 85e1b4b4e7..568e5193e5 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/auto_rest_number_test_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/auto_rest_number_test_service.py @@ -1,63 +1,63 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.number_operations import NumberOperations -from . import models - - -class AutoRestNumberTestServiceConfiguration(Configuration): - """Configuration for AutoRestNumberTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'https://localhost' - - super(AutoRestNumberTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestnumbertestservice/{}'.format(VERSION)) - - -class AutoRestNumberTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestNumberTestServiceConfiguration - - :ivar number: Number operations - :vartype number: .operations.NumberOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestNumberTestServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.number = NumberOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.number_operations import NumberOperations +from . import models + + +class AutoRestNumberTestServiceConfiguration(Configuration): + """Configuration for AutoRestNumberTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'https://localhost' + + super(AutoRestNumberTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestnumbertestservice/{}'.format(VERSION)) + + +class AutoRestNumberTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestNumberTestServiceConfiguration + + :ivar number: Number operations + :vartype number: .operations.NumberOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestNumberTestServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.number = NumberOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/operations/__init__.py index fbe8021c85..a0b4f39621 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .number_operations import NumberOperations - -__all__ = [ - 'NumberOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .number_operations import NumberOperations + +__all__ = [ + 'NumberOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/operations/number_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/operations/number_operations.py index 190fe3a21a..a75f81fe2f 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/operations/number_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/operations/number_operations.py @@ -1,1102 +1,1102 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class NumberOperations(object): - """NumberOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_null( - self, custom_headers=None, raw=False, **operation_config): - """Get null Number value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: float - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/null' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('float', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_invalid_float( - self, custom_headers=None, raw=False, **operation_config): - """Get invalid float Number value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: float - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/invalidfloat' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('float', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_invalid_double( - self, custom_headers=None, raw=False, **operation_config): - """Get invalid double Number value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: float - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/invaliddouble' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('float', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_invalid_decimal( - self, custom_headers=None, raw=False, **operation_config): - """Get invalid decimal Number value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: Decimal - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/invaliddecimal' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('decimal', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_big_float( - self, number_body, custom_headers=None, raw=False, **operation_config): - """Put big float value 3.402823e+20. - - :param number_body: - :type number_body: float - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/big/float/3.402823e+20' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(number_body, 'float') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_big_float( - self, custom_headers=None, raw=False, **operation_config): - """Get big float value 3.402823e+20. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: float - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/big/float/3.402823e+20' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('float', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_big_double( - self, number_body, custom_headers=None, raw=False, **operation_config): - """Put big double value 2.5976931e+101. - - :param number_body: - :type number_body: float - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/big/double/2.5976931e+101' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(number_body, 'float') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_big_double( - self, custom_headers=None, raw=False, **operation_config): - """Get big double value 2.5976931e+101. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: float - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/big/double/2.5976931e+101' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('float', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_big_double_positive_decimal( - self, number_body, custom_headers=None, raw=False, **operation_config): - """Put big double value 99999999.99. - - :param number_body: - :type number_body: float - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/big/double/99999999.99' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(number_body, 'float') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_big_double_positive_decimal( - self, custom_headers=None, raw=False, **operation_config): - """Get big double value 99999999.99. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: float - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/big/double/99999999.99' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('float', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_big_double_negative_decimal( - self, number_body, custom_headers=None, raw=False, **operation_config): - """Put big double value -99999999.99. - - :param number_body: - :type number_body: float - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/big/double/-99999999.99' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(number_body, 'float') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_big_double_negative_decimal( - self, custom_headers=None, raw=False, **operation_config): - """Get big double value -99999999.99. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: float - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/big/double/-99999999.99' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('float', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_big_decimal( - self, number_body, custom_headers=None, raw=False, **operation_config): - """Put big decimal value 2.5976931e+101. - - :param number_body: - :type number_body: Decimal - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/big/decimal/2.5976931e+101' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(number_body, 'decimal') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_big_decimal( - self, custom_headers=None, raw=False, **operation_config): - """Get big decimal value 2.5976931e+101. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: Decimal - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/big/decimal/2.5976931e+101' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('decimal', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_big_decimal_positive_decimal( - self, number_body, custom_headers=None, raw=False, **operation_config): - """Put big decimal value 99999999.99. - - :param number_body: - :type number_body: Decimal - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/big/decimal/99999999.99' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(number_body, 'decimal') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_big_decimal_positive_decimal( - self, custom_headers=None, raw=False, **operation_config): - """Get big decimal value 99999999.99. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: Decimal - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/big/decimal/99999999.99' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('decimal', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_big_decimal_negative_decimal( - self, number_body, custom_headers=None, raw=False, **operation_config): - """Put big decimal value -99999999.99. - - :param number_body: - :type number_body: Decimal - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/big/decimal/-99999999.99' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(number_body, 'decimal') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_big_decimal_negative_decimal( - self, custom_headers=None, raw=False, **operation_config): - """Get big decimal value -99999999.99. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: Decimal - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/big/decimal/-99999999.99' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('decimal', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_small_float( - self, number_body, custom_headers=None, raw=False, **operation_config): - """Put small float value 3.402823e-20. - - :param number_body: - :type number_body: float - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/small/float/3.402823e-20' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(number_body, 'float') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_small_float( - self, custom_headers=None, raw=False, **operation_config): - """Get big double value 3.402823e-20. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: float - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/small/float/3.402823e-20' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('float', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_small_double( - self, number_body, custom_headers=None, raw=False, **operation_config): - """Put small double value 2.5976931e-101. - - :param number_body: - :type number_body: float - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/small/double/2.5976931e-101' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(number_body, 'float') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_small_double( - self, custom_headers=None, raw=False, **operation_config): - """Get big double value 2.5976931e-101. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: float - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/small/double/2.5976931e-101' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('float', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put_small_decimal( - self, number_body, custom_headers=None, raw=False, **operation_config): - """Put small decimal value 2.5976931e-101. - - :param number_body: - :type number_body: Decimal - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/small/decimal/2.5976931e-101' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(number_body, 'decimal') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_small_decimal( - self, custom_headers=None, raw=False, **operation_config): - """Get small decimal value 2.5976931e-101. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: Decimal - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/number/small/decimal/2.5976931e-101' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('decimal', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class NumberOperations(object): + """NumberOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_null( + self, custom_headers=None, raw=False, **operation_config): + """Get null Number value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: float + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/null' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('float', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_invalid_float( + self, custom_headers=None, raw=False, **operation_config): + """Get invalid float Number value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: float + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/invalidfloat' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('float', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_invalid_double( + self, custom_headers=None, raw=False, **operation_config): + """Get invalid double Number value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: float + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/invaliddouble' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('float', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_invalid_decimal( + self, custom_headers=None, raw=False, **operation_config): + """Get invalid decimal Number value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: Decimal + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/invaliddecimal' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('decimal', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_big_float( + self, number_body, custom_headers=None, raw=False, **operation_config): + """Put big float value 3.402823e+20. + + :param number_body: + :type number_body: float + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/big/float/3.402823e+20' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(number_body, 'float') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_big_float( + self, custom_headers=None, raw=False, **operation_config): + """Get big float value 3.402823e+20. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: float + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/big/float/3.402823e+20' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('float', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_big_double( + self, number_body, custom_headers=None, raw=False, **operation_config): + """Put big double value 2.5976931e+101. + + :param number_body: + :type number_body: float + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/big/double/2.5976931e+101' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(number_body, 'float') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_big_double( + self, custom_headers=None, raw=False, **operation_config): + """Get big double value 2.5976931e+101. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: float + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/big/double/2.5976931e+101' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('float', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_big_double_positive_decimal( + self, number_body, custom_headers=None, raw=False, **operation_config): + """Put big double value 99999999.99. + + :param number_body: + :type number_body: float + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/big/double/99999999.99' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(number_body, 'float') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_big_double_positive_decimal( + self, custom_headers=None, raw=False, **operation_config): + """Get big double value 99999999.99. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: float + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/big/double/99999999.99' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('float', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_big_double_negative_decimal( + self, number_body, custom_headers=None, raw=False, **operation_config): + """Put big double value -99999999.99. + + :param number_body: + :type number_body: float + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/big/double/-99999999.99' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(number_body, 'float') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_big_double_negative_decimal( + self, custom_headers=None, raw=False, **operation_config): + """Get big double value -99999999.99. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: float + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/big/double/-99999999.99' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('float', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_big_decimal( + self, number_body, custom_headers=None, raw=False, **operation_config): + """Put big decimal value 2.5976931e+101. + + :param number_body: + :type number_body: Decimal + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/big/decimal/2.5976931e+101' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(number_body, 'decimal') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_big_decimal( + self, custom_headers=None, raw=False, **operation_config): + """Get big decimal value 2.5976931e+101. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: Decimal + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/big/decimal/2.5976931e+101' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('decimal', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_big_decimal_positive_decimal( + self, number_body, custom_headers=None, raw=False, **operation_config): + """Put big decimal value 99999999.99. + + :param number_body: + :type number_body: Decimal + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/big/decimal/99999999.99' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(number_body, 'decimal') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_big_decimal_positive_decimal( + self, custom_headers=None, raw=False, **operation_config): + """Get big decimal value 99999999.99. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: Decimal + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/big/decimal/99999999.99' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('decimal', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_big_decimal_negative_decimal( + self, number_body, custom_headers=None, raw=False, **operation_config): + """Put big decimal value -99999999.99. + + :param number_body: + :type number_body: Decimal + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/big/decimal/-99999999.99' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(number_body, 'decimal') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_big_decimal_negative_decimal( + self, custom_headers=None, raw=False, **operation_config): + """Get big decimal value -99999999.99. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: Decimal + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/big/decimal/-99999999.99' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('decimal', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_small_float( + self, number_body, custom_headers=None, raw=False, **operation_config): + """Put small float value 3.402823e-20. + + :param number_body: + :type number_body: float + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/small/float/3.402823e-20' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(number_body, 'float') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_small_float( + self, custom_headers=None, raw=False, **operation_config): + """Get big double value 3.402823e-20. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: float + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/small/float/3.402823e-20' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('float', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_small_double( + self, number_body, custom_headers=None, raw=False, **operation_config): + """Put small double value 2.5976931e-101. + + :param number_body: + :type number_body: float + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/small/double/2.5976931e-101' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(number_body, 'float') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_small_double( + self, custom_headers=None, raw=False, **operation_config): + """Get big double value 2.5976931e-101. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: float + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/small/double/2.5976931e-101' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('float', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put_small_decimal( + self, number_body, custom_headers=None, raw=False, **operation_config): + """Put small decimal value 2.5976931e-101. + + :param number_body: + :type number_body: Decimal + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/small/decimal/2.5976931e-101' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(number_body, 'decimal') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_small_decimal( + self, custom_headers=None, raw=False, **operation_config): + """Get small decimal value 2.5976931e-101. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: Decimal + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/number/small/decimal/2.5976931e-101' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('decimal', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/autorestnumbertestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/setup.py index e44ff8673a..7495879ab1 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyNumber/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestnumbertestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestNumberTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestNumberTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestnumbertestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestNumberTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestNumberTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/__init__.py index f169250cd0..e9981a1677 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_swagger_bat_service import AutoRestSwaggerBATService -from .version import VERSION - -__all__ = ['AutoRestSwaggerBATService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_swagger_bat_service import AutoRestSwaggerBATService +from .version import VERSION + +__all__ = ['AutoRestSwaggerBATService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/auto_rest_swagger_bat_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/auto_rest_swagger_bat_service.py index 597cfc8b02..4508283da3 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/auto_rest_swagger_bat_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/auto_rest_swagger_bat_service.py @@ -1,68 +1,68 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.string_operations import StringOperations -from .operations.enum_operations import EnumOperations -from . import models - - -class AutoRestSwaggerBATServiceConfiguration(Configuration): - """Configuration for AutoRestSwaggerBATService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'http://localhost' - - super(AutoRestSwaggerBATServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestswaggerbatservice/{}'.format(VERSION)) - - -class AutoRestSwaggerBATService(object): - """Test Infrastructure for AutoRest Swagger BAT - - :ivar config: Configuration for client. - :vartype config: AutoRestSwaggerBATServiceConfiguration - - :ivar string: String operations - :vartype string: .operations.StringOperations - :ivar enum: Enum operations - :vartype enum: .operations.EnumOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestSwaggerBATServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.string = StringOperations( - self._client, self.config, self._serialize, self._deserialize) - self.enum = EnumOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.string_operations import StringOperations +from .operations.enum_operations import EnumOperations +from . import models + + +class AutoRestSwaggerBATServiceConfiguration(Configuration): + """Configuration for AutoRestSwaggerBATService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'http://localhost' + + super(AutoRestSwaggerBATServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestswaggerbatservice/{}'.format(VERSION)) + + +class AutoRestSwaggerBATService(object): + """Test Infrastructure for AutoRest Swagger BAT + + :ivar config: Configuration for client. + :vartype config: AutoRestSwaggerBATServiceConfiguration + + :ivar string: String operations + :vartype string: .operations.StringOperations + :ivar enum: Enum operations + :vartype enum: .operations.EnumOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestSwaggerBATServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.string = StringOperations( + self._client, self.config, self._serialize, self._deserialize) + self.enum = EnumOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/__init__.py index f024bd0ecf..e98fbe0824 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/__init__.py @@ -1,22 +1,22 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException -from .ref_color_constant import RefColorConstant -from .auto_rest_swagger_bat_service_enums import ( - Colors, -) - -__all__ = [ - 'Error', 'ErrorException', - 'RefColorConstant', - 'Colors', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException +from .ref_color_constant import RefColorConstant +from .auto_rest_swagger_bat_service_enums import ( + Colors, +) + +__all__ = [ + 'Error', 'ErrorException', + 'RefColorConstant', + 'Colors', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/auto_rest_swagger_bat_service_enums.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/auto_rest_swagger_bat_service_enums.py index cf88803b92..3355b44c74 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/auto_rest_swagger_bat_service_enums.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/auto_rest_swagger_bat_service_enums.py @@ -1,19 +1,19 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum - - -class Colors(Enum): - - redcolor = "red color" - green_color = "green-color" - blue_color = "blue_color" +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum + + +class Colors(Enum): + + redcolor = "red color" + green_color = "green-color" + blue_color = "blue_color" diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/ref_color_constant.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/ref_color_constant.py index 5354d4f912..73d6a2e86f 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/ref_color_constant.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/models/ref_color_constant.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RefColorConstant(Model): - """RefColorConstant. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar color_constant: Referenced Color Constant Description. Default - value: "green-color" . - :vartype color_constant: str - :param field1: Sample string. - :type field1: str - """ - - _validation = { - 'color_constant': {'required': True, 'constant': True}, - } - - _attribute_map = { - 'color_constant': {'key': 'ColorConstant', 'type': 'str'}, - 'field1': {'key': 'field1', 'type': 'str'}, - } - - color_constant = "green-color" - - def __init__(self, field1=None): - self.field1 = field1 +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RefColorConstant(Model): + """RefColorConstant. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar color_constant: Referenced Color Constant Description. Default + value: "green-color" . + :vartype color_constant: str + :param field1: Sample string. + :type field1: str + """ + + _validation = { + 'color_constant': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'color_constant': {'key': 'ColorConstant', 'type': 'str'}, + 'field1': {'key': 'field1', 'type': 'str'}, + } + + color_constant = "green-color" + + def __init__(self, field1=None): + self.field1 = field1 diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/operations/__init__.py index a8fcc05473..af10897559 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/operations/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .string_operations import StringOperations -from .enum_operations import EnumOperations - -__all__ = [ - 'StringOperations', - 'EnumOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .string_operations import StringOperations +from .enum_operations import EnumOperations + +__all__ = [ + 'StringOperations', + 'EnumOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/autorestswaggerbatservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/setup.py index d68cf869f6..26c1dc8c83 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyString/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestswaggerbatservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestSwaggerBATService", - author_email="", - url="", - keywords=["Swagger", "AutoRestSwaggerBATService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest Swagger BAT - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestswaggerbatservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestSwaggerBATService", + author_email="", + url="", + keywords=["Swagger", "AutoRestSwaggerBATService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest Swagger BAT + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/__init__.py index 103d881713..55019b8878 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_parameterized_host_test_client import AutoRestParameterizedHostTestClient -from .version import VERSION - -__all__ = ['AutoRestParameterizedHostTestClient'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_parameterized_host_test_client import AutoRestParameterizedHostTestClient +from .version import VERSION + +__all__ = ['AutoRestParameterizedHostTestClient'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/auto_rest_parameterized_host_test_client.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/auto_rest_parameterized_host_test_client.py index 666e71c330..a38fd10df5 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/auto_rest_parameterized_host_test_client.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/auto_rest_parameterized_host_test_client.py @@ -1,72 +1,72 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.paths_operations import PathsOperations -from . import models - - -class AutoRestParameterizedHostTestClientConfiguration(Configuration): - """Configuration for AutoRestParameterizedHostTestClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param host: A string value that is used as a global part of the - parameterized host - :type host: str - :param str filepath: Existing config - """ - - def __init__( - self, host, filepath=None): - - if host is None: - raise ValueError("Parameter 'host' must not be None.") - if not isinstance(host, str): - raise TypeError("Parameter 'host' must be str.") - base_url = 'http://{accountName}{host}' - - super(AutoRestParameterizedHostTestClientConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestparameterizedhosttestclient/{}'.format(VERSION)) - - self.host = host - - -class AutoRestParameterizedHostTestClient(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestParameterizedHostTestClientConfiguration - - :ivar paths: Paths operations - :vartype paths: .operations.PathsOperations - - :param host: A string value that is used as a global part of the - parameterized host - :type host: str - :param str filepath: Existing config - """ - - def __init__( - self, host, filepath=None): - - self.config = AutoRestParameterizedHostTestClientConfiguration(host, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.paths = PathsOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.paths_operations import PathsOperations +from . import models + + +class AutoRestParameterizedHostTestClientConfiguration(Configuration): + """Configuration for AutoRestParameterizedHostTestClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param host: A string value that is used as a global part of the + parameterized host + :type host: str + :param str filepath: Existing config + """ + + def __init__( + self, host, filepath=None): + + if host is None: + raise ValueError("Parameter 'host' must not be None.") + if not isinstance(host, str): + raise TypeError("Parameter 'host' must be str.") + base_url = 'http://{accountName}{host}' + + super(AutoRestParameterizedHostTestClientConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestparameterizedhosttestclient/{}'.format(VERSION)) + + self.host = host + + +class AutoRestParameterizedHostTestClient(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestParameterizedHostTestClientConfiguration + + :ivar paths: Paths operations + :vartype paths: .operations.PathsOperations + + :param host: A string value that is used as a global part of the + parameterized host + :type host: str + :param str filepath: Existing config + """ + + def __init__( + self, host, filepath=None): + + self.config = AutoRestParameterizedHostTestClientConfiguration(host, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.paths = PathsOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/__init__.py index f345c4b966..75acd01d4c 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .paths_operations import PathsOperations - -__all__ = [ - 'PathsOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .paths_operations import PathsOperations + +__all__ = [ + 'PathsOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/paths_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/paths_operations.py index 55a08b7d56..5d433fab8a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/paths_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/operations/paths_operations.py @@ -1,77 +1,77 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class PathsOperations(object): - """PathsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_empty( - self, account_name, custom_headers=None, raw=False, **operation_config): - """Get a 200 to test a valid base uri. - - :param account_name: Account Name - :type account_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/customuri' - path_format_arguments = { - 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), - 'host': self._serialize.url("self.config.host", self.config.host, 'str', skip_quote=True) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class PathsOperations(object): + """PathsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_empty( + self, account_name, custom_headers=None, raw=False, **operation_config): + """Get a 200 to test a valid base uri. + + :param account_name: Account Name + :type account_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/customuri' + path_format_arguments = { + 'accountName': self._serialize.url("account_name", account_name, 'str', skip_quote=True), + 'host': self._serialize.url("self.config.host", self.config.host, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/autorestparameterizedhosttestclient/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/setup.py index 1a6be5ebf3..20758a3b0e 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUri/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestparameterizedhosttestclient" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestParameterizedHostTestClient", - author_email="", - url="", - keywords=["Swagger", "AutoRestParameterizedHostTestClient"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestparameterizedhosttestclient" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestParameterizedHostTestClient", + author_email="", + url="", + keywords=["Swagger", "AutoRestParameterizedHostTestClient"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/__init__.py index f86cad4447..edfa86f280 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_parameterized_custom_host_test_client import AutoRestParameterizedCustomHostTestClient -from .version import VERSION - -__all__ = ['AutoRestParameterizedCustomHostTestClient'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_parameterized_custom_host_test_client import AutoRestParameterizedCustomHostTestClient +from .version import VERSION + +__all__ = ['AutoRestParameterizedCustomHostTestClient'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/auto_rest_parameterized_custom_host_test_client.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/auto_rest_parameterized_custom_host_test_client.py index 7c6ef1f044..610032a915 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/auto_rest_parameterized_custom_host_test_client.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/auto_rest_parameterized_custom_host_test_client.py @@ -1,81 +1,81 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.paths_operations import PathsOperations -from . import models - - -class AutoRestParameterizedCustomHostTestClientConfiguration(Configuration): - """Configuration for AutoRestParameterizedCustomHostTestClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param subscription_id: The subscription id with value 'test12'. - :type subscription_id: str - :param dns_suffix: A string value that is used as a global part of the - parameterized host. Default value 'host'. - :type dns_suffix: str - :param str filepath: Existing config - """ - - def __init__( - self, subscription_id, dns_suffix, filepath=None): - - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not isinstance(subscription_id, str): - raise TypeError("Parameter 'subscription_id' must be str.") - if dns_suffix is None: - raise ValueError("Parameter 'dns_suffix' must not be None.") - if not isinstance(dns_suffix, str): - raise TypeError("Parameter 'dns_suffix' must be str.") - base_url = '{vault}{secret}{dnsSuffix}' - - super(AutoRestParameterizedCustomHostTestClientConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestparameterizedcustomhosttestclient/{}'.format(VERSION)) - - self.subscription_id = subscription_id - self.dns_suffix = dns_suffix - - -class AutoRestParameterizedCustomHostTestClient(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestParameterizedCustomHostTestClientConfiguration - - :ivar paths: Paths operations - :vartype paths: .operations.PathsOperations - - :param subscription_id: The subscription id with value 'test12'. - :type subscription_id: str - :param dns_suffix: A string value that is used as a global part of the - parameterized host. Default value 'host'. - :type dns_suffix: str - :param str filepath: Existing config - """ - - def __init__( - self, subscription_id, dns_suffix, filepath=None): - - self.config = AutoRestParameterizedCustomHostTestClientConfiguration(subscription_id, dns_suffix, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.paths = PathsOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.paths_operations import PathsOperations +from . import models + + +class AutoRestParameterizedCustomHostTestClientConfiguration(Configuration): + """Configuration for AutoRestParameterizedCustomHostTestClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param subscription_id: The subscription id with value 'test12'. + :type subscription_id: str + :param dns_suffix: A string value that is used as a global part of the + parameterized host. Default value 'host'. + :type dns_suffix: str + :param str filepath: Existing config + """ + + def __init__( + self, subscription_id, dns_suffix, filepath=None): + + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not isinstance(subscription_id, str): + raise TypeError("Parameter 'subscription_id' must be str.") + if dns_suffix is None: + raise ValueError("Parameter 'dns_suffix' must not be None.") + if not isinstance(dns_suffix, str): + raise TypeError("Parameter 'dns_suffix' must be str.") + base_url = '{vault}{secret}{dnsSuffix}' + + super(AutoRestParameterizedCustomHostTestClientConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestparameterizedcustomhosttestclient/{}'.format(VERSION)) + + self.subscription_id = subscription_id + self.dns_suffix = dns_suffix + + +class AutoRestParameterizedCustomHostTestClient(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestParameterizedCustomHostTestClientConfiguration + + :ivar paths: Paths operations + :vartype paths: .operations.PathsOperations + + :param subscription_id: The subscription id with value 'test12'. + :type subscription_id: str + :param dns_suffix: A string value that is used as a global part of the + parameterized host. Default value 'host'. + :type dns_suffix: str + :param str filepath: Existing config + """ + + def __init__( + self, subscription_id, dns_suffix, filepath=None): + + self.config = AutoRestParameterizedCustomHostTestClientConfiguration(subscription_id, dns_suffix, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.paths = PathsOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/operations/__init__.py index f345c4b966..75acd01d4c 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .paths_operations import PathsOperations - -__all__ = [ - 'PathsOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .paths_operations import PathsOperations + +__all__ = [ + 'PathsOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/operations/paths_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/operations/paths_operations.py index ce304069b9..9ec566723e 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/operations/paths_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/operations/paths_operations.py @@ -1,88 +1,88 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class PathsOperations(object): - """PathsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_empty( - self, vault, secret, key_name, key_version="v1", custom_headers=None, raw=False, **operation_config): - """Get a 200 to test a valid base uri. - - :param vault: The vault name, e.g. https://myvault - :type vault: str - :param secret: Secret value. - :type secret: str - :param key_name: The key name with value 'key1'. - :type key_name: str - :param key_version: The key version. Default value 'v1'. - :type key_version: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/customuri/{subscriptionId}/{keyName}' - path_format_arguments = { - 'vault': self._serialize.url("vault", vault, 'str', skip_quote=True), - 'secret': self._serialize.url("secret", secret, 'str', skip_quote=True), - 'dnsSuffix': self._serialize.url("self.config.dns_suffix", self.config.dns_suffix, 'str', skip_quote=True), - 'keyName': self._serialize.url("key_name", key_name, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - if key_version is not None: - query_parameters['keyVersion'] = self._serialize.query("key_version", key_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class PathsOperations(object): + """PathsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_empty( + self, vault, secret, key_name, key_version="v1", custom_headers=None, raw=False, **operation_config): + """Get a 200 to test a valid base uri. + + :param vault: The vault name, e.g. https://myvault + :type vault: str + :param secret: Secret value. + :type secret: str + :param key_name: The key name with value 'key1'. + :type key_name: str + :param key_version: The key version. Default value 'v1'. + :type key_version: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/customuri/{subscriptionId}/{keyName}' + path_format_arguments = { + 'vault': self._serialize.url("vault", vault, 'str', skip_quote=True), + 'secret': self._serialize.url("secret", secret, 'str', skip_quote=True), + 'dnsSuffix': self._serialize.url("self.config.dns_suffix", self.config.dns_suffix, 'str', skip_quote=True), + 'keyName': self._serialize.url("key_name", key_name, 'str'), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if key_version is not None: + query_parameters['keyVersion'] = self._serialize.query("key_version", key_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autorestparameterizedcustomhosttestclient/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py index 1720866770..3521fb6abe 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestparameterizedcustomhosttestclient" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestParameterizedCustomHostTestClient", - author_email="", - url="", - keywords=["Swagger", "AutoRestParameterizedCustomHostTestClient"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestparameterizedcustomhosttestclient" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestParameterizedCustomHostTestClient", + author_email="", + url="", + keywords=["Swagger", "AutoRestParameterizedCustomHostTestClient"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/__init__.py index 95675c4638..60f936ea90 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_swagger_bat_header_service import AutoRestSwaggerBATHeaderService -from .version import VERSION - -__all__ = ['AutoRestSwaggerBATHeaderService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_swagger_bat_header_service import AutoRestSwaggerBATHeaderService +from .version import VERSION + +__all__ = ['AutoRestSwaggerBATHeaderService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/auto_rest_swagger_bat_header_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/auto_rest_swagger_bat_header_service.py index 8c2c33e8be..34514ad2b9 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/auto_rest_swagger_bat_header_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/auto_rest_swagger_bat_header_service.py @@ -1,63 +1,63 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.header_operations import HeaderOperations -from . import models - - -class AutoRestSwaggerBATHeaderServiceConfiguration(Configuration): - """Configuration for AutoRestSwaggerBATHeaderService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'http://localhost' - - super(AutoRestSwaggerBATHeaderServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestswaggerbatheaderservice/{}'.format(VERSION)) - - -class AutoRestSwaggerBATHeaderService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestSwaggerBATHeaderServiceConfiguration - - :ivar header: Header operations - :vartype header: .operations.HeaderOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestSwaggerBATHeaderServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.header = HeaderOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.header_operations import HeaderOperations +from . import models + + +class AutoRestSwaggerBATHeaderServiceConfiguration(Configuration): + """Configuration for AutoRestSwaggerBATHeaderService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'http://localhost' + + super(AutoRestSwaggerBATHeaderServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestswaggerbatheaderservice/{}'.format(VERSION)) + + +class AutoRestSwaggerBATHeaderService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestSwaggerBATHeaderServiceConfiguration + + :ivar header: Header operations + :vartype header: .operations.HeaderOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestSwaggerBATHeaderServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.header = HeaderOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/models/__init__.py index e037e41520..fc75ae155c 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/models/__init__.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException -from .auto_rest_swagger_bat_header_service_enums import ( - GreyscaleColors, -) - -__all__ = [ - 'Error', 'ErrorException', - 'GreyscaleColors', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException +from .auto_rest_swagger_bat_header_service_enums import ( + GreyscaleColors, +) + +__all__ = [ + 'Error', 'ErrorException', + 'GreyscaleColors', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/models/auto_rest_swagger_bat_header_service_enums.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/models/auto_rest_swagger_bat_header_service_enums.py index f47f2e178c..c51e703555 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/models/auto_rest_swagger_bat_header_service_enums.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/models/auto_rest_swagger_bat_header_service_enums.py @@ -1,19 +1,19 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum - - -class GreyscaleColors(Enum): - - white = "White" - black = "black" - grey = "GREY" +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum + + +class GreyscaleColors(Enum): + + white = "White" + black = "black" + grey = "GREY" diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/operations/__init__.py index 26c66303f0..6c0fd01cdb 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .header_operations import HeaderOperations - -__all__ = [ - 'HeaderOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .header_operations import HeaderOperations + +__all__ = [ + 'HeaderOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/autorestswaggerbatheaderservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/setup.py index 08d01a64f9..2e773b93aa 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Header/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestswaggerbatheaderservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestSwaggerBATHeaderService", - author_email="", - url="", - keywords=["Swagger", "AutoRestSwaggerBATHeaderService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestswaggerbatheaderservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestSwaggerBATHeaderService", + author_email="", + url="", + keywords=["Swagger", "AutoRestSwaggerBATHeaderService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/__init__.py index 76ba3c37d7..539c0efb2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_http_infrastructure_test_service import AutoRestHttpInfrastructureTestService -from .version import VERSION - -__all__ = ['AutoRestHttpInfrastructureTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_http_infrastructure_test_service import AutoRestHttpInfrastructureTestService +from .version import VERSION + +__all__ = ['AutoRestHttpInfrastructureTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/auto_rest_http_infrastructure_test_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/auto_rest_http_infrastructure_test_service.py index 01179df672..1f3fa68d1f 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/auto_rest_http_infrastructure_test_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/auto_rest_http_infrastructure_test_service.py @@ -1,94 +1,94 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from msrest.exceptions import HttpOperationError -from .operations.http_failure_operations import HttpFailureOperations -from .operations.http_success_operations import HttpSuccessOperations -from .operations.http_redirects_operations import HttpRedirectsOperations -from .operations.http_client_failure_operations import HttpClientFailureOperations -from .operations.http_server_failure_operations import HttpServerFailureOperations -from .operations.http_retry_operations import HttpRetryOperations -from .operations.multiple_responses_operations import MultipleResponsesOperations -from . import models - - -class AutoRestHttpInfrastructureTestServiceConfiguration(Configuration): - """Configuration for AutoRestHttpInfrastructureTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'http://localhost' - - super(AutoRestHttpInfrastructureTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autoresthttpinfrastructuretestservice/{}'.format(VERSION)) - - -class AutoRestHttpInfrastructureTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestHttpInfrastructureTestServiceConfiguration - - :ivar http_failure: HttpFailure operations - :vartype http_failure: .operations.HttpFailureOperations - :ivar http_success: HttpSuccess operations - :vartype http_success: .operations.HttpSuccessOperations - :ivar http_redirects: HttpRedirects operations - :vartype http_redirects: .operations.HttpRedirectsOperations - :ivar http_client_failure: HttpClientFailure operations - :vartype http_client_failure: .operations.HttpClientFailureOperations - :ivar http_server_failure: HttpServerFailure operations - :vartype http_server_failure: .operations.HttpServerFailureOperations - :ivar http_retry: HttpRetry operations - :vartype http_retry: .operations.HttpRetryOperations - :ivar multiple_responses: MultipleResponses operations - :vartype multiple_responses: .operations.MultipleResponsesOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestHttpInfrastructureTestServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.http_failure = HttpFailureOperations( - self._client, self.config, self._serialize, self._deserialize) - self.http_success = HttpSuccessOperations( - self._client, self.config, self._serialize, self._deserialize) - self.http_redirects = HttpRedirectsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.http_client_failure = HttpClientFailureOperations( - self._client, self.config, self._serialize, self._deserialize) - self.http_server_failure = HttpServerFailureOperations( - self._client, self.config, self._serialize, self._deserialize) - self.http_retry = HttpRetryOperations( - self._client, self.config, self._serialize, self._deserialize) - self.multiple_responses = MultipleResponsesOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from msrest.exceptions import HttpOperationError +from .operations.http_failure_operations import HttpFailureOperations +from .operations.http_success_operations import HttpSuccessOperations +from .operations.http_redirects_operations import HttpRedirectsOperations +from .operations.http_client_failure_operations import HttpClientFailureOperations +from .operations.http_server_failure_operations import HttpServerFailureOperations +from .operations.http_retry_operations import HttpRetryOperations +from .operations.multiple_responses_operations import MultipleResponsesOperations +from . import models + + +class AutoRestHttpInfrastructureTestServiceConfiguration(Configuration): + """Configuration for AutoRestHttpInfrastructureTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'http://localhost' + + super(AutoRestHttpInfrastructureTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autoresthttpinfrastructuretestservice/{}'.format(VERSION)) + + +class AutoRestHttpInfrastructureTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestHttpInfrastructureTestServiceConfiguration + + :ivar http_failure: HttpFailure operations + :vartype http_failure: .operations.HttpFailureOperations + :ivar http_success: HttpSuccess operations + :vartype http_success: .operations.HttpSuccessOperations + :ivar http_redirects: HttpRedirects operations + :vartype http_redirects: .operations.HttpRedirectsOperations + :ivar http_client_failure: HttpClientFailure operations + :vartype http_client_failure: .operations.HttpClientFailureOperations + :ivar http_server_failure: HttpServerFailure operations + :vartype http_server_failure: .operations.HttpServerFailureOperations + :ivar http_retry: HttpRetry operations + :vartype http_retry: .operations.HttpRetryOperations + :ivar multiple_responses: MultipleResponses operations + :vartype multiple_responses: .operations.MultipleResponsesOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestHttpInfrastructureTestServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.http_failure = HttpFailureOperations( + self._client, self.config, self._serialize, self._deserialize) + self.http_success = HttpSuccessOperations( + self._client, self.config, self._serialize, self._deserialize) + self.http_redirects = HttpRedirectsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.http_client_failure = HttpClientFailureOperations( + self._client, self.config, self._serialize, self._deserialize) + self.http_server_failure = HttpServerFailureOperations( + self._client, self.config, self._serialize, self._deserialize) + self.http_retry = HttpRetryOperations( + self._client, self.config, self._serialize, self._deserialize) + self.multiple_responses = MultipleResponsesOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/__init__.py index 4d9d2dc1c9..c8b2aeacd9 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/__init__.py @@ -1,24 +1,24 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException -from .a import A, MyException -from .b import B -from .c import C -from .d import D - -__all__ = [ - 'Error', 'ErrorException', - 'A', 'MyException', - 'B', - 'C', - 'D', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException +from .a import A, MyException +from .b import B +from .c import C +from .d import D + +__all__ = [ + 'Error', 'ErrorException', + 'A', 'MyException', + 'B', + 'C', + 'D', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/a.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/a.py index 9640ba3af3..b45dc29a3e 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/a.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/a.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class A(Model): - """A. - - :param status_code: - :type status_code: str - """ - - _attribute_map = { - 'status_code': {'key': 'statusCode', 'type': 'str'}, - } - - def __init__(self, status_code=None): - self.status_code = status_code - - -class MyException(HttpOperationError): - """Server responsed with exception of type: 'A'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(MyException, self).__init__(deserialize, response, 'A', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class A(Model): + """A. + + :param status_code: + :type status_code: str + """ + + _attribute_map = { + 'status_code': {'key': 'statusCode', 'type': 'str'}, + } + + def __init__(self, status_code=None): + self.status_code = status_code + + +class MyException(HttpOperationError): + """Server responsed with exception of type: 'A'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(MyException, self).__init__(deserialize, response, 'A', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/b.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/b.py index 1d93e59100..8dfd069ae6 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/b.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/b.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .a import A - - -class B(A): - """B. - - :param status_code: - :type status_code: str - :param text_status_code: - :type text_status_code: str - """ - - _attribute_map = { - 'status_code': {'key': 'statusCode', 'type': 'str'}, - 'text_status_code': {'key': 'textStatusCode', 'type': 'str'}, - } - - def __init__(self, status_code=None, text_status_code=None): - super(B, self).__init__(status_code=status_code) - self.text_status_code = text_status_code +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .a import A + + +class B(A): + """B. + + :param status_code: + :type status_code: str + :param text_status_code: + :type text_status_code: str + """ + + _attribute_map = { + 'status_code': {'key': 'statusCode', 'type': 'str'}, + 'text_status_code': {'key': 'textStatusCode', 'type': 'str'}, + } + + def __init__(self, status_code=None, text_status_code=None): + super(B, self).__init__(status_code=status_code) + self.text_status_code = text_status_code diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/c.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/c.py index 4591bd864c..f4c614f8b1 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/c.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/c.py @@ -1,27 +1,27 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class C(Model): - """C. - - :param http_code: - :type http_code: str - """ - - _attribute_map = { - 'http_code': {'key': 'httpCode', 'type': 'str'}, - } - - def __init__(self, http_code=None): - self.http_code = http_code +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class C(Model): + """C. + + :param http_code: + :type http_code: str + """ + + _attribute_map = { + 'http_code': {'key': 'httpCode', 'type': 'str'}, + } + + def __init__(self, http_code=None): + self.http_code = http_code diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/d.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/d.py index b145a71c7f..7134fc33be 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/d.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/d.py @@ -1,27 +1,27 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class D(Model): - """D. - - :param http_status_code: - :type http_status_code: str - """ - - _attribute_map = { - 'http_status_code': {'key': 'httpStatusCode', 'type': 'str'}, - } - - def __init__(self, http_status_code=None): - self.http_status_code = http_status_code +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class D(Model): + """D. + + :param http_status_code: + :type http_status_code: str + """ + + _attribute_map = { + 'http_status_code': {'key': 'httpStatusCode', 'type': 'str'}, + } + + def __init__(self, http_status_code=None): + self.http_status_code = http_status_code diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/__init__.py index 796f42576c..239a80810c 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/__init__.py @@ -1,28 +1,28 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .http_failure_operations import HttpFailureOperations -from .http_success_operations import HttpSuccessOperations -from .http_redirects_operations import HttpRedirectsOperations -from .http_client_failure_operations import HttpClientFailureOperations -from .http_server_failure_operations import HttpServerFailureOperations -from .http_retry_operations import HttpRetryOperations -from .multiple_responses_operations import MultipleResponsesOperations - -__all__ = [ - 'HttpFailureOperations', - 'HttpSuccessOperations', - 'HttpRedirectsOperations', - 'HttpClientFailureOperations', - 'HttpServerFailureOperations', - 'HttpRetryOperations', - 'MultipleResponsesOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .http_failure_operations import HttpFailureOperations +from .http_success_operations import HttpSuccessOperations +from .http_redirects_operations import HttpRedirectsOperations +from .http_client_failure_operations import HttpClientFailureOperations +from .http_server_failure_operations import HttpServerFailureOperations +from .http_retry_operations import HttpRetryOperations +from .multiple_responses_operations import MultipleResponsesOperations + +__all__ = [ + 'HttpFailureOperations', + 'HttpSuccessOperations', + 'HttpRedirectsOperations', + 'HttpClientFailureOperations', + 'HttpServerFailureOperations', + 'HttpRetryOperations', + 'MultipleResponsesOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_client_failure_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_client_failure_operations.py index 2b9236b596..bfb81bce2c 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_client_failure_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_client_failure_operations.py @@ -1,1046 +1,1046 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class HttpClientFailureOperations(object): - """HttpClientFailureOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def head400( - self, custom_headers=None, raw=False, **operation_config): - """Return 400 status code - should be represented in the client as an - error. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/400' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get400( - self, custom_headers=None, raw=False, **operation_config): - """Return 400 status code - should be represented in the client as an - error. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/400' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def put400( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 400 status code - should be represented in the client as an - error. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/400' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def patch400( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 400 status code - should be represented in the client as an - error. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/400' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post400( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 400 status code - should be represented in the client as an - error. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/400' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete400( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 400 status code - should be represented in the client as an - error. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/400' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def head401( - self, custom_headers=None, raw=False, **operation_config): - """Return 401 status code - should be represented in the client as an - error. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/401' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get402( - self, custom_headers=None, raw=False, **operation_config): - """Return 402 status code - should be represented in the client as an - error. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/402' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get403( - self, custom_headers=None, raw=False, **operation_config): - """Return 403 status code - should be represented in the client as an - error. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/403' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def put404( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 404 status code - should be represented in the client as an - error. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/404' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def patch405( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 405 status code - should be represented in the client as an - error. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/405' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post406( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 406 status code - should be represented in the client as an - error. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/406' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete407( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 407 status code - should be represented in the client as an - error. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/407' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def put409( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 409 status code - should be represented in the client as an - error. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/409' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def head410( - self, custom_headers=None, raw=False, **operation_config): - """Return 410 status code - should be represented in the client as an - error. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/410' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get411( - self, custom_headers=None, raw=False, **operation_config): - """Return 411 status code - should be represented in the client as an - error. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/411' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get412( - self, custom_headers=None, raw=False, **operation_config): - """Return 412 status code - should be represented in the client as an - error. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/412' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def put413( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 413 status code - should be represented in the client as an - error. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/413' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def patch414( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 414 status code - should be represented in the client as an - error. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/414' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post415( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 415 status code - should be represented in the client as an - error. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/415' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get416( - self, custom_headers=None, raw=False, **operation_config): - """Return 416 status code - should be represented in the client as an - error. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/416' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete417( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 417 status code - should be represented in the client as an - error. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/417' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def head429( - self, custom_headers=None, raw=False, **operation_config): - """Return 429 status code - should be represented in the client as an - error. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/client/429' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class HttpClientFailureOperations(object): + """HttpClientFailureOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def head400( + self, custom_headers=None, raw=False, **operation_config): + """Return 400 status code - should be represented in the client as an + error. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/400' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.head(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get400( + self, custom_headers=None, raw=False, **operation_config): + """Return 400 status code - should be represented in the client as an + error. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/400' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def put400( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 400 status code - should be represented in the client as an + error. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/400' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def patch400( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 400 status code - should be represented in the client as an + error. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/400' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.patch(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post400( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 400 status code - should be represented in the client as an + error. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/400' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete400( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 400 status code - should be represented in the client as an + error. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/400' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.delete(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def head401( + self, custom_headers=None, raw=False, **operation_config): + """Return 401 status code - should be represented in the client as an + error. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/401' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.head(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get402( + self, custom_headers=None, raw=False, **operation_config): + """Return 402 status code - should be represented in the client as an + error. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/402' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get403( + self, custom_headers=None, raw=False, **operation_config): + """Return 403 status code - should be represented in the client as an + error. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/403' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def put404( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 404 status code - should be represented in the client as an + error. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/404' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def patch405( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 405 status code - should be represented in the client as an + error. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/405' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.patch(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post406( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 406 status code - should be represented in the client as an + error. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/406' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete407( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 407 status code - should be represented in the client as an + error. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/407' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.delete(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def put409( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 409 status code - should be represented in the client as an + error. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/409' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def head410( + self, custom_headers=None, raw=False, **operation_config): + """Return 410 status code - should be represented in the client as an + error. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/410' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.head(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get411( + self, custom_headers=None, raw=False, **operation_config): + """Return 411 status code - should be represented in the client as an + error. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/411' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get412( + self, custom_headers=None, raw=False, **operation_config): + """Return 412 status code - should be represented in the client as an + error. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/412' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def put413( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 413 status code - should be represented in the client as an + error. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/413' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def patch414( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 414 status code - should be represented in the client as an + error. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/414' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.patch(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post415( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 415 status code - should be represented in the client as an + error. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/415' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get416( + self, custom_headers=None, raw=False, **operation_config): + """Return 416 status code - should be represented in the client as an + error. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/416' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete417( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 417 status code - should be represented in the client as an + error. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/417' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.delete(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def head429( + self, custom_headers=None, raw=False, **operation_config): + """Return 429 status code - should be represented in the client as an + error. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/client/429' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.head(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_failure_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_failure_operations.py index 54bea14a9f..b656f58350 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_failure_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_failure_operations.py @@ -1,168 +1,168 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -from msrest.exceptions import HttpOperationError - -from .. import models - - -class HttpFailureOperations(object): - """HttpFailureOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_empty_error( - self, custom_headers=None, raw=False, **operation_config): - """Get empty error form server. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: bool - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/emptybody/error' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('bool', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_no_model_error( - self, custom_headers=None, raw=False, **operation_config): - """Get empty error form server. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: bool - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/failure/nomodel/error' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('bool', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_no_model_empty( - self, custom_headers=None, raw=False, **operation_config): - """Get empty response from server. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: bool - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/failure/nomodel/empty' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('bool', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +from msrest.exceptions import HttpOperationError + +from .. import models + + +class HttpFailureOperations(object): + """HttpFailureOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_empty_error( + self, custom_headers=None, raw=False, **operation_config): + """Get empty error form server. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: bool + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/emptybody/error' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('bool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_no_model_error( + self, custom_headers=None, raw=False, **operation_config): + """Get empty error form server. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: bool + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/failure/nomodel/error' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('bool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_no_model_empty( + self, custom_headers=None, raw=False, **operation_config): + """Get empty response from server. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: bool + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/failure/nomodel/empty' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('bool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_retry_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_retry_operations.py index 0db9ea1bf0..a23ce34cf2 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_retry_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_retry_operations.py @@ -1,390 +1,390 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class HttpRetryOperations(object): - """HttpRetryOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def head408( - self, custom_headers=None, raw=False, **operation_config): - """Return 408 status code, then 200 after retry. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/retry/408' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def put500( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 500 status code, then 200 after retry. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/retry/500' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def patch500( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 500 status code, then 200 after retry. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/retry/500' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get502( - self, custom_headers=None, raw=False, **operation_config): - """Return 502 status code, then 200 after retry. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/retry/502' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post503( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 503 status code, then 200 after retry. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/retry/503' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete503( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 503 status code, then 200 after retry. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/retry/503' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def put504( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 504 status code, then 200 after retry. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/retry/504' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def patch504( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 504 status code, then 200 after retry. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/retry/504' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class HttpRetryOperations(object): + """HttpRetryOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def head408( + self, custom_headers=None, raw=False, **operation_config): + """Return 408 status code, then 200 after retry. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/retry/408' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.head(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def put500( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 500 status code, then 200 after retry. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/retry/500' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def patch500( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 500 status code, then 200 after retry. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/retry/500' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.patch(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get502( + self, custom_headers=None, raw=False, **operation_config): + """Return 502 status code, then 200 after retry. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/retry/502' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post503( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 503 status code, then 200 after retry. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/retry/503' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete503( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 503 status code, then 200 after retry. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/retry/503' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.delete(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def put504( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 504 status code, then 200 after retry. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/retry/504' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def patch504( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 504 status code, then 200 after retry. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/retry/504' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.patch(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_server_failure_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_server_failure_operations.py index 827ec146e4..4cb3f9a644 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_server_failure_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_server_failure_operations.py @@ -1,206 +1,206 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class HttpServerFailureOperations(object): - """HttpServerFailureOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def head501( - self, custom_headers=None, raw=False, **operation_config): - """Return 501 status code - should be represented in the client as an - error. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/server/501' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get501( - self, custom_headers=None, raw=False, **operation_config): - """Return 501 status code - should be represented in the client as an - error. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/server/501' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post505( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 505 status code - should be represented in the client as an - error. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/server/505' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete505( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Return 505 status code - should be represented in the client as an - error. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/failure/server/505' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class HttpServerFailureOperations(object): + """HttpServerFailureOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def head501( + self, custom_headers=None, raw=False, **operation_config): + """Return 501 status code - should be represented in the client as an + error. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/server/501' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.head(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get501( + self, custom_headers=None, raw=False, **operation_config): + """Return 501 status code - should be represented in the client as an + error. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/server/501' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post505( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 505 status code - should be represented in the client as an + error. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/server/505' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete505( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Return 505 status code - should be represented in the client as an + error. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/failure/server/505' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.delete(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_success_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_success_operations.py index 8eddd7ebe6..506fb59765 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_success_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/http_success_operations.py @@ -1,849 +1,849 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class HttpSuccessOperations(object): - """HttpSuccessOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def head200( - self, custom_headers=None, raw=False, **operation_config): - """Return 200 status code if successful. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/200' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get200( - self, custom_headers=None, raw=False, **operation_config): - """Get 200 success. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: bool - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/200' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('bool', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def put200( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Put boolean value true returning 200 success. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/200' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def patch200( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Patch true Boolean value in request returning 200. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/200' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post200( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Post bollean value true in request that returns a 200. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/200' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete200( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Delete simple boolean value true returns 200. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/200' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def put201( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Put true Boolean value in request returns 201. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/201' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [201]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post201( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Post true Boolean value in request returns 201 (Created). - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/201' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [201]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def put202( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Put true Boolean value in request returns 202 (Accepted). - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/202' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [202]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def patch202( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Patch true Boolean value in request returns 202. - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/202' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [202]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post202( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Post true Boolean value in request returns 202 (Accepted). - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/202' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [202]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete202( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Delete true Boolean value in request returns 202 (accepted). - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/202' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [202]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def head204( - self, custom_headers=None, raw=False, **operation_config): - """Return 204 status code if successful. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/204' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [204]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def put204( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Put true Boolean value in request returns 204 (no content). - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/204' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [204]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def patch204( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Patch true Boolean value in request returns 204 (no content). - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/204' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [204]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post204( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Post true Boolean value in request returns 204 (no content). - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/204' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [204]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def delete204( - self, boolean_value=None, custom_headers=None, raw=False, **operation_config): - """Delete true Boolean value in request returns 204 (no content). - - :param boolean_value: Simple boolean value true - :type boolean_value: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/204' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if boolean_value is not None: - body_content = self._serialize.body(boolean_value, 'bool') - else: - body_content = None - - # Construct and send request - request = self._client.delete(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [204]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def head404( - self, custom_headers=None, raw=False, **operation_config): - """Return 404 status code. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/success/404' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.head(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [204, 404]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class HttpSuccessOperations(object): + """HttpSuccessOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def head200( + self, custom_headers=None, raw=False, **operation_config): + """Return 200 status code if successful. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/200' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.head(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get200( + self, custom_headers=None, raw=False, **operation_config): + """Get 200 success. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: bool + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/200' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('bool', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def put200( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Put boolean value true returning 200 success. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/200' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def patch200( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Patch true Boolean value in request returning 200. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/200' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.patch(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post200( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Post bollean value true in request that returns a 200. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/200' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete200( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Delete simple boolean value true returns 200. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/200' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.delete(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def put201( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Put true Boolean value in request returns 201. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/201' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [201]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post201( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Post true Boolean value in request returns 201 (Created). + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/201' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [201]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def put202( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Put true Boolean value in request returns 202 (Accepted). + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/202' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [202]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def patch202( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Patch true Boolean value in request returns 202. + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/202' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.patch(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [202]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post202( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Post true Boolean value in request returns 202 (Accepted). + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/202' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [202]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete202( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Delete true Boolean value in request returns 202 (accepted). + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/202' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.delete(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [202]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def head204( + self, custom_headers=None, raw=False, **operation_config): + """Return 204 status code if successful. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/204' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.head(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def put204( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Put true Boolean value in request returns 204 (no content). + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/204' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def patch204( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Patch true Boolean value in request returns 204 (no content). + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/204' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.patch(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post204( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Post true Boolean value in request returns 204 (no content). + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/204' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def delete204( + self, boolean_value=None, custom_headers=None, raw=False, **operation_config): + """Delete true Boolean value in request returns 204 (no content). + + :param boolean_value: Simple boolean value true + :type boolean_value: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/204' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if boolean_value is not None: + body_content = self._serialize.body(boolean_value, 'bool') + else: + body_content = None + + # Construct and send request + request = self._client.delete(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def head404( + self, custom_headers=None, raw=False, **operation_config): + """Return 404 status code. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/success/404' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.head(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [204, 404]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/multiple_responses_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/multiple_responses_operations.py index 3dc22031a7..12cfaf99ce 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/multiple_responses_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/operations/multiple_responses_operations.py @@ -1,1487 +1,1487 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -from msrest.exceptions import HttpOperationError - -from .. import models - - -class MultipleResponsesOperations(object): - """MultipleResponsesOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get200_model204_no_model_default_error200_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 200 response with valid payload: {'statusCode': '200'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/payloads/200/A/204/none/default/Error/response/200/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model204_no_model_default_error204_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 204 response with no payload. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/payloads/200/A/204/none/default/Error/response/204/none' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model204_no_model_default_error201_invalid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 201 response with valid payload: {'statusCode': '201'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/payloads/200/A/204/none/default/Error/response/201/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model204_no_model_default_error202_none( - self, custom_headers=None, raw=False, **operation_config): - """Send a 202 response with no payload:. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/payloads/200/A/204/none/default/Error/response/202/none' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model204_no_model_default_error400_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 400 response with valid error payload: {'status': 400, - 'message': 'client error'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/payloads/200/A/204/none/default/Error/response/400/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model201_model_default_error200_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 200 response with valid payload: {'statusCode': '200'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/payloads/200/A/201/B/default/Error/response/200/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - if response.status_code == 201: - deserialized = self._deserialize('B', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model201_model_default_error201_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 201 response with valid payload: {'statusCode': '201', - 'textStatusCode': 'Created'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/payloads/200/A/201/B/default/Error/response/201/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - if response.status_code == 201: - deserialized = self._deserialize('B', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model201_model_default_error400_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 400 response with valid payload: {'code': '400', 'message': - 'client error'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/payloads/200/A/201/B/default/Error/response/400/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - if response.status_code == 201: - deserialized = self._deserialize('B', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model_a201_model_c404_model_ddefault_error200_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 200 response with valid payload: {'statusCode': '200'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: object - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 201, 404]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - if response.status_code == 201: - deserialized = self._deserialize('C', response) - if response.status_code == 404: - deserialized = self._deserialize('D', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model_a201_model_c404_model_ddefault_error201_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 200 response with valid payload: {'httpCode': '201'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: object - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 201, 404]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - if response.status_code == 201: - deserialized = self._deserialize('C', response) - if response.status_code == 404: - deserialized = self._deserialize('D', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model_a201_model_c404_model_ddefault_error404_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 200 response with valid payload: {'httpStatusCode': '404'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: object - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 201, 404]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - if response.status_code == 201: - deserialized = self._deserialize('C', response) - if response.status_code == 404: - deserialized = self._deserialize('D', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model_a201_model_c404_model_ddefault_error400_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 400 response with valid payload: {'code': '400', 'message': - 'client error'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: object - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 201, 404]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - if response.status_code == 201: - deserialized = self._deserialize('C', response) - if response.status_code == 404: - deserialized = self._deserialize('D', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get202_none204_none_default_error202_none( - self, custom_headers=None, raw=False, **operation_config): - """Send a 202 response with no payload. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/payloads/202/none/204/none/default/Error/response/202/none' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [202, 204]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get202_none204_none_default_error204_none( - self, custom_headers=None, raw=False, **operation_config): - """Send a 204 response with no payload. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/payloads/202/none/204/none/default/Error/response/204/none' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [202, 204]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get202_none204_none_default_error400_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 400 response with valid payload: {'code': '400', 'message': - 'client error'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/http/payloads/202/none/204/none/default/Error/response/400/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [202, 204]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get202_none204_none_default_none202_invalid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 202 response with an unexpected payload {'property': 'value'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/payloads/202/none/204/none/default/none/response/202/invalid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [202, 204]: - raise HttpOperationError(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get202_none204_none_default_none204_none( - self, custom_headers=None, raw=False, **operation_config): - """Send a 204 response with no payload. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/payloads/202/none/204/none/default/none/response/204/none' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [202, 204]: - raise HttpOperationError(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get202_none204_none_default_none400_none( - self, custom_headers=None, raw=False, **operation_config): - """Send a 400 response with no payload. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/payloads/202/none/204/none/default/none/response/400/none' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [202, 204]: - raise HttpOperationError(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get202_none204_none_default_none400_invalid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 400 response with an unexpected payload {'property': 'value'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/payloads/202/none/204/none/default/none/response/400/invalid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [202, 204]: - raise HttpOperationError(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_default_model_a200_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 200 response with valid payload: {'statusCode': '200'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`MyException` - """ - # Construct URL - url = '/http/payloads/default/A/response/200/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.MyException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_default_model_a200_none( - self, custom_headers=None, raw=False, **operation_config): - """Send a 200 response with no payload. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`MyException` - """ - # Construct URL - url = '/http/payloads/default/A/response/200/none' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.MyException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_default_model_a400_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 400 response with valid payload: {'statusCode': '400'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`MyException` - """ - # Construct URL - url = '/http/payloads/default/A/response/400/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.MyException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_default_model_a400_none( - self, custom_headers=None, raw=False, **operation_config): - """Send a 400 response with no payload. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`MyException` - """ - # Construct URL - url = '/http/payloads/default/A/response/400/none' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.MyException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_default_none200_invalid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 200 response with invalid payload: {'statusCode': '200'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/payloads/default/none/response/200/invalid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise HttpOperationError(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_default_none200_none( - self, custom_headers=None, raw=False, **operation_config): - """Send a 200 response with no payload. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/payloads/default/none/response/200/none' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise HttpOperationError(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_default_none400_invalid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 400 response with valid payload: {'statusCode': '400'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/payloads/default/none/response/400/invalid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise HttpOperationError(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_default_none400_none( - self, custom_headers=None, raw=False, **operation_config): - """Send a 400 response with no payload. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/payloads/default/none/response/400/none' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise HttpOperationError(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get200_model_a200_none( - self, custom_headers=None, raw=False, **operation_config): - """Send a 200 response with no payload, when a payload is expected - - client should return a null object of thde type for model A. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/payloads/200/A/response/200/none' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model_a200_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 200 response with payload {'statusCode': '200'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/payloads/200/A/response/200/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model_a200_invalid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 200 response with invalid payload {'statusCodeInvalid': '200'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/payloads/200/A/response/200/invalid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model_a400_none( - self, custom_headers=None, raw=False, **operation_config): - """Send a 400 response with no payload client should treat as an http - error with no error model. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/payloads/200/A/response/400/none' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model_a400_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 200 response with payload {'statusCode': '400'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/payloads/200/A/response/400/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model_a400_invalid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 200 response with invalid payload {'statusCodeInvalid': '400'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/payloads/200/A/response/400/invalid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get200_model_a202_valid( - self, custom_headers=None, raw=False, **operation_config): - """Send a 202 response with payload {'statusCode': '202'}. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`A ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - # Construct URL - url = '/http/payloads/200/A/response/202/valid' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('A', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +from msrest.exceptions import HttpOperationError + +from .. import models + + +class MultipleResponsesOperations(object): + """MultipleResponsesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get200_model204_no_model_default_error200_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 200 response with valid payload: {'statusCode': '200'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/payloads/200/A/204/none/default/Error/response/200/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200, 204]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model204_no_model_default_error204_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 204 response with no payload. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/payloads/200/A/204/none/default/Error/response/204/none' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200, 204]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model204_no_model_default_error201_invalid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 201 response with valid payload: {'statusCode': '201'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/payloads/200/A/204/none/default/Error/response/201/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200, 204]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model204_no_model_default_error202_none( + self, custom_headers=None, raw=False, **operation_config): + """Send a 202 response with no payload:. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/payloads/200/A/204/none/default/Error/response/202/none' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200, 204]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model204_no_model_default_error400_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 400 response with valid error payload: {'status': 400, + 'message': 'client error'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/payloads/200/A/204/none/default/Error/response/400/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200, 204]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model201_model_default_error200_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 200 response with valid payload: {'statusCode': '200'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/payloads/200/A/201/B/default/Error/response/200/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + if response.status_code == 201: + deserialized = self._deserialize('B', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model201_model_default_error201_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 201 response with valid payload: {'statusCode': '201', + 'textStatusCode': 'Created'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/payloads/200/A/201/B/default/Error/response/201/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + if response.status_code == 201: + deserialized = self._deserialize('B', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model201_model_default_error400_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 400 response with valid payload: {'code': '400', 'message': + 'client error'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/payloads/200/A/201/B/default/Error/response/400/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200, 201]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + if response.status_code == 201: + deserialized = self._deserialize('B', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model_a201_model_c404_model_ddefault_error200_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 200 response with valid payload: {'statusCode': '200'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: object + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/payloads/200/A/201/C/404/D/default/Error/response/200/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200, 201, 404]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + if response.status_code == 201: + deserialized = self._deserialize('C', response) + if response.status_code == 404: + deserialized = self._deserialize('D', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model_a201_model_c404_model_ddefault_error201_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 200 response with valid payload: {'httpCode': '201'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: object + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/payloads/200/A/201/C/404/D/default/Error/response/201/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200, 201, 404]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + if response.status_code == 201: + deserialized = self._deserialize('C', response) + if response.status_code == 404: + deserialized = self._deserialize('D', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model_a201_model_c404_model_ddefault_error404_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 200 response with valid payload: {'httpStatusCode': '404'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: object + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/payloads/200/A/201/C/404/D/default/Error/response/404/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200, 201, 404]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + if response.status_code == 201: + deserialized = self._deserialize('C', response) + if response.status_code == 404: + deserialized = self._deserialize('D', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model_a201_model_c404_model_ddefault_error400_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 400 response with valid payload: {'code': '400', 'message': + 'client error'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: object + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/payloads/200/A/201/C/404/D/default/Error/response/400/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200, 201, 404]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + if response.status_code == 201: + deserialized = self._deserialize('C', response) + if response.status_code == 404: + deserialized = self._deserialize('D', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get202_none204_none_default_error202_none( + self, custom_headers=None, raw=False, **operation_config): + """Send a 202 response with no payload. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/payloads/202/none/204/none/default/Error/response/202/none' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [202, 204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get202_none204_none_default_error204_none( + self, custom_headers=None, raw=False, **operation_config): + """Send a 204 response with no payload. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/payloads/202/none/204/none/default/Error/response/204/none' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [202, 204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get202_none204_none_default_error400_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 400 response with valid payload: {'code': '400', 'message': + 'client error'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/http/payloads/202/none/204/none/default/Error/response/400/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [202, 204]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get202_none204_none_default_none202_invalid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 202 response with an unexpected payload {'property': 'value'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/payloads/202/none/204/none/default/none/response/202/invalid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [202, 204]: + raise HttpOperationError(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get202_none204_none_default_none204_none( + self, custom_headers=None, raw=False, **operation_config): + """Send a 204 response with no payload. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/payloads/202/none/204/none/default/none/response/204/none' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [202, 204]: + raise HttpOperationError(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get202_none204_none_default_none400_none( + self, custom_headers=None, raw=False, **operation_config): + """Send a 400 response with no payload. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/payloads/202/none/204/none/default/none/response/400/none' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [202, 204]: + raise HttpOperationError(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get202_none204_none_default_none400_invalid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 400 response with an unexpected payload {'property': 'value'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/payloads/202/none/204/none/default/none/response/400/invalid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [202, 204]: + raise HttpOperationError(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_default_model_a200_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 200 response with valid payload: {'statusCode': '200'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`MyException` + """ + # Construct URL + url = '/http/payloads/default/A/response/200/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.MyException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_default_model_a200_none( + self, custom_headers=None, raw=False, **operation_config): + """Send a 200 response with no payload. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`MyException` + """ + # Construct URL + url = '/http/payloads/default/A/response/200/none' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.MyException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_default_model_a400_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 400 response with valid payload: {'statusCode': '400'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`MyException` + """ + # Construct URL + url = '/http/payloads/default/A/response/400/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.MyException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_default_model_a400_none( + self, custom_headers=None, raw=False, **operation_config): + """Send a 400 response with no payload. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`MyException` + """ + # Construct URL + url = '/http/payloads/default/A/response/400/none' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.MyException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_default_none200_invalid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 200 response with invalid payload: {'statusCode': '200'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/payloads/default/none/response/200/invalid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise HttpOperationError(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_default_none200_none( + self, custom_headers=None, raw=False, **operation_config): + """Send a 200 response with no payload. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/payloads/default/none/response/200/none' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise HttpOperationError(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_default_none400_invalid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 400 response with valid payload: {'statusCode': '400'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/payloads/default/none/response/400/invalid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise HttpOperationError(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_default_none400_none( + self, custom_headers=None, raw=False, **operation_config): + """Send a 400 response with no payload. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/payloads/default/none/response/400/none' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise HttpOperationError(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get200_model_a200_none( + self, custom_headers=None, raw=False, **operation_config): + """Send a 200 response with no payload, when a payload is expected - + client should return a null object of thde type for model A. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/payloads/200/A/response/200/none' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model_a200_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 200 response with payload {'statusCode': '200'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/payloads/200/A/response/200/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model_a200_invalid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 200 response with invalid payload {'statusCodeInvalid': '200'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/payloads/200/A/response/200/invalid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model_a400_none( + self, custom_headers=None, raw=False, **operation_config): + """Send a 400 response with no payload client should treat as an http + error with no error model. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/payloads/200/A/response/400/none' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model_a400_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 200 response with payload {'statusCode': '400'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/payloads/200/A/response/400/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model_a400_invalid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 200 response with invalid payload {'statusCodeInvalid': '400'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/payloads/200/A/response/400/invalid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get200_model_a202_valid( + self, custom_headers=None, raw=False, **operation_config): + """Send a 202 response with payload {'statusCode': '202'}. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`A ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + # Construct URL + url = '/http/payloads/200/A/response/202/valid' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('A', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/autoresthttpinfrastructuretestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/setup.py index 5fa67dc636..e08efb2218 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Http/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autoresthttpinfrastructuretestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestHttpInfrastructureTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestHttpInfrastructureTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autoresthttpinfrastructuretestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestHttpInfrastructureTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestHttpInfrastructureTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/__init__.py index 9622cb808a..f01b0f4d27 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_resource_flattening_test_service import AutoRestResourceFlatteningTestService -from .version import VERSION - -__all__ = ['AutoRestResourceFlatteningTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_resource_flattening_test_service import AutoRestResourceFlatteningTestService +from .version import VERSION + +__all__ = ['AutoRestResourceFlatteningTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/__init__.py index 6bb8abffb1..90382bc8e5 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/__init__.py @@ -1,30 +1,30 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException -from .resource import Resource -from .flattened_product import FlattenedProduct -from .resource_collection import ResourceCollection -from .base_product import BaseProduct -from .simple_product import SimpleProduct -from .generic_url import GenericUrl -from .flatten_parameter_group import FlattenParameterGroup - -__all__ = [ - 'Error', 'ErrorException', - 'Resource', - 'FlattenedProduct', - 'ResourceCollection', - 'BaseProduct', - 'SimpleProduct', - 'GenericUrl', - 'FlattenParameterGroup', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException +from .resource import Resource +from .flattened_product import FlattenedProduct +from .resource_collection import ResourceCollection +from .base_product import BaseProduct +from .simple_product import SimpleProduct +from .generic_url import GenericUrl +from .flatten_parameter_group import FlattenParameterGroup + +__all__ = [ + 'Error', 'ErrorException', + 'Resource', + 'FlattenedProduct', + 'ResourceCollection', + 'BaseProduct', + 'SimpleProduct', + 'GenericUrl', + 'FlattenParameterGroup', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/base_product.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/base_product.py index c9800a57b1..66ae28f538 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/base_product.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/base_product.py @@ -21,7 +21,7 @@ class BaseProduct(Model): :type product_id: str :param description: Description of product. :type description: str - """ + """ _validation = { 'product_id': {'required': True}, diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/error.py index d48300a994..494fd46e09 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/error.py @@ -1,49 +1,49 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - :param parent_error: - :type parent_error: :class:`Error - ` - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - 'parent_error': {'key': 'parentError', 'type': 'Error'}, - } - - def __init__(self, status=None, message=None, parent_error=None): - self.status = status - self.message = message - self.parent_error = parent_error - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + :param parent_error: + :type parent_error: :class:`Error + ` + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + 'parent_error': {'key': 'parentError', 'type': 'Error'}, + } + + def __init__(self, status=None, message=None, parent_error=None): + self.status = status + self.message = message + self.parent_error = parent_error + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/flatten_parameter_group.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/flatten_parameter_group.py index 2f58cfc0a9..3b48afcf42 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/flatten_parameter_group.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/flatten_parameter_group.py @@ -29,7 +29,7 @@ class FlattenParameterGroup(Model): :type generic_value: str :param odatavalue: URL value. :type odatavalue: str - """ + """ _validation = { 'name': {'required': True}, diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/flattened_product.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/flattened_product.py index bd23f50563..81aa956c4c 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/flattened_product.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/flattened_product.py @@ -1,67 +1,67 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class FlattenedProduct(Resource): - """Flattened product. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :ivar type: Resource Type - :vartype type: str - :param tags: - :type tags: dict - :param location: Resource Location - :type location: str - :ivar name: Resource Name - :vartype name: str - :param pname: - :type pname: str - :param flattened_product_type: - :type flattened_product_type: str - :ivar provisioning_state_values: Possible values include: 'Succeeded', - 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', 'Updating', - 'Updated', 'Deleting', 'Deleted', 'OK' - :vartype provisioning_state_values: str - :param provisioning_state: - :type provisioning_state: str - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'name': {'readonly': True}, - 'provisioning_state_values': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'pname': {'key': 'properties.p\\.name', 'type': 'str'}, - 'flattened_product_type': {'key': 'properties.type', 'type': 'str'}, - 'provisioning_state_values': {'key': 'properties.provisioningStateValues', 'type': 'str'}, - 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, - } - - def __init__(self, tags=None, location=None, pname=None, flattened_product_type=None, provisioning_state=None): - super(FlattenedProduct, self).__init__(tags=tags, location=location) - self.pname = pname - self.flattened_product_type = flattened_product_type - self.provisioning_state_values = None - self.provisioning_state = provisioning_state +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class FlattenedProduct(Resource): + """Flattened product. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar type: Resource Type + :vartype type: str + :param tags: + :type tags: dict + :param location: Resource Location + :type location: str + :ivar name: Resource Name + :vartype name: str + :param pname: + :type pname: str + :param flattened_product_type: + :type flattened_product_type: str + :ivar provisioning_state_values: Possible values include: 'Succeeded', + 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', 'Updating', + 'Updated', 'Deleting', 'Deleted', 'OK' + :vartype provisioning_state_values: str + :param provisioning_state: + :type provisioning_state: str + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'name': {'readonly': True}, + 'provisioning_state_values': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'pname': {'key': 'properties.p\\.name', 'type': 'str'}, + 'flattened_product_type': {'key': 'properties.type', 'type': 'str'}, + 'provisioning_state_values': {'key': 'properties.provisioningStateValues', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + } + + def __init__(self, tags=None, location=None, pname=None, flattened_product_type=None, provisioning_state=None): + super(FlattenedProduct, self).__init__(tags=tags, location=location) + self.pname = pname + self.flattened_product_type = flattened_product_type + self.provisioning_state_values = None + self.provisioning_state = provisioning_state diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/generic_url.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/generic_url.py index 9eef3b6f0c..2905d57c0c 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/generic_url.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/generic_url.py @@ -1,27 +1,27 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class GenericUrl(Model): - """The Generic URL. - - :param generic_value: Generic URL value. - :type generic_value: str - """ - - _attribute_map = { - 'generic_value': {'key': 'generic_value', 'type': 'str'}, - } - - def __init__(self, generic_value=None): - self.generic_value = generic_value +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class GenericUrl(Model): + """The Generic URL. + + :param generic_value: Generic URL value. + :type generic_value: str + """ + + _attribute_map = { + 'generic_value': {'key': 'generic_value', 'type': 'str'}, + } + + def __init__(self, generic_value=None): + self.generic_value = generic_value diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/resource.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/resource.py index a58c932f97..65379a95ca 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/resource.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/resource.py @@ -1,52 +1,52 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :ivar type: Resource Type - :vartype type: str - :param tags: - :type tags: dict - :param location: Resource Location - :type location: str - :ivar name: Resource Name - :vartype name: str - """ - - _validation = { - 'id': {'readonly': True}, - 'type': {'readonly': True}, - 'name': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, tags=None, location=None): - self.id = None - self.type = None - self.tags = tags - self.location = location - self.name = None +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar type: Resource Type + :vartype type: str + :param tags: + :type tags: dict + :param location: Resource Location + :type location: str + :ivar name: Resource Name + :vartype name: str + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, tags=None, location=None): + self.id = None + self.type = None + self.tags = tags + self.location = location + self.name = None diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/resource_collection.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/resource_collection.py index 56b2e09dba..5dd23f2e8f 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/resource_collection.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/resource_collection.py @@ -1,37 +1,37 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceCollection(Model): - """ResourceCollection. - - :param productresource: - :type productresource: :class:`FlattenedProduct - ` - :param arrayofresources: - :type arrayofresources: list of :class:`FlattenedProduct - ` - :param dictionaryofresources: - :type dictionaryofresources: dict - """ - - _attribute_map = { - 'productresource': {'key': 'productresource', 'type': 'FlattenedProduct'}, - 'arrayofresources': {'key': 'arrayofresources', 'type': '[FlattenedProduct]'}, - 'dictionaryofresources': {'key': 'dictionaryofresources', 'type': '{FlattenedProduct}'}, - } - - def __init__(self, productresource=None, arrayofresources=None, dictionaryofresources=None): - self.productresource = productresource - self.arrayofresources = arrayofresources - self.dictionaryofresources = dictionaryofresources +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ResourceCollection(Model): + """ResourceCollection. + + :param productresource: + :type productresource: :class:`FlattenedProduct + ` + :param arrayofresources: + :type arrayofresources: list of :class:`FlattenedProduct + ` + :param dictionaryofresources: + :type dictionaryofresources: dict + """ + + _attribute_map = { + 'productresource': {'key': 'productresource', 'type': 'FlattenedProduct'}, + 'arrayofresources': {'key': 'arrayofresources', 'type': '[FlattenedProduct]'}, + 'dictionaryofresources': {'key': 'dictionaryofresources', 'type': '{FlattenedProduct}'}, + } + + def __init__(self, productresource=None, arrayofresources=None, dictionaryofresources=None): + self.productresource = productresource + self.arrayofresources = arrayofresources + self.dictionaryofresources = dictionaryofresources diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/simple_product.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/simple_product.py index e15fb4b83f..969254d841 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/simple_product.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/models/simple_product.py @@ -33,7 +33,7 @@ class SimpleProduct(BaseProduct): :type generic_value: str :param odatavalue: URL value. :type odatavalue: str - """ + """ _validation = { 'product_id': {'required': True}, diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/autorestresourceflatteningtestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/setup.py index 47796248bb..326c330b62 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ModelFlattening/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestresourceflatteningtestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestResourceFlatteningTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestResourceFlatteningTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Resource Flattening for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestresourceflatteningtestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestResourceFlatteningTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestResourceFlatteningTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Resource Flattening for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/__init__.py index 9146903f60..eb1fb871fd 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_parameter_flattening import AutoRestParameterFlattening -from .version import VERSION - -__all__ = ['AutoRestParameterFlattening'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_parameter_flattening import AutoRestParameterFlattening +from .version import VERSION + +__all__ = ['AutoRestParameterFlattening'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/auto_rest_parameter_flattening.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/auto_rest_parameter_flattening.py index f7128e8126..510e5966ef 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/auto_rest_parameter_flattening.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/auto_rest_parameter_flattening.py @@ -1,64 +1,64 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from msrest.exceptions import HttpOperationError -from .operations.availability_sets_operations import AvailabilitySetsOperations -from . import models - - -class AutoRestParameterFlatteningConfiguration(Configuration): - """Configuration for AutoRestParameterFlattening - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'http://localhost' - - super(AutoRestParameterFlatteningConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestparameterflattening/{}'.format(VERSION)) - - -class AutoRestParameterFlattening(object): - """Resource Flattening for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestParameterFlatteningConfiguration - - :ivar availability_sets: AvailabilitySets operations - :vartype availability_sets: .operations.AvailabilitySetsOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestParameterFlatteningConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.availability_sets = AvailabilitySetsOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from msrest.exceptions import HttpOperationError +from .operations.availability_sets_operations import AvailabilitySetsOperations +from . import models + + +class AutoRestParameterFlatteningConfiguration(Configuration): + """Configuration for AutoRestParameterFlattening + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'http://localhost' + + super(AutoRestParameterFlatteningConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestparameterflattening/{}'.format(VERSION)) + + +class AutoRestParameterFlattening(object): + """Resource Flattening for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestParameterFlatteningConfiguration + + :ivar availability_sets: AvailabilitySets operations + :vartype availability_sets: .operations.AvailabilitySetsOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestParameterFlatteningConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.availability_sets = AvailabilitySetsOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/models/__init__.py index c19fb1966e..5fd66ff19e 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .availability_set_update_parameters import AvailabilitySetUpdateParameters - -__all__ = [ - 'AvailabilitySetUpdateParameters', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .availability_set_update_parameters import AvailabilitySetUpdateParameters + +__all__ = [ + 'AvailabilitySetUpdateParameters', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/models/availability_set_update_parameters.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/models/availability_set_update_parameters.py index 839938d01c..5ee250cea6 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/models/availability_set_update_parameters.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/models/availability_set_update_parameters.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class AvailabilitySetUpdateParameters(Model): - """AvailabilitySetUpdateParameters. - - :param tags: A set of tags. A description about the set of tags. - :type tags: dict - """ - - _validation = { - 'tags': {'required': True}, - } - - _attribute_map = { - 'tags': {'key': 'tags', 'type': '{str}'}, - } - - def __init__(self, tags): - self.tags = tags +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AvailabilitySetUpdateParameters(Model): + """AvailabilitySetUpdateParameters. + + :param tags: A set of tags. A description about the set of tags. + :type tags: dict + """ + + _validation = { + 'tags': {'required': True}, + } + + _attribute_map = { + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, tags): + self.tags = tags diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/operations/__init__.py index 72caf42389..0c48fc6d9d 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .availability_sets_operations import AvailabilitySetsOperations - -__all__ = [ - 'AvailabilitySetsOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .availability_sets_operations import AvailabilitySetsOperations + +__all__ = [ + 'AvailabilitySetsOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/operations/availability_sets_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/operations/availability_sets_operations.py index 0053320cbd..62e83858ee 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/operations/availability_sets_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/operations/availability_sets_operations.py @@ -1,88 +1,88 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse -from msrest.exceptions import HttpOperationError - -from .. import models - - -class AvailabilitySetsOperations(object): - """AvailabilitySetsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def update( - self, resource_group_name, avset, tags, custom_headers=None, raw=False, **operation_config): - """Updates the tags for an availability set. - - :param resource_group_name: The name of the resource group. - :type resource_group_name: str - :param avset: The name of the storage availability set. - :type avset: str - :param tags: A set of tags. A description about the set of tags. - :type tags: dict - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - tags1 = models.AvailabilitySetUpdateParameters(tags=tags) - - # Construct URL - url = '/parameterFlattening/{resourceGroupName}/{availabilitySetName}' - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), - 'availabilitySetName': self._serialize.url("avset", avset, 'str', max_length=80) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - body_content = self._serialize.body(tags1, 'AvailabilitySetUpdateParameters') - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse +from msrest.exceptions import HttpOperationError + +from .. import models + + +class AvailabilitySetsOperations(object): + """AvailabilitySetsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def update( + self, resource_group_name, avset, tags, custom_headers=None, raw=False, **operation_config): + """Updates the tags for an availability set. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param avset: The name of the storage availability set. + :type avset: str + :param tags: A set of tags. A description about the set of tags. + :type tags: dict + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + tags1 = models.AvailabilitySetUpdateParameters(tags=tags) + + # Construct URL + url = '/parameterFlattening/{resourceGroupName}/{availabilitySetName}' + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'availabilitySetName': self._serialize.url("avset", avset, 'str', max_length=80) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + body_content = self._serialize.body(tags1, 'AvailabilitySetUpdateParameters') + + # Construct and send request + request = self._client.patch(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/autorestparameterflattening/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/setup.py index eba06bbe5b..1e6900d3ef 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/ParameterFlattening/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestparameterflattening" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestParameterFlattening", - author_email="", - url="", - keywords=["Swagger", "AutoRestParameterFlattening"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Resource Flattening for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestparameterflattening" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestParameterFlattening", + author_email="", + url="", + keywords=["Swagger", "AutoRestParameterFlattening"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Resource Flattening for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/__init__.py index 65ba5a8115..22573b1921 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_report_service import AutoRestReportService -from .version import VERSION - -__all__ = ['AutoRestReportService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_report_service import AutoRestReportService +from .version import VERSION + +__all__ = ['AutoRestReportService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/auto_rest_report_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/auto_rest_report_service.py index f1a12ad156..5db50baaf0 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/auto_rest_report_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/auto_rest_report_service.py @@ -1,103 +1,103 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from msrest.pipeline import ClientRawResponse -from . import models - - -class AutoRestReportServiceConfiguration(Configuration): - """Configuration for AutoRestReportService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'http://localhost' - - super(AutoRestReportServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestreportservice/{}'.format(VERSION)) - - -class AutoRestReportService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestReportServiceConfiguration - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestReportServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - - def get_report( - self, custom_headers=None, raw=False, **operation_config): - """Get test coverage report. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: dict - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/report' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('{int}', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from msrest.pipeline import ClientRawResponse +from . import models + + +class AutoRestReportServiceConfiguration(Configuration): + """Configuration for AutoRestReportService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'http://localhost' + + super(AutoRestReportServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestreportservice/{}'.format(VERSION)) + + +class AutoRestReportService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestReportServiceConfiguration + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestReportServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + + def get_report( + self, custom_headers=None, raw=False, **operation_config): + """Get test coverage report. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: dict + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/report' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('{int}', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/autorestreportservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/setup.py index b0c80aeaaf..ff3a17c58c 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Report/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestreportservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestReportService", - author_email="", - url="", - keywords=["Swagger", "AutoRestReportService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestreportservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestReportService", + author_email="", + url="", + keywords=["Swagger", "AutoRestReportService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/__init__.py index fd63c710dd..23a6ed29f5 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_required_optional_test_service import AutoRestRequiredOptionalTestService -from .version import VERSION - -__all__ = ['AutoRestRequiredOptionalTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_required_optional_test_service import AutoRestRequiredOptionalTestService +from .version import VERSION + +__all__ = ['AutoRestRequiredOptionalTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/auto_rest_required_optional_test_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/auto_rest_required_optional_test_service.py index e831a630dc..aaead814da 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/auto_rest_required_optional_test_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/auto_rest_required_optional_test_service.py @@ -1,92 +1,92 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.implicit_operations import ImplicitOperations -from .operations.explicit_operations import ExplicitOperations -from . import models - - -class AutoRestRequiredOptionalTestServiceConfiguration(Configuration): - """Configuration for AutoRestRequiredOptionalTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param required_global_path: number of items to skip - :type required_global_path: str - :param required_global_query: number of items to skip - :type required_global_query: str - :param optional_global_query: number of items to skip - :type optional_global_query: int - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, required_global_path, required_global_query, optional_global_query=None, base_url=None, filepath=None): - - if required_global_path is None: - raise ValueError("Parameter 'required_global_path' must not be None.") - if not isinstance(required_global_path, str): - raise TypeError("Parameter 'required_global_path' must be str.") - if required_global_query is None: - raise ValueError("Parameter 'required_global_query' must not be None.") - if not isinstance(required_global_query, str): - raise TypeError("Parameter 'required_global_query' must be str.") - if not base_url: - base_url = 'http://localhost' - - super(AutoRestRequiredOptionalTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestrequiredoptionaltestservice/{}'.format(VERSION)) - - self.required_global_path = required_global_path - self.required_global_query = required_global_query - self.optional_global_query = optional_global_query - - -class AutoRestRequiredOptionalTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestRequiredOptionalTestServiceConfiguration - - :ivar implicit: Implicit operations - :vartype implicit: .operations.ImplicitOperations - :ivar explicit: Explicit operations - :vartype explicit: .operations.ExplicitOperations - - :param required_global_path: number of items to skip - :type required_global_path: str - :param required_global_query: number of items to skip - :type required_global_query: str - :param optional_global_query: number of items to skip - :type optional_global_query: int - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, required_global_path, required_global_query, optional_global_query=None, base_url=None, filepath=None): - - self.config = AutoRestRequiredOptionalTestServiceConfiguration(required_global_path, required_global_query, optional_global_query, base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.implicit = ImplicitOperations( - self._client, self.config, self._serialize, self._deserialize) - self.explicit = ExplicitOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.implicit_operations import ImplicitOperations +from .operations.explicit_operations import ExplicitOperations +from . import models + + +class AutoRestRequiredOptionalTestServiceConfiguration(Configuration): + """Configuration for AutoRestRequiredOptionalTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param required_global_path: number of items to skip + :type required_global_path: str + :param required_global_query: number of items to skip + :type required_global_query: str + :param optional_global_query: number of items to skip + :type optional_global_query: int + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, required_global_path, required_global_query, optional_global_query=None, base_url=None, filepath=None): + + if required_global_path is None: + raise ValueError("Parameter 'required_global_path' must not be None.") + if not isinstance(required_global_path, str): + raise TypeError("Parameter 'required_global_path' must be str.") + if required_global_query is None: + raise ValueError("Parameter 'required_global_query' must not be None.") + if not isinstance(required_global_query, str): + raise TypeError("Parameter 'required_global_query' must be str.") + if not base_url: + base_url = 'http://localhost' + + super(AutoRestRequiredOptionalTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestrequiredoptionaltestservice/{}'.format(VERSION)) + + self.required_global_path = required_global_path + self.required_global_query = required_global_query + self.optional_global_query = optional_global_query + + +class AutoRestRequiredOptionalTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestRequiredOptionalTestServiceConfiguration + + :ivar implicit: Implicit operations + :vartype implicit: .operations.ImplicitOperations + :ivar explicit: Explicit operations + :vartype explicit: .operations.ExplicitOperations + + :param required_global_path: number of items to skip + :type required_global_path: str + :param required_global_query: number of items to skip + :type required_global_query: str + :param optional_global_query: number of items to skip + :type optional_global_query: int + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, required_global_path, required_global_query, optional_global_query=None, base_url=None, filepath=None): + + self.config = AutoRestRequiredOptionalTestServiceConfiguration(required_global_path, required_global_query, optional_global_query, base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.implicit = ImplicitOperations( + self._client, self.config, self._serialize, self._deserialize) + self.explicit = ExplicitOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/__init__.py index b092c6d9c4..55b16eb41c 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/__init__.py @@ -1,34 +1,34 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException -from .int_wrapper import IntWrapper -from .int_optional_wrapper import IntOptionalWrapper -from .string_wrapper import StringWrapper -from .string_optional_wrapper import StringOptionalWrapper -from .array_wrapper import ArrayWrapper -from .array_optional_wrapper import ArrayOptionalWrapper -from .class_wrapper import ClassWrapper -from .product import Product -from .class_optional_wrapper import ClassOptionalWrapper - -__all__ = [ - 'Error', 'ErrorException', - 'IntWrapper', - 'IntOptionalWrapper', - 'StringWrapper', - 'StringOptionalWrapper', - 'ArrayWrapper', - 'ArrayOptionalWrapper', - 'ClassWrapper', - 'Product', - 'ClassOptionalWrapper', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException +from .int_wrapper import IntWrapper +from .int_optional_wrapper import IntOptionalWrapper +from .string_wrapper import StringWrapper +from .string_optional_wrapper import StringOptionalWrapper +from .array_wrapper import ArrayWrapper +from .array_optional_wrapper import ArrayOptionalWrapper +from .product import Product +from .class_wrapper import ClassWrapper +from .class_optional_wrapper import ClassOptionalWrapper + +__all__ = [ + 'Error', 'ErrorException', + 'IntWrapper', + 'IntOptionalWrapper', + 'StringWrapper', + 'StringOptionalWrapper', + 'ArrayWrapper', + 'ArrayOptionalWrapper', + 'Product', + 'ClassWrapper', + 'ClassOptionalWrapper', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/array_optional_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/array_optional_wrapper.py index 12c64097f6..720f52328b 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/array_optional_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/array_optional_wrapper.py @@ -1,27 +1,27 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ArrayOptionalWrapper(Model): - """ArrayOptionalWrapper. - - :param value: - :type value: list of str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': '[str]'}, - } - - def __init__(self, value=None): - self.value = value +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ArrayOptionalWrapper(Model): + """ArrayOptionalWrapper. + + :param value: + :type value: list of str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': '[str]'}, + } + + def __init__(self, value=None): + self.value = value diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/array_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/array_wrapper.py index 932341db00..9aed618337 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/array_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/array_wrapper.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ArrayWrapper(Model): - """ArrayWrapper. - - :param value: - :type value: list of str - """ - - _validation = { - 'value': {'required': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': '[str]'}, - } - - def __init__(self, value): - self.value = value +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ArrayWrapper(Model): + """ArrayWrapper. + + :param value: + :type value: list of str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': '[str]'}, + } + + def __init__(self, value): + self.value = value diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/class_optional_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/class_optional_wrapper.py index 7889783a21..af9084b3c6 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/class_optional_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/class_optional_wrapper.py @@ -1,28 +1,28 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClassOptionalWrapper(Model): - """ClassOptionalWrapper. - - :param value: - :type value: :class:`Product - ` - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'Product'}, - } - - def __init__(self, value=None): - self.value = value +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ClassOptionalWrapper(Model): + """ClassOptionalWrapper. + + :param value: + :type value: :class:`Product + ` + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'Product'}, + } + + def __init__(self, value=None): + self.value = value diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/class_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/class_wrapper.py index e14d62c87b..904d4693af 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/class_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/class_wrapper.py @@ -1,32 +1,32 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ClassWrapper(Model): - """ClassWrapper. - - :param value: - :type value: :class:`Product - ` - """ - - _validation = { - 'value': {'required': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': 'Product'}, - } - - def __init__(self, value): - self.value = value +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ClassWrapper(Model): + """ClassWrapper. + + :param value: + :type value: :class:`Product + ` + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'Product'}, + } + + def __init__(self, value): + self.value = value diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/int_optional_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/int_optional_wrapper.py index defb24dc05..8c74e017ab 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/int_optional_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/int_optional_wrapper.py @@ -1,27 +1,27 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class IntOptionalWrapper(Model): - """IntOptionalWrapper. - - :param value: - :type value: int - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'int'}, - } - - def __init__(self, value=None): - self.value = value +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class IntOptionalWrapper(Model): + """IntOptionalWrapper. + + :param value: + :type value: int + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'int'}, + } + + def __init__(self, value=None): + self.value = value diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/int_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/int_wrapper.py index 04149e1d94..fcd1dc74b9 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/int_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/int_wrapper.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class IntWrapper(Model): - """IntWrapper. - - :param value: - :type value: int - """ - - _validation = { - 'value': {'required': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': 'int'}, - } - - def __init__(self, value): - self.value = value +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class IntWrapper(Model): + """IntWrapper. + + :param value: + :type value: int + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'int'}, + } + + def __init__(self, value): + self.value = value diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/product.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/product.py index 002bb57868..6b586a3925 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/product.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/product.py @@ -1,35 +1,35 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Product(Model): - """Product. - - :param id: - :type id: int - :param name: - :type name: str - """ - - _validation = { - 'id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'int'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, id, name=None): - self.id = id - self.name = name +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Product(Model): + """Product. + + :param id: + :type id: int + :param name: + :type name: str + """ + + _validation = { + 'id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'int'}, + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, id, name=None): + self.id = id + self.name = name diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/string_optional_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/string_optional_wrapper.py index b9b758810f..dc90488606 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/string_optional_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/string_optional_wrapper.py @@ -1,27 +1,27 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StringOptionalWrapper(Model): - """StringOptionalWrapper. - - :param value: - :type value: str - """ - - _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, value=None): - self.value = value +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class StringOptionalWrapper(Model): + """StringOptionalWrapper. + + :param value: + :type value: str + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, value=None): + self.value = value diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/string_wrapper.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/string_wrapper.py index 38cea09a83..b2701017c4 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/string_wrapper.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/models/string_wrapper.py @@ -1,31 +1,31 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StringWrapper(Model): - """StringWrapper. - - :param value: - :type value: str - """ - - _validation = { - 'value': {'required': True}, - } - - _attribute_map = { - 'value': {'key': 'value', 'type': 'str'}, - } - - def __init__(self, value): - self.value = value +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class StringWrapper(Model): + """StringWrapper. + + :param value: + :type value: str + """ + + _validation = { + 'value': {'required': True}, + } + + _attribute_map = { + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, value): + self.value = value diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/operations/__init__.py index 8db6e4b3f5..69ac89601e 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/operations/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .implicit_operations import ImplicitOperations -from .explicit_operations import ExplicitOperations - -__all__ = [ - 'ImplicitOperations', - 'ExplicitOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .implicit_operations import ImplicitOperations +from .explicit_operations import ExplicitOperations + +__all__ = [ + 'ImplicitOperations', + 'ExplicitOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/operations/implicit_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/operations/implicit_operations.py index a64267f712..507d63bfa1 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/operations/implicit_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/operations/implicit_operations.py @@ -1,332 +1,332 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class ImplicitOperations(object): - """ImplicitOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def get_required_path( - self, path_parameter, custom_headers=None, raw=False, **operation_config): - """Test implicitly required path parameter. - - :param path_parameter: - :type path_parameter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/reqopt/implicit/required/path/{pathParameter}' - path_format_arguments = { - 'pathParameter': self._serialize.url("path_parameter", path_parameter, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def put_optional_query( - self, query_parameter=None, custom_headers=None, raw=False, **operation_config): - """Test implicitly optional query parameter. - - :param query_parameter: - :type query_parameter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/reqopt/implicit/optional/query' - - # Construct parameters - query_parameters = {} - if query_parameter is not None: - query_parameters['queryParameter'] = self._serialize.query("query_parameter", query_parameter, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def put_optional_header( - self, query_parameter=None, custom_headers=None, raw=False, **operation_config): - """Test implicitly optional header parameter. - - :param query_parameter: - :type query_parameter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/reqopt/implicit/optional/header' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - if query_parameter is not None: - header_parameters['queryParameter'] = self._serialize.header("query_parameter", query_parameter, 'str') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def put_optional_body( - self, body_parameter=None, custom_headers=None, raw=False, **operation_config): - """Test implicitly optional body parameter. - - :param body_parameter: - :type body_parameter: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/reqopt/implicit/optional/body' - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if body_parameter is not None: - body_content = self._serialize.body(body_parameter, 'str') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_required_global_path( - self, custom_headers=None, raw=False, **operation_config): - """Test implicitly required path parameter. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/reqopt/global/required/path/{required-global-path}' - path_format_arguments = { - 'required-global-path': self._serialize.url("self.config.required_global_path", self.config.required_global_path, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_required_global_query( - self, custom_headers=None, raw=False, **operation_config): - """Test implicitly required query parameter. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/reqopt/global/required/query' - - # Construct parameters - query_parameters = {} - query_parameters['required-global-query'] = self._serialize.query("self.config.required_global_query", self.config.required_global_query, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_optional_global_query( - self, custom_headers=None, raw=False, **operation_config): - """Test implicitly optional query parameter. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Error - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/reqopt/global/optional/query' - - # Construct parameters - query_parameters = {} - if self.config.optional_global_query is not None: - query_parameters['optional-global-query'] = self._serialize.query("self.config.optional_global_query", self.config.optional_global_query, 'int') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code < 200 or response.status_code >= 300: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class ImplicitOperations(object): + """ImplicitOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def get_required_path( + self, path_parameter, custom_headers=None, raw=False, **operation_config): + """Test implicitly required path parameter. + + :param path_parameter: + :type path_parameter: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/reqopt/implicit/required/path/{pathParameter}' + path_format_arguments = { + 'pathParameter': self._serialize.url("path_parameter", path_parameter, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def put_optional_query( + self, query_parameter=None, custom_headers=None, raw=False, **operation_config): + """Test implicitly optional query parameter. + + :param query_parameter: + :type query_parameter: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/reqopt/implicit/optional/query' + + # Construct parameters + query_parameters = {} + if query_parameter is not None: + query_parameters['queryParameter'] = self._serialize.query("query_parameter", query_parameter, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def put_optional_header( + self, query_parameter=None, custom_headers=None, raw=False, **operation_config): + """Test implicitly optional header parameter. + + :param query_parameter: + :type query_parameter: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/reqopt/implicit/optional/header' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + if query_parameter is not None: + header_parameters['queryParameter'] = self._serialize.header("query_parameter", query_parameter, 'str') + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def put_optional_body( + self, body_parameter=None, custom_headers=None, raw=False, **operation_config): + """Test implicitly optional body parameter. + + :param body_parameter: + :type body_parameter: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/reqopt/implicit/optional/body' + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if body_parameter is not None: + body_content = self._serialize.body(body_parameter, 'str') + else: + body_content = None + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_required_global_path( + self, custom_headers=None, raw=False, **operation_config): + """Test implicitly required path parameter. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/reqopt/global/required/path/{required-global-path}' + path_format_arguments = { + 'required-global-path': self._serialize.url("self.config.required_global_path", self.config.required_global_path, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_required_global_query( + self, custom_headers=None, raw=False, **operation_config): + """Test implicitly required query parameter. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/reqopt/global/required/query' + + # Construct parameters + query_parameters = {} + query_parameters['required-global-query'] = self._serialize.query("self.config.required_global_query", self.config.required_global_query, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_optional_global_query( + self, custom_headers=None, raw=False, **operation_config): + """Test implicitly optional query parameter. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Error + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/reqopt/global/optional/query' + + # Construct parameters + query_parameters = {} + if self.config.optional_global_query is not None: + query_parameters['optional-global-query'] = self._serialize.query("self.config.optional_global_query", self.config.optional_global_query, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code < 200 or response.status_code >= 300: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/autorestrequiredoptionaltestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/setup.py index 8d22ad4758..14f66afcfb 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/RequiredOptional/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestrequiredoptionaltestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestRequiredOptionalTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestRequiredOptionalTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestrequiredoptionaltestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestRequiredOptionalTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestRequiredOptionalTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/__init__.py index e41ba1a52c..523c4f1401 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_url_test_service import AutoRestUrlTestService -from .version import VERSION - -__all__ = ['AutoRestUrlTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_url_test_service import AutoRestUrlTestService +from .version import VERSION + +__all__ = ['AutoRestUrlTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/auto_rest_url_test_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/auto_rest_url_test_service.py index 0e5aa570eb..9e28b43bcf 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/auto_rest_url_test_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/auto_rest_url_test_service.py @@ -1,92 +1,92 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.paths_operations import PathsOperations -from .operations.queries_operations import QueriesOperations -from .operations.path_items_operations import PathItemsOperations -from . import models - - -class AutoRestUrlTestServiceConfiguration(Configuration): - """Configuration for AutoRestUrlTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param global_string_path: A string value 'globalItemStringPath' that - appears in the path - :type global_string_path: str - :param global_string_query: should contain value null - :type global_string_query: str - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, global_string_path, global_string_query=None, base_url=None, filepath=None): - - if global_string_path is None: - raise ValueError("Parameter 'global_string_path' must not be None.") - if not isinstance(global_string_path, str): - raise TypeError("Parameter 'global_string_path' must be str.") - if global_string_query is not None and not isinstance(global_string_query, str): - raise TypeError("Optional parameter 'global_string_query' must be str.") - if not base_url: - base_url = 'http://localhost' - - super(AutoRestUrlTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autoresturltestservice/{}'.format(VERSION)) - - self.global_string_path = global_string_path - self.global_string_query = global_string_query - - -class AutoRestUrlTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestUrlTestServiceConfiguration - - :ivar paths: Paths operations - :vartype paths: .operations.PathsOperations - :ivar queries: Queries operations - :vartype queries: .operations.QueriesOperations - :ivar path_items: PathItems operations - :vartype path_items: .operations.PathItemsOperations - - :param global_string_path: A string value 'globalItemStringPath' that - appears in the path - :type global_string_path: str - :param global_string_query: should contain value null - :type global_string_query: str - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, global_string_path, global_string_query=None, base_url=None, filepath=None): - - self.config = AutoRestUrlTestServiceConfiguration(global_string_path, global_string_query, base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.paths = PathsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.queries = QueriesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.path_items = PathItemsOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.paths_operations import PathsOperations +from .operations.queries_operations import QueriesOperations +from .operations.path_items_operations import PathItemsOperations +from . import models + + +class AutoRestUrlTestServiceConfiguration(Configuration): + """Configuration for AutoRestUrlTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param global_string_path: A string value 'globalItemStringPath' that + appears in the path + :type global_string_path: str + :param global_string_query: should contain value null + :type global_string_query: str + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, global_string_path, global_string_query=None, base_url=None, filepath=None): + + if global_string_path is None: + raise ValueError("Parameter 'global_string_path' must not be None.") + if not isinstance(global_string_path, str): + raise TypeError("Parameter 'global_string_path' must be str.") + if global_string_query is not None and not isinstance(global_string_query, str): + raise TypeError("Optional parameter 'global_string_query' must be str.") + if not base_url: + base_url = 'http://localhost' + + super(AutoRestUrlTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autoresturltestservice/{}'.format(VERSION)) + + self.global_string_path = global_string_path + self.global_string_query = global_string_query + + +class AutoRestUrlTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestUrlTestServiceConfiguration + + :ivar paths: Paths operations + :vartype paths: .operations.PathsOperations + :ivar queries: Queries operations + :vartype queries: .operations.QueriesOperations + :ivar path_items: PathItems operations + :vartype path_items: .operations.PathItemsOperations + + :param global_string_path: A string value 'globalItemStringPath' that + appears in the path + :type global_string_path: str + :param global_string_query: should contain value null + :type global_string_query: str + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, global_string_path, global_string_query=None, base_url=None, filepath=None): + + self.config = AutoRestUrlTestServiceConfiguration(global_string_path, global_string_query, base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.paths = PathsOperations( + self._client, self.config, self._serialize, self._deserialize) + self.queries = QueriesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.path_items = PathItemsOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/models/__init__.py index 419eb9da62..9aeb94aa63 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/models/__init__.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException -from .auto_rest_url_test_service_enums import ( - UriColor, -) - -__all__ = [ - 'Error', 'ErrorException', - 'UriColor', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException +from .auto_rest_url_test_service_enums import ( + UriColor, +) + +__all__ = [ + 'Error', 'ErrorException', + 'UriColor', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/models/auto_rest_url_test_service_enums.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/models/auto_rest_url_test_service_enums.py index 0d16ff4001..39ff4c6647 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/models/auto_rest_url_test_service_enums.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/models/auto_rest_url_test_service_enums.py @@ -1,19 +1,19 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum - - -class UriColor(Enum): - - redcolor = "red color" - greencolor = "green color" - bluecolor = "blue color" +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum + + +class UriColor(Enum): + + redcolor = "red color" + greencolor = "green color" + bluecolor = "blue color" diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/operations/__init__.py index 66a203b761..9041248170 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/operations/__init__.py @@ -1,20 +1,20 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .paths_operations import PathsOperations -from .queries_operations import QueriesOperations -from .path_items_operations import PathItemsOperations - -__all__ = [ - 'PathsOperations', - 'QueriesOperations', - 'PathItemsOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .paths_operations import PathsOperations +from .queries_operations import QueriesOperations +from .path_items_operations import PathItemsOperations + +__all__ = [ + 'PathsOperations', + 'QueriesOperations', + 'PathItemsOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/operations/queries_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/operations/queries_operations.py index 1d78a0b147..b4b80d2027 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/operations/queries_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/operations/queries_operations.py @@ -1,1458 +1,1458 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class QueriesOperations(object): - """QueriesOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar byte_query: '' as byte array - :ivar date_query: '2012-01-01' as date. Constant value: "2012-01-01". - :ivar date_time_query: '2012-01-01T01:01:01Z' as date-time. Constant value: "2012-01-01T01:01:01Z". - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - self.byte_query = bytearray("", encoding="utf-8") - self.date_query = "2012-01-01" - self.date_time_query = "2012-01-01T01:01:01Z" - - def get_boolean_true( - self, custom_headers=None, raw=False, **operation_config): - """Get true Boolean value on path. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - bool_query = True - - # Construct URL - url = '/queries/bool/true' - - # Construct parameters - query_parameters = {} - query_parameters['boolQuery'] = self._serialize.query("bool_query", bool_query, 'bool') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_boolean_false( - self, custom_headers=None, raw=False, **operation_config): - """Get false Boolean value on path. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - bool_query = False - - # Construct URL - url = '/queries/bool/false' - - # Construct parameters - query_parameters = {} - query_parameters['boolQuery'] = self._serialize.query("bool_query", bool_query, 'bool') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_boolean_null( - self, bool_query=None, custom_headers=None, raw=False, **operation_config): - """Get null Boolean value on query (query string should be absent). - - :param bool_query: null boolean value - :type bool_query: bool - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/bool/null' - - # Construct parameters - query_parameters = {} - if bool_query is not None: - query_parameters['boolQuery'] = self._serialize.query("bool_query", bool_query, 'bool') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_int_one_million( - self, custom_headers=None, raw=False, **operation_config): - """Get '1000000' integer value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - int_query = 1000000 - - # Construct URL - url = '/queries/int/1000000' - - # Construct parameters - query_parameters = {} - query_parameters['intQuery'] = self._serialize.query("int_query", int_query, 'int') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_int_negative_one_million( - self, custom_headers=None, raw=False, **operation_config): - """Get '-1000000' integer value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - int_query = -1000000 - - # Construct URL - url = '/queries/int/-1000000' - - # Construct parameters - query_parameters = {} - query_parameters['intQuery'] = self._serialize.query("int_query", int_query, 'int') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_int_null( - self, int_query=None, custom_headers=None, raw=False, **operation_config): - """Get null integer value (no query parameter). - - :param int_query: null integer value - :type int_query: int - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/int/null' - - # Construct parameters - query_parameters = {} - if int_query is not None: - query_parameters['intQuery'] = self._serialize.query("int_query", int_query, 'int') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_ten_billion( - self, custom_headers=None, raw=False, **operation_config): - """Get '10000000000' 64 bit integer value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - long_query = 10000000000 - - # Construct URL - url = '/queries/long/10000000000' - - # Construct parameters - query_parameters = {} - query_parameters['longQuery'] = self._serialize.query("long_query", long_query, 'long') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_negative_ten_billion( - self, custom_headers=None, raw=False, **operation_config): - """Get '-10000000000' 64 bit integer value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - long_query = -10000000000 - - # Construct URL - url = '/queries/long/-10000000000' - - # Construct parameters - query_parameters = {} - query_parameters['longQuery'] = self._serialize.query("long_query", long_query, 'long') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_long_null( - self, long_query=None, custom_headers=None, raw=False, **operation_config): - """Get 'null 64 bit integer value (no query param in uri). - - :param long_query: null 64 bit integer value - :type long_query: long - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/long/null' - - # Construct parameters - query_parameters = {} - if long_query is not None: - query_parameters['longQuery'] = self._serialize.query("long_query", long_query, 'long') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def float_scientific_positive( - self, custom_headers=None, raw=False, **operation_config): - """Get '1.034E+20' numeric value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - float_query = 1.034E+20 - - # Construct URL - url = '/queries/float/1.034E+20' - - # Construct parameters - query_parameters = {} - query_parameters['floatQuery'] = self._serialize.query("float_query", float_query, 'float') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def float_scientific_negative( - self, custom_headers=None, raw=False, **operation_config): - """Get '-1.034E-20' numeric value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - float_query = -1.034E-20 - - # Construct URL - url = '/queries/float/-1.034E-20' - - # Construct parameters - query_parameters = {} - query_parameters['floatQuery'] = self._serialize.query("float_query", float_query, 'float') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def float_null( - self, float_query=None, custom_headers=None, raw=False, **operation_config): - """Get null numeric value (no query parameter). - - :param float_query: null numeric value - :type float_query: float - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/float/null' - - # Construct parameters - query_parameters = {} - if float_query is not None: - query_parameters['floatQuery'] = self._serialize.query("float_query", float_query, 'float') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def double_decimal_positive( - self, custom_headers=None, raw=False, **operation_config): - """Get '9999999.999' numeric value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - double_query = 9999999.999 - - # Construct URL - url = '/queries/double/9999999.999' - - # Construct parameters - query_parameters = {} - query_parameters['doubleQuery'] = self._serialize.query("double_query", double_query, 'float') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def double_decimal_negative( - self, custom_headers=None, raw=False, **operation_config): - """Get '-9999999.999' numeric value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - double_query = -9999999.999 - - # Construct URL - url = '/queries/double/-9999999.999' - - # Construct parameters - query_parameters = {} - query_parameters['doubleQuery'] = self._serialize.query("double_query", double_query, 'float') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def double_null( - self, double_query=None, custom_headers=None, raw=False, **operation_config): - """Get null numeric value (no query parameter). - - :param double_query: null numeric value - :type double_query: float - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/double/null' - - # Construct parameters - query_parameters = {} - if double_query is not None: - query_parameters['doubleQuery'] = self._serialize.query("double_query", double_query, 'float') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def string_unicode( - self, custom_headers=None, raw=False, **operation_config): - """Get '啊齄丂狛狜隣郎隣兀﨩' multi-byte string value. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - string_query = "啊齄丂狛狜隣郎隣兀﨩" - - # Construct URL - url = '/queries/string/unicode/' - - # Construct parameters - query_parameters = {} - query_parameters['stringQuery'] = self._serialize.query("string_query", string_query, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def string_url_encoded( - self, custom_headers=None, raw=False, **operation_config): - """Get 'begin!*'();:@ &=+$,/?#[]end. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - string_query = "begin!*'();:@ &=+$,/?#[]end" - - # Construct URL - url = '/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend' - - # Construct parameters - query_parameters = {} - query_parameters['stringQuery'] = self._serialize.query("string_query", string_query, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def string_empty( - self, custom_headers=None, raw=False, **operation_config): - """Get ''. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - string_query = "" - - # Construct URL - url = '/queries/string/empty' - - # Construct parameters - query_parameters = {} - query_parameters['stringQuery'] = self._serialize.query("string_query", string_query, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def string_null( - self, string_query=None, custom_headers=None, raw=False, **operation_config): - """Get null (no query parameter in url). - - :param string_query: null string value - :type string_query: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/string/null' - - # Construct parameters - query_parameters = {} - if string_query is not None: - query_parameters['stringQuery'] = self._serialize.query("string_query", string_query, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def enum_valid( - self, enum_query=None, custom_headers=None, raw=False, **operation_config): - """Get using uri with query parameter 'green color'. - - :param enum_query: 'green color' enum value. Possible values include: - 'red color', 'green color', 'blue color' - :type enum_query: str or :class:`UriColor - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/enum/green%20color' - - # Construct parameters - query_parameters = {} - if enum_query is not None: - query_parameters['enumQuery'] = self._serialize.query("enum_query", enum_query, 'UriColor') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def enum_null( - self, enum_query=None, custom_headers=None, raw=False, **operation_config): - """Get null (no query parameter in url). - - :param enum_query: null string value. Possible values include: 'red - color', 'green color', 'blue color' - :type enum_query: str or :class:`UriColor - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/enum/null' - - # Construct parameters - query_parameters = {} - if enum_query is not None: - query_parameters['enumQuery'] = self._serialize.query("enum_query", enum_query, 'UriColor') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def byte_multi_byte( - self, byte_query=None, custom_headers=None, raw=False, **operation_config): - """Get '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte array. - - :param byte_query: '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte - array - :type byte_query: bytearray - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/byte/multibyte' - - # Construct parameters - query_parameters = {} - if byte_query is not None: - query_parameters['byteQuery'] = self._serialize.query("byte_query", byte_query, 'bytearray') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def byte_empty( - self, custom_headers=None, raw=False, **operation_config): - """Get '' as byte array. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/byte/empty' - - # Construct parameters - query_parameters = {} - query_parameters['byteQuery'] = self._serialize.query("self.byte_query", self.byte_query, 'bytearray') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def byte_null( - self, byte_query=None, custom_headers=None, raw=False, **operation_config): - """Get null as byte array (no query parameters in uri). - - :param byte_query: null as byte array (no query parameters in uri) - :type byte_query: bytearray - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/byte/null' - - # Construct parameters - query_parameters = {} - if byte_query is not None: - query_parameters['byteQuery'] = self._serialize.query("byte_query", byte_query, 'bytearray') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def date_valid( - self, custom_headers=None, raw=False, **operation_config): - """Get '2012-01-01' as date. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/date/2012-01-01' - - # Construct parameters - query_parameters = {} - query_parameters['dateQuery'] = self._serialize.query("self.date_query", self.date_query, 'date') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def date_null( - self, date_query=None, custom_headers=None, raw=False, **operation_config): - """Get null as date - this should result in no query parameters in uri. - - :param date_query: null as date (no query parameters in uri) - :type date_query: date - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/date/null' - - # Construct parameters - query_parameters = {} - if date_query is not None: - query_parameters['dateQuery'] = self._serialize.query("date_query", date_query, 'date') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def date_time_valid( - self, custom_headers=None, raw=False, **operation_config): - """Get '2012-01-01T01:01:01Z' as date-time. - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/datetime/2012-01-01T01%3A01%3A01Z' - - # Construct parameters - query_parameters = {} - query_parameters['dateTimeQuery'] = self._serialize.query("self.date_time_query", self.date_time_query, 'iso-8601') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def date_time_null( - self, date_time_query=None, custom_headers=None, raw=False, **operation_config): - """Get null as date-time, should result in no query parameters in uri. - - :param date_time_query: null as date-time (no query parameters) - :type date_time_query: datetime - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/datetime/null' - - # Construct parameters - query_parameters = {} - if date_time_query is not None: - query_parameters['dateTimeQuery'] = self._serialize.query("date_time_query", date_time_query, 'iso-8601') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def array_string_csv_valid( - self, array_query=None, custom_headers=None, raw=False, **operation_config): - """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , - null, ''] using the csv-array format. - - :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ - &=+$,/?#[]end' , null, ''] using the csv-array format - :type array_query: list of str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/array/csv/string/valid' - - # Construct parameters - query_parameters = {} - if array_query is not None: - query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=',') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def array_string_csv_null( - self, array_query=None, custom_headers=None, raw=False, **operation_config): - """Get a null array of string using the csv-array format. - - :param array_query: a null array of string using the csv-array format - :type array_query: list of str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/array/csv/string/null' - - # Construct parameters - query_parameters = {} - if array_query is not None: - query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=',') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def array_string_csv_empty( - self, array_query=None, custom_headers=None, raw=False, **operation_config): - """Get an empty array [] of string using the csv-array format. - - :param array_query: an empty array [] of string using the csv-array - format - :type array_query: list of str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/array/csv/string/empty' - - # Construct parameters - query_parameters = {} - if array_query is not None: - query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=',') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def array_string_ssv_valid( - self, array_query=None, custom_headers=None, raw=False, **operation_config): - """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , - null, ''] using the ssv-array format. - - :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ - &=+$,/?#[]end' , null, ''] using the ssv-array format - :type array_query: list of str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/array/ssv/string/valid' - - # Construct parameters - query_parameters = {} - if array_query is not None: - query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=' ') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def array_string_tsv_valid( - self, array_query=None, custom_headers=None, raw=False, **operation_config): - """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , - null, ''] using the tsv-array format. - - :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ - &=+$,/?#[]end' , null, ''] using the tsv-array format - :type array_query: list of str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/array/tsv/string/valid' - - # Construct parameters - query_parameters = {} - if array_query is not None: - query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=' ') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def array_string_pipes_valid( - self, array_query=None, custom_headers=None, raw=False, **operation_config): - """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , - null, ''] using the pipes-array format. - - :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ - &=+$,/?#[]end' , null, ''] using the pipes-array format - :type array_query: list of str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/array/pipes/string/valid' - - # Construct parameters - query_parameters = {} - if array_query is not None: - query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div='|') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class QueriesOperations(object): + """QueriesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar byte_query: '' as byte array + :ivar date_query: '2012-01-01' as date. Constant value: "2012-01-01". + :ivar date_time_query: '2012-01-01T01:01:01Z' as date-time. Constant value: "2012-01-01T01:01:01Z". + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + self.byte_query = bytearray("", encoding="utf-8") + self.date_query = "2012-01-01" + self.date_time_query = "2012-01-01T01:01:01Z" + + def get_boolean_true( + self, custom_headers=None, raw=False, **operation_config): + """Get true Boolean value on path. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + bool_query = True + + # Construct URL + url = '/queries/bool/true' + + # Construct parameters + query_parameters = {} + query_parameters['boolQuery'] = self._serialize.query("bool_query", bool_query, 'bool') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_boolean_false( + self, custom_headers=None, raw=False, **operation_config): + """Get false Boolean value on path. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + bool_query = False + + # Construct URL + url = '/queries/bool/false' + + # Construct parameters + query_parameters = {} + query_parameters['boolQuery'] = self._serialize.query("bool_query", bool_query, 'bool') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_boolean_null( + self, bool_query=None, custom_headers=None, raw=False, **operation_config): + """Get null Boolean value on query (query string should be absent). + + :param bool_query: null boolean value + :type bool_query: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/bool/null' + + # Construct parameters + query_parameters = {} + if bool_query is not None: + query_parameters['boolQuery'] = self._serialize.query("bool_query", bool_query, 'bool') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_int_one_million( + self, custom_headers=None, raw=False, **operation_config): + """Get '1000000' integer value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + int_query = 1000000 + + # Construct URL + url = '/queries/int/1000000' + + # Construct parameters + query_parameters = {} + query_parameters['intQuery'] = self._serialize.query("int_query", int_query, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_int_negative_one_million( + self, custom_headers=None, raw=False, **operation_config): + """Get '-1000000' integer value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + int_query = -1000000 + + # Construct URL + url = '/queries/int/-1000000' + + # Construct parameters + query_parameters = {} + query_parameters['intQuery'] = self._serialize.query("int_query", int_query, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_int_null( + self, int_query=None, custom_headers=None, raw=False, **operation_config): + """Get null integer value (no query parameter). + + :param int_query: null integer value + :type int_query: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/int/null' + + # Construct parameters + query_parameters = {} + if int_query is not None: + query_parameters['intQuery'] = self._serialize.query("int_query", int_query, 'int') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_ten_billion( + self, custom_headers=None, raw=False, **operation_config): + """Get '10000000000' 64 bit integer value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + long_query = 10000000000 + + # Construct URL + url = '/queries/long/10000000000' + + # Construct parameters + query_parameters = {} + query_parameters['longQuery'] = self._serialize.query("long_query", long_query, 'long') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_negative_ten_billion( + self, custom_headers=None, raw=False, **operation_config): + """Get '-10000000000' 64 bit integer value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + long_query = -10000000000 + + # Construct URL + url = '/queries/long/-10000000000' + + # Construct parameters + query_parameters = {} + query_parameters['longQuery'] = self._serialize.query("long_query", long_query, 'long') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def get_long_null( + self, long_query=None, custom_headers=None, raw=False, **operation_config): + """Get 'null 64 bit integer value (no query param in uri). + + :param long_query: null 64 bit integer value + :type long_query: long + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/long/null' + + # Construct parameters + query_parameters = {} + if long_query is not None: + query_parameters['longQuery'] = self._serialize.query("long_query", long_query, 'long') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def float_scientific_positive( + self, custom_headers=None, raw=False, **operation_config): + """Get '1.034E+20' numeric value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + float_query = 1.034E+20 + + # Construct URL + url = '/queries/float/1.034E+20' + + # Construct parameters + query_parameters = {} + query_parameters['floatQuery'] = self._serialize.query("float_query", float_query, 'float') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def float_scientific_negative( + self, custom_headers=None, raw=False, **operation_config): + """Get '-1.034E-20' numeric value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + float_query = -1.034E-20 + + # Construct URL + url = '/queries/float/-1.034E-20' + + # Construct parameters + query_parameters = {} + query_parameters['floatQuery'] = self._serialize.query("float_query", float_query, 'float') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def float_null( + self, float_query=None, custom_headers=None, raw=False, **operation_config): + """Get null numeric value (no query parameter). + + :param float_query: null numeric value + :type float_query: float + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/float/null' + + # Construct parameters + query_parameters = {} + if float_query is not None: + query_parameters['floatQuery'] = self._serialize.query("float_query", float_query, 'float') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def double_decimal_positive( + self, custom_headers=None, raw=False, **operation_config): + """Get '9999999.999' numeric value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + double_query = 9999999.999 + + # Construct URL + url = '/queries/double/9999999.999' + + # Construct parameters + query_parameters = {} + query_parameters['doubleQuery'] = self._serialize.query("double_query", double_query, 'float') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def double_decimal_negative( + self, custom_headers=None, raw=False, **operation_config): + """Get '-9999999.999' numeric value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + double_query = -9999999.999 + + # Construct URL + url = '/queries/double/-9999999.999' + + # Construct parameters + query_parameters = {} + query_parameters['doubleQuery'] = self._serialize.query("double_query", double_query, 'float') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def double_null( + self, double_query=None, custom_headers=None, raw=False, **operation_config): + """Get null numeric value (no query parameter). + + :param double_query: null numeric value + :type double_query: float + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/double/null' + + # Construct parameters + query_parameters = {} + if double_query is not None: + query_parameters['doubleQuery'] = self._serialize.query("double_query", double_query, 'float') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def string_unicode( + self, custom_headers=None, raw=False, **operation_config): + """Get '啊齄丂狛狜隣郎隣兀﨩' multi-byte string value. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + string_query = "啊齄丂狛狜隣郎隣兀﨩" + + # Construct URL + url = '/queries/string/unicode/' + + # Construct parameters + query_parameters = {} + query_parameters['stringQuery'] = self._serialize.query("string_query", string_query, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def string_url_encoded( + self, custom_headers=None, raw=False, **operation_config): + """Get 'begin!*'();:@ &=+$,/?#[]end. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + string_query = "begin!*'();:@ &=+$,/?#[]end" + + # Construct URL + url = '/queries/string/begin%21%2A%27%28%29%3B%3A%40%20%26%3D%2B%24%2C%2F%3F%23%5B%5Dend' + + # Construct parameters + query_parameters = {} + query_parameters['stringQuery'] = self._serialize.query("string_query", string_query, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def string_empty( + self, custom_headers=None, raw=False, **operation_config): + """Get ''. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + string_query = "" + + # Construct URL + url = '/queries/string/empty' + + # Construct parameters + query_parameters = {} + query_parameters['stringQuery'] = self._serialize.query("string_query", string_query, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def string_null( + self, string_query=None, custom_headers=None, raw=False, **operation_config): + """Get null (no query parameter in url). + + :param string_query: null string value + :type string_query: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/string/null' + + # Construct parameters + query_parameters = {} + if string_query is not None: + query_parameters['stringQuery'] = self._serialize.query("string_query", string_query, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def enum_valid( + self, enum_query=None, custom_headers=None, raw=False, **operation_config): + """Get using uri with query parameter 'green color'. + + :param enum_query: 'green color' enum value. Possible values include: + 'red color', 'green color', 'blue color' + :type enum_query: str or :class:`UriColor + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/enum/green%20color' + + # Construct parameters + query_parameters = {} + if enum_query is not None: + query_parameters['enumQuery'] = self._serialize.query("enum_query", enum_query, 'UriColor') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def enum_null( + self, enum_query=None, custom_headers=None, raw=False, **operation_config): + """Get null (no query parameter in url). + + :param enum_query: null string value. Possible values include: 'red + color', 'green color', 'blue color' + :type enum_query: str or :class:`UriColor + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/enum/null' + + # Construct parameters + query_parameters = {} + if enum_query is not None: + query_parameters['enumQuery'] = self._serialize.query("enum_query", enum_query, 'UriColor') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def byte_multi_byte( + self, byte_query=None, custom_headers=None, raw=False, **operation_config): + """Get '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte array. + + :param byte_query: '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte + array + :type byte_query: bytearray + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/byte/multibyte' + + # Construct parameters + query_parameters = {} + if byte_query is not None: + query_parameters['byteQuery'] = self._serialize.query("byte_query", byte_query, 'bytearray') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def byte_empty( + self, custom_headers=None, raw=False, **operation_config): + """Get '' as byte array. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/byte/empty' + + # Construct parameters + query_parameters = {} + query_parameters['byteQuery'] = self._serialize.query("self.byte_query", self.byte_query, 'bytearray') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def byte_null( + self, byte_query=None, custom_headers=None, raw=False, **operation_config): + """Get null as byte array (no query parameters in uri). + + :param byte_query: null as byte array (no query parameters in uri) + :type byte_query: bytearray + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/byte/null' + + # Construct parameters + query_parameters = {} + if byte_query is not None: + query_parameters['byteQuery'] = self._serialize.query("byte_query", byte_query, 'bytearray') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def date_valid( + self, custom_headers=None, raw=False, **operation_config): + """Get '2012-01-01' as date. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/date/2012-01-01' + + # Construct parameters + query_parameters = {} + query_parameters['dateQuery'] = self._serialize.query("self.date_query", self.date_query, 'date') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def date_null( + self, date_query=None, custom_headers=None, raw=False, **operation_config): + """Get null as date - this should result in no query parameters in uri. + + :param date_query: null as date (no query parameters in uri) + :type date_query: date + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/date/null' + + # Construct parameters + query_parameters = {} + if date_query is not None: + query_parameters['dateQuery'] = self._serialize.query("date_query", date_query, 'date') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def date_time_valid( + self, custom_headers=None, raw=False, **operation_config): + """Get '2012-01-01T01:01:01Z' as date-time. + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/datetime/2012-01-01T01%3A01%3A01Z' + + # Construct parameters + query_parameters = {} + query_parameters['dateTimeQuery'] = self._serialize.query("self.date_time_query", self.date_time_query, 'iso-8601') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def date_time_null( + self, date_time_query=None, custom_headers=None, raw=False, **operation_config): + """Get null as date-time, should result in no query parameters in uri. + + :param date_time_query: null as date-time (no query parameters) + :type date_time_query: datetime + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/datetime/null' + + # Construct parameters + query_parameters = {} + if date_time_query is not None: + query_parameters['dateTimeQuery'] = self._serialize.query("date_time_query", date_time_query, 'iso-8601') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def array_string_csv_valid( + self, array_query=None, custom_headers=None, raw=False, **operation_config): + """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , + null, ''] using the csv-array format. + + :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ + &=+$,/?#[]end' , null, ''] using the csv-array format + :type array_query: list of str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/array/csv/string/valid' + + # Construct parameters + query_parameters = {} + if array_query is not None: + query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=',') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def array_string_csv_null( + self, array_query=None, custom_headers=None, raw=False, **operation_config): + """Get a null array of string using the csv-array format. + + :param array_query: a null array of string using the csv-array format + :type array_query: list of str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/array/csv/string/null' + + # Construct parameters + query_parameters = {} + if array_query is not None: + query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=',') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def array_string_csv_empty( + self, array_query=None, custom_headers=None, raw=False, **operation_config): + """Get an empty array [] of string using the csv-array format. + + :param array_query: an empty array [] of string using the csv-array + format + :type array_query: list of str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/array/csv/string/empty' + + # Construct parameters + query_parameters = {} + if array_query is not None: + query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=',') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def array_string_ssv_valid( + self, array_query=None, custom_headers=None, raw=False, **operation_config): + """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , + null, ''] using the ssv-array format. + + :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ + &=+$,/?#[]end' , null, ''] using the ssv-array format + :type array_query: list of str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/array/ssv/string/valid' + + # Construct parameters + query_parameters = {} + if array_query is not None: + query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=' ') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def array_string_tsv_valid( + self, array_query=None, custom_headers=None, raw=False, **operation_config): + """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , + null, ''] using the tsv-array format. + + :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ + &=+$,/?#[]end' , null, ''] using the tsv-array format + :type array_query: list of str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/array/tsv/string/valid' + + # Construct parameters + query_parameters = {} + if array_query is not None: + query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=' ') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def array_string_pipes_valid( + self, array_query=None, custom_headers=None, raw=False, **operation_config): + """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , + null, ''] using the pipes-array format. + + :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ + &=+$,/?#[]end' , null, ''] using the pipes-array format + :type array_query: list of str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/array/pipes/string/valid' + + # Construct parameters + query_parameters = {} + if array_query is not None: + query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div='|') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/autoresturltestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/setup.py index e16cadbeaf..5ecd97fb73 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Url/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autoresturltestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestUrlTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestUrlTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autoresturltestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestUrlTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestUrlTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/__init__.py index 5f463d622b..c0da1f00f2 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_url_mutli_collection_format_test_service import AutoRestUrlMutliCollectionFormatTestService -from .version import VERSION - -__all__ = ['AutoRestUrlMutliCollectionFormatTestService'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_url_mutli_collection_format_test_service import AutoRestUrlMutliCollectionFormatTestService +from .version import VERSION + +__all__ = ['AutoRestUrlMutliCollectionFormatTestService'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/auto_rest_url_mutli_collection_format_test_service.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/auto_rest_url_mutli_collection_format_test_service.py index 079e3b5051..4fd6151511 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/auto_rest_url_mutli_collection_format_test_service.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/auto_rest_url_mutli_collection_format_test_service.py @@ -1,63 +1,63 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from .operations.queries_operations import QueriesOperations -from . import models - - -class AutoRestUrlMutliCollectionFormatTestServiceConfiguration(Configuration): - """Configuration for AutoRestUrlMutliCollectionFormatTestService - Note that all parameters used to create this instance are saved as instance - attributes. - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - if not base_url: - base_url = 'http://localhost' - - super(AutoRestUrlMutliCollectionFormatTestServiceConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autoresturlmutlicollectionformattestservice/{}'.format(VERSION)) - - -class AutoRestUrlMutliCollectionFormatTestService(object): - """Test Infrastructure for AutoRest - - :ivar config: Configuration for client. - :vartype config: AutoRestUrlMutliCollectionFormatTestServiceConfiguration - - :ivar queries: Queries operations - :vartype queries: .operations.QueriesOperations - - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, base_url=None, filepath=None): - - self.config = AutoRestUrlMutliCollectionFormatTestServiceConfiguration(base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.queries = QueriesOperations( - self._client, self.config, self._serialize, self._deserialize) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from .operations.queries_operations import QueriesOperations +from . import models + + +class AutoRestUrlMutliCollectionFormatTestServiceConfiguration(Configuration): + """Configuration for AutoRestUrlMutliCollectionFormatTestService + Note that all parameters used to create this instance are saved as instance + attributes. + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + if not base_url: + base_url = 'http://localhost' + + super(AutoRestUrlMutliCollectionFormatTestServiceConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autoresturlmutlicollectionformattestservice/{}'.format(VERSION)) + + +class AutoRestUrlMutliCollectionFormatTestService(object): + """Test Infrastructure for AutoRest + + :ivar config: Configuration for client. + :vartype config: AutoRestUrlMutliCollectionFormatTestServiceConfiguration + + :ivar queries: Queries operations + :vartype queries: .operations.QueriesOperations + + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, base_url=None, filepath=None): + + self.config = AutoRestUrlMutliCollectionFormatTestServiceConfiguration(base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + self.queries = QueriesOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/models/__init__.py index 3082ec0dab..fd6d517a47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/models/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .error import Error, ErrorException - -__all__ = [ - 'Error', 'ErrorException', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .error import Error, ErrorException + +__all__ = [ + 'Error', 'ErrorException', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/models/error.py index 39b32bc943..6ea7ce8e47 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/models/error.py @@ -1,44 +1,44 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param status: - :type status: int - :param message: - :type message: str - """ - - _attribute_map = { - 'status': {'key': 'status', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, status=None, message=None): - self.status = status - self.message = message - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param status: + :type status: int + :param message: + :type message: str + """ + + _attribute_map = { + 'status': {'key': 'status', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, status=None, message=None): + self.status = status + self.message = message + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/operations/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/operations/__init__.py index ad5a86a3df..5533a66649 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/operations/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/operations/__init__.py @@ -1,16 +1,16 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .queries_operations import QueriesOperations - -__all__ = [ - 'QueriesOperations', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .queries_operations import QueriesOperations + +__all__ = [ + 'QueriesOperations', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/operations/queries_operations.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/operations/queries_operations.py index 890033e2f7..39190a008f 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/operations/queries_operations.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/operations/queries_operations.py @@ -1,162 +1,162 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.pipeline import ClientRawResponse - -from .. import models - - -class QueriesOperations(object): - """QueriesOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - """ - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - - self.config = config - - def array_string_multi_null( - self, array_query=None, custom_headers=None, raw=False, **operation_config): - """Get a null array of string using the multi-array format. - - :param array_query: a null array of string using the multi-array - format - :type array_query: list of str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/array/multi/string/null' - - # Construct parameters - query_parameters = {} - if array_query is not None: - query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=',') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def array_string_multi_empty( - self, array_query=None, custom_headers=None, raw=False, **operation_config): - """Get an empty array [] of string using the multi-array format. - - :param array_query: an empty array [] of string using the multi-array - format - :type array_query: list of str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/array/multi/string/empty' - - # Construct parameters - query_parameters = {} - if array_query is not None: - query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=',') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def array_string_multi_valid( - self, array_query=None, custom_headers=None, raw=False, **operation_config): - """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , - null, ''] using the mult-array format. - - :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ - &=+$,/?#[]end' , null, ''] using the mult-array format - :type array_query: list of str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/queries/array/multi/string/valid' - - # Construct parameters - query_parameters = {} - if array_query is not None: - query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=',') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class QueriesOperations(object): + """QueriesOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + """ + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + + self.config = config + + def array_string_multi_null( + self, array_query=None, custom_headers=None, raw=False, **operation_config): + """Get a null array of string using the multi-array format. + + :param array_query: a null array of string using the multi-array + format + :type array_query: list of str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/array/multi/string/null' + + # Construct parameters + query_parameters = {} + if array_query is not None: + query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=',') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def array_string_multi_empty( + self, array_query=None, custom_headers=None, raw=False, **operation_config): + """Get an empty array [] of string using the multi-array format. + + :param array_query: an empty array [] of string using the multi-array + format + :type array_query: list of str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/array/multi/string/empty' + + # Construct parameters + query_parameters = {} + if array_query is not None: + query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=',') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def array_string_multi_valid( + self, array_query=None, custom_headers=None, raw=False, **operation_config): + """Get an array of string ['ArrayQuery1', 'begin!*'();:@ &=+$,/?#[]end' , + null, ''] using the mult-array format. + + :param array_query: an array of string ['ArrayQuery1', 'begin!*'();:@ + &=+$,/?#[]end' , null, ''] using the mult-array format + :type array_query: list of str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/queries/array/multi/string/valid' + + # Construct parameters + query_parameters = {} + if array_query is not None: + query_parameters['arrayQuery'] = self._serialize.query("array_query", array_query, '[str]', div=',') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/autoresturlmutlicollectionformattestservice/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py index 6f4998ff03..1495cf9bf6 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autoresturlmutlicollectionformattestservice" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestUrlMutliCollectionFormatTestService", - author_email="", - url="", - keywords=["Swagger", "AutoRestUrlMutliCollectionFormatTestService"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autoresturlmutlicollectionformattestservice" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestUrlMutliCollectionFormatTestService", + author_email="", + url="", + keywords=["Swagger", "AutoRestUrlMutliCollectionFormatTestService"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest + """ +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/__init__.py index ffca07e6aa..885383be0a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/__init__.py @@ -1,18 +1,18 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .auto_rest_validation_test import AutoRestValidationTest -from .version import VERSION - -__all__ = ['AutoRestValidationTest'] - -__version__ = VERSION - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .auto_rest_validation_test import AutoRestValidationTest +from .version import VERSION + +__all__ = ['AutoRestValidationTest'] + +__version__ = VERSION + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/auto_rest_validation_test.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/auto_rest_validation_test.py index 54964f5caf..8de0581753 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/auto_rest_validation_test.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/auto_rest_validation_test.py @@ -1,310 +1,310 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.service_client import ServiceClient -from msrest import Configuration, Serializer, Deserializer -from .version import VERSION -from msrest.pipeline import ClientRawResponse -from msrest.exceptions import HttpOperationError -from . import models - - -class AutoRestValidationTestConfiguration(Configuration): - """Configuration for AutoRestValidationTest - Note that all parameters used to create this instance are saved as instance - attributes. - - :param subscription_id: Subscription ID. - :type subscription_id: str - :param api_version: Required string following pattern \\d{2}-\\d{2}-\\d{4} - :type api_version: str - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, subscription_id, api_version, base_url=None, filepath=None): - - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not isinstance(subscription_id, str): - raise TypeError("Parameter 'subscription_id' must be str.") - if api_version is None: - raise ValueError("Parameter 'api_version' must not be None.") - if not isinstance(api_version, str): - raise TypeError("Parameter 'api_version' must be str.") - if not base_url: - base_url = 'http://localhost' - - super(AutoRestValidationTestConfiguration, self).__init__(base_url, filepath) - - self.add_user_agent('autorestvalidationtest/{}'.format(VERSION)) - - self.subscription_id = subscription_id - self.api_version = api_version - - -class AutoRestValidationTest(object): - """Test Infrastructure for AutoRest. No server backend exists for these tests. - - :ivar config: Configuration for client. - :vartype config: AutoRestValidationTestConfiguration - - :param subscription_id: Subscription ID. - :type subscription_id: str - :param api_version: Required string following pattern \\d{2}-\\d{2}-\\d{4} - :type api_version: str - :param str base_url: Service URL - :param str filepath: Existing config - """ - - def __init__( - self, subscription_id, api_version, base_url=None, filepath=None): - - self.config = AutoRestValidationTestConfiguration(subscription_id, api_version, base_url, filepath) - self._client = ServiceClient(None, self.config) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - - def validation_of_method_parameters( - self, resource_group_name, id, custom_headers=None, raw=False, **operation_config): - """Validates input parameters on the method. See swagger for details. - - :param resource_group_name: Required string between 3 and 10 chars - with pattern [a-zA-Z0-9]+. - :type resource_group_name: str - :param id: Required int multiple of 10 from 100 to 1000. - :type id: int - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Product - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/fakepath/{subscriptionId}/{resourceGroupName}/{id}' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=10, min_length=3, pattern='[a-zA-Z0-9]+'), - 'id': self._serialize.url("id", id, 'int', maximum=1000, minimum=100, multiple=10) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['apiVersion'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str', pattern='\d{2}-\d{2}-\d{4}') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Product', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def validation_of_body( - self, resource_group_name, id, body=None, custom_headers=None, raw=False, **operation_config): - """Validates body parameters on the method. See swagger for details. - - :param resource_group_name: Required string between 3 and 10 chars - with pattern [a-zA-Z0-9]+. - :type resource_group_name: str - :param id: Required int multiple of 10 from 100 to 1000. - :type id: int - :param body: - :type body: :class:`Product - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Product - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`ErrorException` - """ - # Construct URL - url = '/fakepath/{subscriptionId}/{resourceGroupName}/{id}' - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=10, min_length=3, pattern='[a-zA-Z0-9]+'), - 'id': self._serialize.url("id", id, 'int', maximum=1000, minimum=100, multiple=10) - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['apiVersion'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str', pattern='\d{2}-\d{2}-\d{4}') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if body is not None: - body_content = self._serialize.body(body, 'Product') - else: - body_content = None - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Product', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_with_constant_in_path( - self, custom_headers=None, raw=False, **operation_config): - """ - - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: None - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - constant_param = "constant" - - # Construct URL - url = '/validation/constantsInPath/{constantParam}/value' - path_format_arguments = { - 'constantParam': self._serialize.url("constant_param", constant_param, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def post_with_constant_in_body( - self, body=None, custom_headers=None, raw=False, **operation_config): - """ - - :param body: - :type body: :class:`Product - ` - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :rtype: :class:`Product - ` - :rtype: :class:`ClientRawResponse` - if raw=true - :raises: - :class:`HttpOperationError` - """ - constant_param = "constant" - - # Construct URL - url = '/validation/constantsInPath/{constantParam}/value' - path_format_arguments = { - 'constantParam': self._serialize.url("constant_param", constant_param, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if custom_headers: - header_parameters.update(custom_headers) - - # Construct body - if body is not None: - body_content = self._serialize.body(body, 'Product') - else: - body_content = None - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200]: - raise HttpOperationError(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('Product', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.service_client import ServiceClient +from msrest import Configuration, Serializer, Deserializer +from .version import VERSION +from msrest.pipeline import ClientRawResponse +from msrest.exceptions import HttpOperationError +from . import models + + +class AutoRestValidationTestConfiguration(Configuration): + """Configuration for AutoRestValidationTest + Note that all parameters used to create this instance are saved as instance + attributes. + + :param subscription_id: Subscription ID. + :type subscription_id: str + :param api_version: Required string following pattern \\d{2}-\\d{2}-\\d{4} + :type api_version: str + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, subscription_id, api_version, base_url=None, filepath=None): + + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not isinstance(subscription_id, str): + raise TypeError("Parameter 'subscription_id' must be str.") + if api_version is None: + raise ValueError("Parameter 'api_version' must not be None.") + if not isinstance(api_version, str): + raise TypeError("Parameter 'api_version' must be str.") + if not base_url: + base_url = 'http://localhost' + + super(AutoRestValidationTestConfiguration, self).__init__(base_url, filepath) + + self.add_user_agent('autorestvalidationtest/{}'.format(VERSION)) + + self.subscription_id = subscription_id + self.api_version = api_version + + +class AutoRestValidationTest(object): + """Test Infrastructure for AutoRest. No server backend exists for these tests. + + :ivar config: Configuration for client. + :vartype config: AutoRestValidationTestConfiguration + + :param subscription_id: Subscription ID. + :type subscription_id: str + :param api_version: Required string following pattern \\d{2}-\\d{2}-\\d{4} + :type api_version: str + :param str base_url: Service URL + :param str filepath: Existing config + """ + + def __init__( + self, subscription_id, api_version, base_url=None, filepath=None): + + self.config = AutoRestValidationTestConfiguration(subscription_id, api_version, base_url, filepath) + self._client = ServiceClient(None, self.config) + + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} + self._serialize = Serializer(client_models) + self._deserialize = Deserializer(client_models) + + + def validation_of_method_parameters( + self, resource_group_name, id, custom_headers=None, raw=False, **operation_config): + """Validates input parameters on the method. See swagger for details. + + :param resource_group_name: Required string between 3 and 10 chars + with pattern [a-zA-Z0-9]+. + :type resource_group_name: str + :param id: Required int multiple of 10 from 100 to 1000. + :type id: int + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Product + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/fakepath/{subscriptionId}/{resourceGroupName}/{id}' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=10, min_length=3, pattern='[a-zA-Z0-9]+'), + 'id': self._serialize.url("id", id, 'int', maximum=1000, minimum=100, multiple=10) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['apiVersion'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str', pattern='\d{2}-\d{2}-\d{4}') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Product', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def validation_of_body( + self, resource_group_name, id, body=None, custom_headers=None, raw=False, **operation_config): + """Validates body parameters on the method. See swagger for details. + + :param resource_group_name: Required string between 3 and 10 chars + with pattern [a-zA-Z0-9]+. + :type resource_group_name: str + :param id: Required int multiple of 10 from 100 to 1000. + :type id: int + :param body: + :type body: :class:`Product + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Product + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`ErrorException` + """ + # Construct URL + url = '/fakepath/{subscriptionId}/{resourceGroupName}/{id}' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=10, min_length=3, pattern='[a-zA-Z0-9]+'), + 'id': self._serialize.url("id", id, 'int', maximum=1000, minimum=100, multiple=10) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['apiVersion'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str', pattern='\d{2}-\d{2}-\d{4}') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if body is not None: + body_content = self._serialize.body(body, 'Product') + else: + body_content = None + + # Construct and send request + request = self._client.put(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Product', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def get_with_constant_in_path( + self, custom_headers=None, raw=False, **operation_config): + """ + + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: None + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + constant_param = "constant" + + # Construct URL + url = '/validation/constantsInPath/{constantParam}/value' + path_format_arguments = { + 'constantParam': self._serialize.url("constant_param", constant_param, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + + def post_with_constant_in_body( + self, body=None, custom_headers=None, raw=False, **operation_config): + """ + + :param body: + :type body: :class:`Product + ` + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :rtype: :class:`Product + ` + :rtype: :class:`ClientRawResponse` + if raw=true + :raises: + :class:`HttpOperationError` + """ + constant_param = "constant" + + # Construct URL + url = '/validation/constantsInPath/{constantParam}/value' + path_format_arguments = { + 'constantParam': self._serialize.url("constant_param", constant_param, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if custom_headers: + header_parameters.update(custom_headers) + + # Construct body + if body is not None: + body_content = self._serialize.body(body, 'Product') + else: + body_content = None + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, **operation_config) + + if response.status_code not in [200]: + raise HttpOperationError(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('Product', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/credentials.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/credentials.py index 58228619e5..0d097b4f2a 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/credentials.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/credentials.py @@ -1,15 +1,15 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.authentication import ( - BasicAuthentication, - BasicTokenAuthentication, - OAuthTokenAuthentication) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.authentication import ( + BasicAuthentication, + BasicTokenAuthentication, + OAuthTokenAuthentication) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/exceptions.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/exceptions.py index 83c788ddaa..c3cc002260 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/exceptions.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/exceptions.py @@ -1,21 +1,21 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.exceptions import ( - ClientException, - SerializationError, - DeserializationError, - TokenExpiredError, - ClientRequestError, - AuthenticationError, - HttpOperationError, - ValidationError, -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.exceptions import ( + ClientException, + SerializationError, + DeserializationError, + TokenExpiredError, + ClientRequestError, + AuthenticationError, + HttpOperationError, + ValidationError, +) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/__init__.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/__init__.py index b5972d227d..23e78a342b 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/__init__.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/__init__.py @@ -1,26 +1,26 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .product import Product -from .child_product import ChildProduct -from .constant_product import ConstantProduct -from .error import Error, ErrorException -from .auto_rest_validation_test_enums import ( - EnumConst, -) - -__all__ = [ - 'Product', - 'ChildProduct', - 'ConstantProduct', - 'Error', 'ErrorException', - 'EnumConst', -] +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .child_product import ChildProduct +from .constant_product import ConstantProduct +from .product import Product +from .error import Error, ErrorException +from .auto_rest_validation_test_enums import ( + EnumConst, +) + +__all__ = [ + 'ChildProduct', + 'ConstantProduct', + 'Product', + 'Error', 'ErrorException', + 'EnumConst', +] diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/auto_rest_validation_test_enums.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/auto_rest_validation_test_enums.py index f392e0b5ac..d9c1547770 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/auto_rest_validation_test_enums.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/auto_rest_validation_test_enums.py @@ -1,17 +1,17 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from enum import Enum - - -class EnumConst(Enum): - - constant_string_as_enum = "constant_string_as_enum" +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from enum import Enum + + +class EnumConst(Enum): + + constant_string_as_enum = "constant_string_as_enum" diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/child_product.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/child_product.py index 78ac4c1cc1..9d4c1abb46 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/child_product.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/child_product.py @@ -1,39 +1,39 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ChildProduct(Model): - """The product documentation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar const_property: Constant string. Default value: "constant" . - :vartype const_property: str - :param count: Count - :type count: int - """ - - _validation = { - 'const_property': {'required': True, 'constant': True}, - } - - _attribute_map = { - 'const_property': {'key': 'constProperty', 'type': 'str'}, - 'count': {'key': 'count', 'type': 'int'}, - } - - const_property = "constant" - - def __init__(self, count=None): - self.count = count +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ChildProduct(Model): + """The product documentation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar const_property: Constant string. Default value: "constant" . + :vartype const_property: str + :param count: Count + :type count: int + """ + + _validation = { + 'const_property': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'const_property': {'key': 'constProperty', 'type': 'str'}, + 'count': {'key': 'count', 'type': 'int'}, + } + + const_property = "constant" + + def __init__(self, count=None): + self.count = count diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/constant_product.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/constant_product.py index 63c1102129..5ae2d490ec 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/constant_product.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/constant_product.py @@ -1,39 +1,39 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ConstantProduct(Model): - """The product documentation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar const_property: Constant string. Default value: "constant" . - :vartype const_property: str - :ivar const_property2: Constant string2. Default value: "constant2" . - :vartype const_property2: str - """ - - _validation = { - 'const_property': {'required': True, 'constant': True}, - 'const_property2': {'required': True, 'constant': True}, - } - - _attribute_map = { - 'const_property': {'key': 'constProperty', 'type': 'str'}, - 'const_property2': {'key': 'constProperty2', 'type': 'str'}, - } - - const_property = "constant" - - const_property2 = "constant2" +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class ConstantProduct(Model): + """The product documentation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar const_property: Constant string. Default value: "constant" . + :vartype const_property: str + :ivar const_property2: Constant string2. Default value: "constant2" . + :vartype const_property2: str + """ + + _validation = { + 'const_property': {'required': True, 'constant': True}, + 'const_property2': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'const_property': {'key': 'constProperty', 'type': 'str'}, + 'const_property2': {'key': 'constProperty2', 'type': 'str'}, + } + + const_property = "constant" + + const_property2 = "constant2" diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/error.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/error.py index 769979c3cc..16484164e7 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/error.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/error.py @@ -1,48 +1,48 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class Error(Model): - """Error. - - :param code: - :type code: int - :param message: - :type message: str - :param fields: - :type fields: str - """ - - _attribute_map = { - 'code': {'key': 'code', 'type': 'int'}, - 'message': {'key': 'message', 'type': 'str'}, - 'fields': {'key': 'fields', 'type': 'str'}, - } - - def __init__(self, code=None, message=None, fields=None): - self.code = code - self.message = message - self.fields = fields - - -class ErrorException(HttpOperationError): - """Server responsed with exception of type: 'Error'. - - :param deserialize: A deserializer - :param response: Server response to be deserialized. - """ - - def __init__(self, deserialize, response, *args): - - super(ErrorException, self).__init__(deserialize, response, 'Error', *args) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Error(Model): + """Error. + + :param code: + :type code: int + :param message: + :type message: str + :param fields: + :type fields: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'int'}, + 'message': {'key': 'message', 'type': 'str'}, + 'fields': {'key': 'fields', 'type': 'str'}, + } + + def __init__(self, code=None, message=None, fields=None): + self.code = code + self.message = message + self.fields = fields + + +class ErrorException(HttpOperationError): + """Server responsed with exception of type: 'Error'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorException, self).__init__(deserialize, response, 'Error', *args) diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/product.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/product.py index 016479d303..ad7d9fe3cb 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/product.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/models/product.py @@ -1,77 +1,77 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .constant_product import ConstantProduct -from msrest.serialization import Model - - -class Product(Model): - """The product documentation. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param display_names: Non required array of unique items from 0 to 6 - elements. - :type display_names: list of str - :param capacity: Non required int betwen 0 and 100 exclusive. - :type capacity: int - :param image: Image URL representing the product. - :type image: str - :param child: - :type child: :class:`ChildProduct - ` - :ivar const_child: - :vartype const_child: :class:`ConstantProduct - ` - :ivar const_int: Constant int. Default value: 0 . - :vartype const_int: int - :ivar const_string: Constant string. Default value: "constant" . - :vartype const_string: str - :param const_string_as_enum: Constant string as Enum. Possible values - include: 'constant_string_as_enum' - :type const_string_as_enum: str or :class:`EnumConst - ` - """ - - _validation = { - 'display_names': {'max_items': 6, 'min_items': 0, 'unique': True}, - 'capacity': {'maximum_ex': 100, 'minimum_ex': 0}, - 'image': {'pattern': 'http://\w+'}, - 'child': {'required': True}, - 'const_child': {'required': True, 'constant': True}, - 'const_int': {'required': True, 'constant': True}, - 'const_string': {'required': True, 'constant': True}, - } - - _attribute_map = { - 'display_names': {'key': 'display_names', 'type': '[str]'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - 'image': {'key': 'image', 'type': 'str'}, - 'child': {'key': 'child', 'type': 'ChildProduct'}, - 'const_child': {'key': 'constChild', 'type': 'ConstantProduct'}, - 'const_int': {'key': 'constInt', 'type': 'int'}, - 'const_string': {'key': 'constString', 'type': 'str'}, - 'const_string_as_enum': {'key': 'constStringAsEnum', 'type': 'EnumConst'}, - } - - const_child = ConstantProduct() - - const_int = 0 - - const_string = "constant" - - def __init__(self, child, display_names=None, capacity=None, image=None, const_string_as_enum=None): - self.display_names = display_names - self.capacity = capacity - self.image = image - self.child = child - self.const_string_as_enum = const_string_as_enum +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .constant_product import ConstantProduct +from msrest.serialization import Model + + +class Product(Model): + """The product documentation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param display_names: Non required array of unique items from 0 to 6 + elements. + :type display_names: list of str + :param capacity: Non required int betwen 0 and 100 exclusive. + :type capacity: int + :param image: Image URL representing the product. + :type image: str + :param child: + :type child: :class:`ChildProduct + ` + :ivar const_child: + :vartype const_child: :class:`ConstantProduct + ` + :ivar const_int: Constant int. Default value: 0 . + :vartype const_int: int + :ivar const_string: Constant string. Default value: "constant" . + :vartype const_string: str + :param const_string_as_enum: Constant string as Enum. Possible values + include: 'constant_string_as_enum' + :type const_string_as_enum: str or :class:`EnumConst + ` + """ + + _validation = { + 'display_names': {'max_items': 6, 'min_items': 0, 'unique': True}, + 'capacity': {'maximum_ex': 100, 'minimum_ex': 0}, + 'image': {'pattern': 'http://\w+'}, + 'child': {'required': True}, + 'const_child': {'required': True, 'constant': True}, + 'const_int': {'required': True, 'constant': True}, + 'const_string': {'required': True, 'constant': True}, + } + + _attribute_map = { + 'display_names': {'key': 'display_names', 'type': '[str]'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + 'image': {'key': 'image', 'type': 'str'}, + 'child': {'key': 'child', 'type': 'ChildProduct'}, + 'const_child': {'key': 'constChild', 'type': 'ConstantProduct'}, + 'const_int': {'key': 'constInt', 'type': 'int'}, + 'const_string': {'key': 'constString', 'type': 'str'}, + 'const_string_as_enum': {'key': 'constStringAsEnum', 'type': 'EnumConst'}, + } + + const_child = ConstantProduct() + + const_int = 0 + + const_string = "constant" + + def __init__(self, child, display_names=None, capacity=None, image=None, const_string_as_enum=None): + self.display_names = display_names + self.capacity = capacity + self.image = image + self.child = child + self.const_string_as_enum = const_string_as_enum diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/version.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/version.py index 697fa362ec..a39916c162 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/version.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/autorestvalidationtest/version.py @@ -1,13 +1,13 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -VERSION = "1.0.0" - +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +VERSION = "1.0.0" + diff --git a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/setup.py b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/setup.py index 8316149314..3d693bfbb1 100644 --- a/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/setup.py +++ b/src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/Validation/setup.py @@ -1,40 +1,40 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- -# coding: utf-8 - -from setuptools import setup, find_packages - -NAME = "autorestvalidationtest" -VERSION = "1.0.0" - -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = ["msrest>=0.2.0"] - -setup( - name=NAME, - version=VERSION, - description="AutoRestValidationTest", - author_email="", - url="", - keywords=["Swagger", "AutoRestValidationTest"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - Test Infrastructure for AutoRest. No server backend exists for these tests. - """ -) +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +# coding: utf-8 + +from setuptools import setup, find_packages + +NAME = "autorestvalidationtest" +VERSION = "1.0.0" + +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["msrest>=0.2.0"] + +setup( + name=NAME, + version=VERSION, + description="AutoRestValidationTest", + author_email="", + url="", + keywords=["Swagger", "AutoRestValidationTest"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + Test Infrastructure for AutoRest. No server backend exists for these tests. + """ +) From 1d8dd4812f4650ee57ecc4b534f1af940c48b32c Mon Sep 17 00:00:00 2001 From: Garrett Serack Date: Fri, 18 Nov 2016 15:15:03 -0800 Subject: [PATCH 04/10] regenerated ruby (line endings) --- ...ount_check_name_availability_parameters.rb | 2 +- .../models/storage_account_properties.rb | 2 +- ...ge_account_properties_create_parameters.rb | 2 +- ...ge_account_properties_update_parameters.rb | 2 +- ...orage_account_regenerate_key_parameters.rb | 2 +- .../azure_storage/storage_accounts.rb | 36 +++++++++---------- .../storage_management_client.rb | 4 +-- Samples/petstore/Ruby/generated/petstore.rb | 4 +-- .../generated/petstore/models/category.rb | 2 +- .../Ruby/generated/petstore/models/order.rb | 2 +- .../Ruby/generated/petstore/models/tag.rb | 2 +- .../Ruby/generated/petstore/models/user.rb | 2 +- .../generated/petstore/swagger_petstore.rb | 4 +-- 13 files changed, 33 insertions(+), 33 deletions(-) diff --git a/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_check_name_availability_parameters.rb b/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_check_name_availability_parameters.rb index 52c1f17807..ac71189ca3 100644 --- a/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_check_name_availability_parameters.rb +++ b/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_check_name_availability_parameters.rb @@ -4,7 +4,7 @@ module Petstore module Models # # Model object. - # + # # class StorageAccountCheckNameAvailabilityParameters diff --git a/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_properties.rb b/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_properties.rb index 9f12675712..df3c5a1690 100644 --- a/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_properties.rb +++ b/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_properties.rb @@ -4,7 +4,7 @@ module Petstore module Models # # Model object. - # + # # class StorageAccountProperties diff --git a/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_properties_create_parameters.rb b/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_properties_create_parameters.rb index fc1689e377..1d1f1bb73b 100644 --- a/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_properties_create_parameters.rb +++ b/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_properties_create_parameters.rb @@ -4,7 +4,7 @@ module Petstore module Models # # Model object. - # + # # class StorageAccountPropertiesCreateParameters diff --git a/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_properties_update_parameters.rb b/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_properties_update_parameters.rb index 041cd73ab8..a34c965c89 100644 --- a/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_properties_update_parameters.rb +++ b/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_properties_update_parameters.rb @@ -4,7 +4,7 @@ module Petstore module Models # # Model object. - # + # # class StorageAccountPropertiesUpdateParameters diff --git a/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_regenerate_key_parameters.rb b/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_regenerate_key_parameters.rb index a751ba4b87..ec12c37c2d 100644 --- a/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_regenerate_key_parameters.rb +++ b/Samples/azure-storage/Azure.Ruby/generated/azure_storage/models/storage_account_regenerate_key_parameters.rb @@ -4,7 +4,7 @@ module Petstore module Models # # Model object. - # + # # class StorageAccountRegenerateKeyParameters diff --git a/Samples/azure-storage/Azure.Ruby/generated/azure_storage/storage_accounts.rb b/Samples/azure-storage/Azure.Ruby/generated/azure_storage/storage_accounts.rb index 84367fe46a..4bb5402ce0 100644 --- a/Samples/azure-storage/Azure.Ruby/generated/azure_storage/storage_accounts.rb +++ b/Samples/azure-storage/Azure.Ruby/generated/azure_storage/storage_accounts.rb @@ -915,13 +915,13 @@ def regenerate_key_async(resource_group_name, account_name, regenerate_key, cust # # Asynchronously creates a new storage account with the specified parameters. - # Existing accounts cannot be updated with this API and should instead use - # the Update Storage Account API. If an account is already created and - # subsequent PUT request is issued with exact same set of properties, then - # HTTP 200 would be returned. + # Existing accounts cannot be updated with this API and should instead use the + # Update Storage Account API. If an account is already created and subsequent + # PUT request is issued with exact same set of properties, then HTTP 200 would + # be returned. # - # @param resource_group_name [String] The name of the resource group within - # the user's subscription. + # @param resource_group_name [String] The name of the resource group within the + # user's subscription. # @param account_name [String] The name of the storage account within the # specified resource group. Storage account names must be between 3 and 24 # characters in length and use numbers and lower-case letters only. @@ -939,13 +939,13 @@ def begin_create(resource_group_name, account_name, parameters, custom_headers = # # Asynchronously creates a new storage account with the specified parameters. - # Existing accounts cannot be updated with this API and should instead use - # the Update Storage Account API. If an account is already created and - # subsequent PUT request is issued with exact same set of properties, then - # HTTP 200 would be returned. + # Existing accounts cannot be updated with this API and should instead use the + # Update Storage Account API. If an account is already created and subsequent + # PUT request is issued with exact same set of properties, then HTTP 200 would + # be returned. # - # @param resource_group_name [String] The name of the resource group within - # the user's subscription. + # @param resource_group_name [String] The name of the resource group within the + # user's subscription. # @param account_name [String] The name of the storage account within the # specified resource group. Storage account names must be between 3 and 24 # characters in length and use numbers and lower-case letters only. @@ -962,13 +962,13 @@ def begin_create_with_http_info(resource_group_name, account_name, parameters, c # # Asynchronously creates a new storage account with the specified parameters. - # Existing accounts cannot be updated with this API and should instead use - # the Update Storage Account API. If an account is already created and - # subsequent PUT request is issued with exact same set of properties, then - # HTTP 200 would be returned. + # Existing accounts cannot be updated with this API and should instead use the + # Update Storage Account API. If an account is already created and subsequent + # PUT request is issued with exact same set of properties, then HTTP 200 would + # be returned. # - # @param resource_group_name [String] The name of the resource group within - # the user's subscription. + # @param resource_group_name [String] The name of the resource group within the + # user's subscription. # @param account_name [String] The name of the storage account within the # specified resource group. Storage account names must be between 3 and 24 # characters in length and use numbers and lower-case letters only. diff --git a/Samples/azure-storage/Azure.Ruby/generated/azure_storage/storage_management_client.rb b/Samples/azure-storage/Azure.Ruby/generated/azure_storage/storage_management_client.rb index ff6fcb4ee6..0ba3552e8e 100644 --- a/Samples/azure-storage/Azure.Ruby/generated/azure_storage/storage_management_client.rb +++ b/Samples/azure-storage/Azure.Ruby/generated/azure_storage/storage_management_client.rb @@ -64,7 +64,7 @@ def initialize(credentials, base_url = nil, options = nil) # # Makes a request and returns the body of the response. - # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete. + # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete. # @param path [String] the path, relative to {base_url}. # @param options [Hash{String=>String}] specifying any request options like :body. # @return [Hash{String=>String}] containing the body of the response. @@ -125,7 +125,7 @@ def make_request_async(method, path, options = {}) def add_telemetry sdk_information = 'azure_storage' if defined? Petstore::VERSION - sdk_information = "#{sdk_information}/#{Petstore::VERSION}" + sdk_information = "#{sdk_information}/#{Petstore::VERSION}" end add_user_agent_information(sdk_information) end diff --git a/Samples/petstore/Ruby/generated/petstore.rb b/Samples/petstore/Ruby/generated/petstore.rb index c830bacfd5..b93c87de39 100644 --- a/Samples/petstore/Ruby/generated/petstore.rb +++ b/Samples/petstore/Ruby/generated/petstore.rb @@ -19,9 +19,9 @@ module Petstore autoload :SwaggerPetstore, 'generated/petstore/swagger_petstore.rb' module Models - autoload :Pet, 'generated/petstore/models/pet.rb' - autoload :User, 'generated/petstore/models/user.rb' autoload :Tag, 'generated/petstore/models/tag.rb' + autoload :User, 'generated/petstore/models/user.rb' + autoload :Pet, 'generated/petstore/models/pet.rb' autoload :Category, 'generated/petstore/models/category.rb' autoload :Order, 'generated/petstore/models/order.rb' end diff --git a/Samples/petstore/Ruby/generated/petstore/models/category.rb b/Samples/petstore/Ruby/generated/petstore/models/category.rb index ef1aa00f66..67bb7078e5 100644 --- a/Samples/petstore/Ruby/generated/petstore/models/category.rb +++ b/Samples/petstore/Ruby/generated/petstore/models/category.rb @@ -4,7 +4,7 @@ module Petstore module Models # # Model object. - # + # # class Category # @return [Integer] diff --git a/Samples/petstore/Ruby/generated/petstore/models/order.rb b/Samples/petstore/Ruby/generated/petstore/models/order.rb index 7c521abb3f..0ce8839621 100644 --- a/Samples/petstore/Ruby/generated/petstore/models/order.rb +++ b/Samples/petstore/Ruby/generated/petstore/models/order.rb @@ -4,7 +4,7 @@ module Petstore module Models # # Model object. - # + # # class Order # @return [Integer] diff --git a/Samples/petstore/Ruby/generated/petstore/models/tag.rb b/Samples/petstore/Ruby/generated/petstore/models/tag.rb index e2cbaebe0c..30a4d6bc55 100644 --- a/Samples/petstore/Ruby/generated/petstore/models/tag.rb +++ b/Samples/petstore/Ruby/generated/petstore/models/tag.rb @@ -4,7 +4,7 @@ module Petstore module Models # # Model object. - # + # # class Tag # @return [Integer] diff --git a/Samples/petstore/Ruby/generated/petstore/models/user.rb b/Samples/petstore/Ruby/generated/petstore/models/user.rb index 7bc33130cc..a3875040af 100644 --- a/Samples/petstore/Ruby/generated/petstore/models/user.rb +++ b/Samples/petstore/Ruby/generated/petstore/models/user.rb @@ -4,7 +4,7 @@ module Petstore module Models # # Model object. - # + # # class User # @return [Integer] diff --git a/Samples/petstore/Ruby/generated/petstore/swagger_petstore.rb b/Samples/petstore/Ruby/generated/petstore/swagger_petstore.rb index d38bf4b93e..b3e8b21deb 100644 --- a/Samples/petstore/Ruby/generated/petstore/swagger_petstore.rb +++ b/Samples/petstore/Ruby/generated/petstore/swagger_petstore.rb @@ -29,7 +29,7 @@ def initialize(credentials, base_url = nil, options = nil) # # Makes a request and returns the body of the response. - # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete. + # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete. # @param path [String] the path, relative to {base_url}. # @param options [Hash{String=>String}] specifying any request options like :body. # @return [Hash{String=>String}] containing the body of the response. @@ -1933,7 +1933,7 @@ def delete_user_async(username, custom_headers = nil) def add_telemetry sdk_information = 'petstore' if defined? Petstore::VERSION - sdk_information = "#{sdk_information}/#{Petstore::VERSION}" + sdk_information = "#{sdk_information}/#{Petstore::VERSION}" end add_user_agent_information(sdk_information) end From 50f1377fb4bf334989680c16d4228c4291bb9885 Mon Sep 17 00:00:00 2001 From: Garrett Serack Date: Fri, 18 Nov 2016 15:15:43 -0800 Subject: [PATCH 05/10] regenerated nodejs (line endings) --- .../models/checkNameAvailabilityResult.js | 6 +- .../Azure.NodeJS/models/customDomain.js | 4 +- .../Azure.NodeJS/models/endpoints.js | 8 +- .../Azure.NodeJS/models/index.d.ts | 201 +-- .../Azure.NodeJS/models/index.js | 2 + .../Azure.NodeJS/models/resource.js | 10 +- .../Azure.NodeJS/models/storageAccount.js | 44 +- ...eAccountCheckNameAvailabilityParameters.js | 4 +- .../models/storageAccountCreateParameters.js | 8 +- .../Azure.NodeJS/models/storageAccountKeys.js | 4 +- .../models/storageAccountProperties.js | 42 +- ...torageAccountPropertiesCreateParameters.js | 2 +- ...torageAccountPropertiesUpdateParameters.js | 8 +- .../storageAccountRegenerateKeyParameters.js | 2 +- .../models/storageAccountUpdateParameters.js | 12 +- .../Azure.NodeJS/models/usage.js | 12 +- .../Azure.NodeJS/models/usageName.js | 4 +- .../Azure.NodeJS/operations/index.d.ts | 118 +- .../operations/storageAccounts.js | 147 +- .../operations/usageOperations.js | 6 +- .../Azure.NodeJS/storageManagementClient.js | 8 +- Samples/petstore/NodeJS/models/category.js | 4 +- Samples/petstore/NodeJS/models/index.d.ts | 76 +- Samples/petstore/NodeJS/models/index.js | 2 +- Samples/petstore/NodeJS/models/order.js | 12 +- Samples/petstore/NodeJS/models/pet.js | 16 +- Samples/petstore/NodeJS/models/tag.js | 4 +- Samples/petstore/NodeJS/models/user.js | 16 +- Samples/petstore/NodeJS/swaggerPetstore.d.ts | 216 +-- Samples/petstore/NodeJS/swaggerPetstore.js | 440 +++--- .../azureCompositeModel.d.ts | 28 +- .../azureCompositeModel.js | 44 +- .../models/arrayWrapper.js | 4 +- .../AzureCompositeModelClient/models/basic.js | 8 +- .../models/booleanWrapper.js | 6 +- .../models/byteWrapper.js | 4 +- .../AzureCompositeModelClient/models/cat.js | 6 +- .../models/catalogArray.js | 4 +- .../models/catalogArrayOfDictionary.js | 4 +- .../models/catalogDictionary.js | 4 +- .../models/catalogDictionaryOfArray.js | 4 +- .../models/cookiecuttershark.js | 2 +- .../models/dateWrapper.js | 6 +- .../models/datetimeWrapper.js | 6 +- .../models/datetimerfc1123Wrapper.js | 6 +- .../models/dictionaryWrapper.js | 4 +- .../AzureCompositeModelClient/models/dog.js | 4 +- .../models/doubleWrapper.js | 6 +- .../models/durationWrapper.js | 4 +- .../models/errorModel.js | 6 +- .../AzureCompositeModelClient/models/fish.js | 10 +- .../models/floatWrapper.js | 6 +- .../models/goblinshark.js | 4 +- .../models/index.d.ts | 132 +- .../AzureCompositeModelClient/models/index.js | 4 +- .../models/intWrapper.js | 6 +- .../models/longWrapper.js | 6 +- .../AzureCompositeModelClient/models/pet.js | 6 +- .../models/product.js | 12 +- .../models/readonlyObj.js | 6 +- .../models/salmon.js | 6 +- .../models/sawshark.js | 4 +- .../AzureCompositeModelClient/models/shark.js | 6 +- .../models/siamese.js | 4 +- .../models/stringWrapper.js | 8 +- .../operations/arrayModel.js | 40 +- .../operations/basicOperations.js | 48 +- .../operations/dictionary.js | 46 +- .../operations/index.d.ts | 310 ++-- .../operations/index.js | 2 +- .../operations/inheritance.js | 24 +- .../operations/polymorphicrecursive.js | 26 +- .../operations/polymorphism.js | 44 +- .../operations/primitive.js | 216 +-- .../operations/readonlyproperty.js | 18 +- .../autoRestParameterGroupingTestService.d.ts | 2 +- .../autoRestParameterGroupingTestService.js | 8 +- .../models/errorModel.js | 6 +- .../models/firstParameterGroup.js | 6 +- .../AzureParameterGrouping/models/index.d.ts | 26 +- .../AzureParameterGrouping/models/index.js | 2 +- ...ingPostMultiParamGroupsSecondParamGroup.js | 6 +- ...parameterGroupingPostOptionalParameters.js | 6 +- ...parameterGroupingPostRequiredParameters.js | 10 +- .../operations/index.d.ts | 52 +- .../operations/index.js | 2 +- .../operations/parameterGrouping.js | 62 +- .../autoRestReportServiceForAzure.d.ts | 6 +- .../autoRestReportServiceForAzure.js | 14 +- .../AzureReport/models/errorModel.js | 6 +- .../AzureReport/models/index.d.ts | 6 +- .../AzureReport/models/index.js | 2 +- ...autoRestResourceFlatteningTestService.d.ts | 48 +- .../autoRestResourceFlatteningTestService.js | 72 +- .../AzureResource/models/errorModel.js | 6 +- .../AzureResource/models/flattenedProduct.js | 8 +- .../AzureResource/models/index.d.ts | 34 +- .../AzureResource/models/index.js | 2 +- .../AzureResource/models/resource.js | 12 +- .../models/resourceCollection.js | 14 +- ...oRestAzureSpecialParametersTestClient.d.ts | 2 +- ...utoRestAzureSpecialParametersTestClient.js | 10 +- .../AzureSpecials/models/errorModel.js | 8 +- ...omNamedRequestIdParamGroupingParameters.js | 4 +- .../AzureSpecials/models/index.d.ts | 14 +- .../AzureSpecials/models/index.js | 2 +- .../AzureSpecials/models/odataFilter.js | 6 +- .../operations/apiVersionDefault.js | 26 +- .../operations/apiVersionLocal.js | 28 +- .../AzureSpecials/operations/header.js | 20 +- .../AzureSpecials/operations/index.d.ts | 152 +- .../AzureSpecials/operations/index.js | 2 +- .../AzureSpecials/operations/odata.js | 14 +- .../operations/skipUrlEncoding.js | 54 +- .../operations/subscriptionInCredentials.js | 32 +- .../operations/subscriptionInMethod.js | 34 +- .../operations/xMsClientRequestId.js | 16 +- .../autoRestParameterizedHostTestClient.d.ts | 2 +- .../autoRestParameterizedHostTestClient.js | 10 +- .../CustomBaseUri/models/errorModel.js | 6 +- .../CustomBaseUri/models/index.d.ts | 6 +- .../CustomBaseUri/models/index.js | 2 +- .../CustomBaseUri/operations/index.d.ts | 8 +- .../CustomBaseUri/operations/index.js | 2 +- .../CustomBaseUri/operations/paths.js | 10 +- .../Head/autoRestHeadTestService.d.ts | 2 +- .../Head/autoRestHeadTestService.js | 8 +- .../AcceptanceTests/Head/models/index.d.ts | 2 +- .../AcceptanceTests/Head/models/index.js | 2 +- .../Head/operations/httpSuccess.js | 20 +- .../Head/operations/index.d.ts | 14 +- .../AcceptanceTests/Head/operations/index.js | 2 +- .../autoRestHeadExceptionTestService.d.ts | 2 +- .../autoRestHeadExceptionTestService.js | 8 +- .../HeadExceptions/models/index.d.ts | 2 +- .../HeadExceptions/models/index.js | 2 +- .../operations/headException.js | 20 +- .../HeadExceptions/operations/index.d.ts | 14 +- .../HeadExceptions/operations/index.js | 2 +- ...toRestLongRunningOperationTestService.d.ts | 2 +- ...autoRestLongRunningOperationTestService.js | 8 +- .../AcceptanceTests/Lro/models/index.d.ts | 62 +- .../AcceptanceTests/Lro/models/index.js | 4 +- .../Lro/models/operationResult.js | 10 +- .../Lro/models/operationResultError.js | 6 +- .../AcceptanceTests/Lro/models/product.js | 6 +- .../AcceptanceTests/Lro/models/resource.js | 12 +- .../AcceptanceTests/Lro/models/sku.js | 6 +- .../AcceptanceTests/Lro/models/subProduct.js | 6 +- .../AcceptanceTests/Lro/models/subResource.js | 4 +- .../AcceptanceTests/Lro/operations/index.d.ts | 1342 ++++++++--------- .../AcceptanceTests/Lro/operations/index.js | 2 +- .../Lro/operations/lRORetrys.js | 148 +- .../AcceptanceTests/Lro/operations/lROSADs.js | 586 +++---- .../AcceptanceTests/Lro/operations/lROs.js | 744 ++++----- .../Lro/operations/lROsCustomHeader.js | 114 +- .../Paging/autoRestPagingTestService.d.ts | 2 +- .../Paging/autoRestPagingTestService.js | 8 +- .../Paging/models/customParameterGroup.js | 6 +- .../AcceptanceTests/Paging/models/index.d.ts | 104 +- .../AcceptanceTests/Paging/models/index.js | 8 +- .../Paging/models/odataProductResult.js | 6 +- .../Paging/models/operationResult.js | 4 +- .../models/pagingGetMultiplePagesOptions.js | 6 +- ...ngGetMultiplePagesWithOffsetNextOptions.js | 6 +- ...pagingGetMultiplePagesWithOffsetOptions.js | 8 +- .../pagingGetOdataMultiplePagesOptions.js | 6 +- .../AcceptanceTests/Paging/models/product.js | 8 +- .../Paging/models/productProperties.js | 6 +- .../Paging/models/productResult.js | 6 +- .../Paging/operations/index.d.ts | 182 +-- .../Paging/operations/index.js | 2 +- .../Paging/operations/paging.js | 226 +-- .../StorageManagementClient/models/bar.js | 16 +- .../models/checkNameAvailabilityResult.js | 8 +- .../models/customDomain.js | 6 +- .../models/endpoints.js | 16 +- .../StorageManagementClient/models/foo.js | 16 +- .../StorageManagementClient/models/index.d.ts | 230 +-- .../StorageManagementClient/models/index.js | 7 +- .../models/resource.js | 12 +- .../models/storageAccount.js | 56 +- ...eAccountCheckNameAvailabilityParameters.js | 6 +- .../models/storageAccountCreateParameters.js | 4 +- .../models/storageAccountKeys.js | 6 +- .../models/storageAccountListResult.js | 4 +- .../storageAccountRegenerateKeyParameters.js | 4 +- .../models/storageAccountUpdateParameters.js | 10 +- .../models/subResource.js | 4 +- .../StorageManagementClient/models/usage.js | 14 +- .../models/usageListResult.js | 4 +- .../models/usageName.js | 6 +- .../operations/index.d.ts | 114 +- .../operations/index.js | 2 +- .../operations/storageAccounts.js | 136 +- .../operations/usageOperations.js | 8 +- .../storageManagementClient.d.ts | 2 +- .../storageManagementClient.js | 10 +- .../microsoftAzureTestUrl.d.ts | 2 +- .../microsoftAzureTestUrl.js | 10 +- .../models/errorModel.js | 6 +- .../models/index.d.ts | 10 +- .../SubscriptionIdApiVersion/models/index.js | 2 +- .../models/sampleResourceGroup.js | 6 +- .../operations/group.js | 10 +- .../operations/index.d.ts | 8 +- .../operations/index.js | 2 +- .../autoRestSwaggerBATArrayService.d.ts | 2 +- .../autoRestSwaggerBATArrayService.js | 2 +- .../BodyArray/models/errorModel.js | 6 +- .../BodyArray/models/index.d.ts | 10 +- .../AcceptanceTests/BodyArray/models/index.js | 2 +- .../BodyArray/models/product.js | 6 +- .../BodyArray/operations/arrayModel.js | 462 +++--- .../BodyArray/operations/index.d.ts | 294 ++-- .../BodyArray/operations/index.js | 2 +- .../BodyBoolean/autoRestBoolTestService.d.ts | 2 +- .../BodyBoolean/autoRestBoolTestService.js | 2 +- .../BodyBoolean/models/errorModel.js | 6 +- .../BodyBoolean/models/index.d.ts | 6 +- .../BodyBoolean/models/index.js | 2 +- .../BodyBoolean/operations/bool.js | 46 +- .../BodyBoolean/operations/index.d.ts | 30 +- .../BodyBoolean/operations/index.js | 2 +- .../autoRestSwaggerBATByteService.d.ts | 2 +- .../BodyByte/autoRestSwaggerBATByteService.js | 2 +- .../BodyByte/models/errorModel.js | 6 +- .../BodyByte/models/index.d.ts | 6 +- .../AcceptanceTests/BodyByte/models/index.js | 2 +- .../BodyByte/operations/byteModel.js | 36 +- .../BodyByte/operations/index.d.ts | 24 +- .../BodyByte/operations/index.js | 2 +- .../autoRestComplexTestService.d.ts | 2 +- .../BodyComplex/autoRestComplexTestService.js | 2 +- .../BodyComplex/models/arrayWrapper.js | 4 +- .../BodyComplex/models/basic.js | 8 +- .../BodyComplex/models/booleanWrapper.js | 6 +- .../BodyComplex/models/byteWrapper.js | 4 +- .../AcceptanceTests/BodyComplex/models/cat.js | 6 +- .../BodyComplex/models/cookiecuttershark.js | 2 +- .../BodyComplex/models/dateWrapper.js | 6 +- .../BodyComplex/models/datetimeWrapper.js | 6 +- .../models/datetimerfc1123Wrapper.js | 6 +- .../BodyComplex/models/dictionaryWrapper.js | 4 +- .../AcceptanceTests/BodyComplex/models/dog.js | 4 +- .../BodyComplex/models/doubleWrapper.js | 6 +- .../BodyComplex/models/durationWrapper.js | 4 +- .../BodyComplex/models/errorModel.js | 6 +- .../BodyComplex/models/fish.js | 10 +- .../BodyComplex/models/floatWrapper.js | 6 +- .../BodyComplex/models/goblinshark.js | 4 +- .../BodyComplex/models/index.d.ts | 114 +- .../BodyComplex/models/index.js | 4 +- .../BodyComplex/models/intWrapper.js | 6 +- .../BodyComplex/models/longWrapper.js | 6 +- .../AcceptanceTests/BodyComplex/models/pet.js | 6 +- .../BodyComplex/models/readonlyObj.js | 6 +- .../BodyComplex/models/salmon.js | 6 +- .../BodyComplex/models/sawshark.js | 4 +- .../BodyComplex/models/shark.js | 6 +- .../BodyComplex/models/siamese.js | 4 +- .../BodyComplex/models/stringWrapper.js | 8 +- .../BodyComplex/operations/arrayModel.js | 40 +- .../BodyComplex/operations/basicOperations.js | 48 +- .../BodyComplex/operations/dictionary.js | 46 +- .../BodyComplex/operations/index.d.ts | 310 ++-- .../BodyComplex/operations/index.js | 2 +- .../BodyComplex/operations/inheritance.js | 24 +- .../operations/polymorphicrecursive.js | 26 +- .../BodyComplex/operations/polymorphism.js | 44 +- .../BodyComplex/operations/primitive.js | 216 +-- .../operations/readonlyproperty.js | 18 +- .../BodyDate/autoRestDateTestService.d.ts | 2 +- .../BodyDate/autoRestDateTestService.js | 2 +- .../BodyDate/models/errorModel.js | 6 +- .../BodyDate/models/index.d.ts | 6 +- .../AcceptanceTests/BodyDate/models/index.js | 2 +- .../BodyDate/operations/dateModel.js | 62 +- .../BodyDate/operations/index.d.ts | 38 +- .../BodyDate/operations/index.js | 2 +- .../autoRestDateTimeTestService.d.ts | 2 +- .../autoRestDateTimeTestService.js | 2 +- .../BodyDateTime/models/errorModel.js | 6 +- .../BodyDateTime/models/index.d.ts | 6 +- .../BodyDateTime/models/index.js | 2 +- .../BodyDateTime/operations/datetime.js | 152 +- .../BodyDateTime/operations/index.d.ts | 90 +- .../BodyDateTime/operations/index.js | 2 +- .../autoRestRFC1123DateTimeTestService.d.ts | 2 +- .../autoRestRFC1123DateTimeTestService.js | 2 +- .../BodyDateTimeRfc1123/models/errorModel.js | 6 +- .../BodyDateTimeRfc1123/models/index.d.ts | 6 +- .../BodyDateTimeRfc1123/models/index.js | 2 +- .../operations/datetimerfc1123.js | 68 +- .../BodyDateTimeRfc1123/operations/index.d.ts | 42 +- .../BodyDateTimeRfc1123/operations/index.js | 2 +- .../autoRestSwaggerBATdictionaryService.d.ts | 2 +- .../autoRestSwaggerBATdictionaryService.js | 2 +- .../BodyDictionary/models/errorModel.js | 6 +- .../BodyDictionary/models/index.d.ts | 10 +- .../BodyDictionary/models/index.js | 2 +- .../BodyDictionary/models/widget.js | 6 +- .../BodyDictionary/operations/dictionary.js | 458 +++--- .../BodyDictionary/operations/index.d.ts | 292 ++-- .../BodyDictionary/operations/index.js | 2 +- .../autoRestDurationTestService.d.ts | 2 +- .../autoRestDurationTestService.js | 2 +- .../BodyDuration/models/errorModel.js | 6 +- .../BodyDuration/models/index.d.ts | 6 +- .../BodyDuration/models/index.js | 2 +- .../BodyDuration/operations/duration.js | 30 +- .../BodyDuration/operations/index.d.ts | 20 +- .../BodyDuration/operations/index.js | 2 +- .../autoRestSwaggerBATFileService.d.ts | 2 +- .../BodyFile/autoRestSwaggerBATFileService.js | 2 +- .../BodyFile/models/errorModel.js | 6 +- .../BodyFile/models/index.d.ts | 6 +- .../AcceptanceTests/BodyFile/models/index.js | 2 +- .../BodyFile/operations/files.js | 20 +- .../BodyFile/operations/index.d.ts | 14 +- .../BodyFile/operations/index.js | 2 +- .../autoRestSwaggerBATFormDataService.d.ts | 2 +- .../autoRestSwaggerBATFormDataService.js | 2 +- .../BodyFormData/models/errorModel.js | 6 +- .../BodyFormData/models/index.d.ts | 6 +- .../BodyFormData/models/index.js | 2 +- .../BodyFormData/operations/formdata.js | 28 +- .../BodyFormData/operations/index.d.ts | 16 +- .../BodyFormData/operations/index.js | 2 +- .../autoRestIntegerTestService.d.ts | 2 +- .../BodyInteger/autoRestIntegerTestService.js | 2 +- .../BodyInteger/models/errorModel.js | 6 +- .../BodyInteger/models/index.d.ts | 6 +- .../BodyInteger/models/index.js | 2 +- .../BodyInteger/operations/index.d.ts | 68 +- .../BodyInteger/operations/index.js | 2 +- .../BodyInteger/operations/intModel.js | 108 +- .../BodyNumber/autoRestNumberTestService.d.ts | 2 +- .../BodyNumber/autoRestNumberTestService.js | 2 +- .../BodyNumber/models/errorModel.js | 6 +- .../BodyNumber/models/index.d.ts | 6 +- .../BodyNumber/models/index.js | 2 +- .../BodyNumber/operations/index.d.ts | 118 +- .../BodyNumber/operations/index.js | 2 +- .../BodyNumber/operations/number.js | 186 +-- .../BodyString/autoRestSwaggerBATService.d.ts | 2 +- .../BodyString/autoRestSwaggerBATService.js | 2 +- .../BodyString/models/errorModel.js | 6 +- .../BodyString/models/index.d.ts | 8 +- .../BodyString/models/index.js | 2 +- .../BodyString/models/refColorConstant.js | 4 +- .../BodyString/operations/enumModel.js | 50 +- .../BodyString/operations/index.d.ts | 94 +- .../BodyString/operations/index.js | 2 +- .../BodyString/operations/string.js | 100 +- .../complexModelClient.d.ts | 28 +- .../ComplexModelClient/complexModelClient.js | 38 +- .../ComplexModelClient/models/catalogArray.js | 4 +- .../models/catalogArrayOfDictionary.js | 4 +- .../models/catalogDictionary.js | 4 +- .../models/catalogDictionaryOfArray.js | 4 +- .../ComplexModelClient/models/errorModel.js | 6 +- .../ComplexModelClient/models/index.d.ts | 24 +- .../ComplexModelClient/models/index.js | 2 +- .../ComplexModelClient/models/product.js | 12 +- .../compositeBoolInt.d.ts | 2 +- .../compositeBoolInt.js | 2 +- .../models/errorModel.js | 6 +- .../CompositeBoolIntClient/models/index.d.ts | 6 +- .../CompositeBoolIntClient/models/index.js | 2 +- .../CompositeBoolIntClient/operations/bool.js | 46 +- .../operations/index.d.ts | 96 +- .../operations/index.js | 2 +- .../operations/intModel.js | 108 +- .../autoRestParameterizedHostTestClient.d.ts | 2 +- .../autoRestParameterizedHostTestClient.js | 4 +- .../CustomBaseUri/models/errorModel.js | 6 +- .../CustomBaseUri/models/index.d.ts | 6 +- .../CustomBaseUri/models/index.js | 2 +- .../CustomBaseUri/operations/index.d.ts | 8 +- .../CustomBaseUri/operations/index.js | 2 +- .../CustomBaseUri/operations/paths.js | 10 +- ...RestParameterizedCustomHostTestClient.d.ts | 2 +- ...toRestParameterizedCustomHostTestClient.js | 4 +- .../models/errorModel.js | 6 +- .../models/index.d.ts | 6 +- .../CustomBaseUriMoreOptions/models/index.js | 2 +- .../operations/index.d.ts | 14 +- .../operations/index.js | 2 +- .../operations/paths.js | 16 +- .../autoRestSwaggerBATHeaderService.d.ts | 2 +- .../Header/autoRestSwaggerBATHeaderService.js | 2 +- .../Header/models/errorModel.js | 6 +- .../AcceptanceTests/Header/models/index.d.ts | 6 +- .../AcceptanceTests/Header/models/index.js | 2 +- .../Header/operations/header.js | 258 ++-- .../Header/operations/index.d.ts | 194 +-- .../Header/operations/index.js | 2 +- ...autoRestHttpInfrastructureTestService.d.ts | 2 +- .../autoRestHttpInfrastructureTestService.js | 2 +- .../Expected/AcceptanceTests/Http/models/a.js | 4 +- .../Expected/AcceptanceTests/Http/models/b.js | 4 +- .../Expected/AcceptanceTests/Http/models/c.js | 4 +- .../Expected/AcceptanceTests/Http/models/d.js | 4 +- .../AcceptanceTests/Http/models/errorModel.js | 6 +- .../AcceptanceTests/Http/models/index.d.ts | 14 +- .../AcceptanceTests/Http/models/index.js | 2 +- .../Http/operations/httpClientFailure.js | 192 +-- .../Http/operations/httpFailure.js | 20 +- .../Http/operations/httpRedirects.js | 120 +- .../Http/operations/httpRetry.js | 74 +- .../Http/operations/httpServerFailure.js | 34 +- .../Http/operations/httpSuccess.js | 166 +- .../Http/operations/index.d.ts | 506 +++---- .../AcceptanceTests/Http/operations/index.js | 2 +- .../Http/operations/multipleResponses.js | 206 +-- ...autoRestResourceFlatteningTestService.d.ts | 96 +- .../autoRestResourceFlatteningTestService.js | 126 +- .../ModelFlattening/models/baseProduct.js | 6 +- .../ModelFlattening/models/errorModel.js | 8 +- .../models/flattenParameterGroup.js | 14 +- .../models/flattenedProduct.js | 10 +- .../ModelFlattening/models/genericUrl.js | 4 +- .../ModelFlattening/models/index.d.ts | 64 +- .../ModelFlattening/models/index.js | 2 +- .../ModelFlattening/models/resource.js | 12 +- .../models/resourceCollection.js | 16 +- .../ModelFlattening/models/simpleProduct.js | 8 +- .../autoRestParameterFlattening.d.ts | 2 +- .../autoRestParameterFlattening.js | 2 +- .../models/availabilitySetUpdateParameters.js | 4 +- .../ParameterFlattening/models/index.d.ts | 4 +- .../ParameterFlattening/models/index.js | 2 +- .../operations/availabilitySets.js | 16 +- .../ParameterFlattening/operations/index.d.ts | 12 +- .../ParameterFlattening/operations/index.js | 2 +- .../Report/autoRestReportService.d.ts | 6 +- .../Report/autoRestReportService.js | 8 +- .../Report/models/errorModel.js | 6 +- .../AcceptanceTests/Report/models/index.d.ts | 6 +- .../AcceptanceTests/Report/models/index.js | 2 +- .../autoRestRequiredOptionalTestService.d.ts | 2 +- .../autoRestRequiredOptionalTestService.js | 4 +- .../models/arrayOptionalWrapper.js | 4 +- .../RequiredOptional/models/arrayWrapper.js | 4 +- .../models/classOptionalWrapper.js | 8 +- .../RequiredOptional/models/classWrapper.js | 8 +- .../RequiredOptional/models/errorModel.js | 6 +- .../RequiredOptional/models/index.d.ts | 58 +- .../RequiredOptional/models/index.js | 4 +- .../models/intOptionalWrapper.js | 4 +- .../RequiredOptional/models/intWrapper.js | 4 +- .../RequiredOptional/models/product.js | 6 +- .../models/stringOptionalWrapper.js | 4 +- .../RequiredOptional/models/stringWrapper.js | 4 +- .../RequiredOptional/operations/explicit.js | 226 +-- .../RequiredOptional/operations/implicit.js | 54 +- .../RequiredOptional/operations/index.d.ts | 186 +-- .../RequiredOptional/operations/index.js | 2 +- .../Url/autoRestUrlTestService.d.ts | 2 +- .../Url/autoRestUrlTestService.js | 4 +- .../AcceptanceTests/Url/models/errorModel.js | 6 +- .../AcceptanceTests/Url/models/index.d.ts | 6 +- .../AcceptanceTests/Url/models/index.js | 2 +- .../AcceptanceTests/Url/operations/index.d.ts | 346 ++--- .../AcceptanceTests/Url/operations/index.js | 2 +- .../Url/operations/pathItems.js | 58 +- .../AcceptanceTests/Url/operations/paths.js | 184 +-- .../AcceptanceTests/Url/operations/queries.js | 246 +-- .../Validation/autoRestValidationTest.d.ts | 54 +- .../Validation/autoRestValidationTest.js | 66 +- .../Validation/models/childProduct.js | 4 +- .../Validation/models/constantProduct.js | 2 +- .../Validation/models/errorModel.js | 8 +- .../Validation/models/index.d.ts | 64 +- .../Validation/models/index.js | 4 +- .../Validation/models/product.js | 14 +- 477 files changed, 8393 insertions(+), 8292 deletions(-) diff --git a/Samples/azure-storage/Azure.NodeJS/models/checkNameAvailabilityResult.js b/Samples/azure-storage/Azure.NodeJS/models/checkNameAvailabilityResult.js index 2a7e434354..fe3bd581c1 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/checkNameAvailabilityResult.js +++ b/Samples/azure-storage/Azure.NodeJS/models/checkNameAvailabilityResult.js @@ -13,14 +13,14 @@ * whether the name is available for you to use. If true, the name is * available. If false, the name has already been taken or invalid and cannot * be used. - * + * * @member {string} [reason] Gets the reason that a storage account name could * not be used. The Reason element is only returned if NameAvailable is false. * Possible values include: 'AccountNameInvalid', 'AlreadyExists' - * + * * @member {string} [message] Gets an error message explaining the Reason value * in more detail. - * + * */ function CheckNameAvailabilityResult() { } diff --git a/Samples/azure-storage/Azure.NodeJS/models/customDomain.js b/Samples/azure-storage/Azure.NodeJS/models/customDomain.js index 4c15399c60..4e4e06f48d 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/customDomain.js +++ b/Samples/azure-storage/Azure.NodeJS/models/customDomain.js @@ -12,10 +12,10 @@ * * @member {string} name Gets or sets the custom domain name. Name is the CNAME * source. - * + * * @member {boolean} [useSubDomain] Indicates whether indirect CName validation * is enabled. Default value is false. This should only be set on updates - * + * */ function CustomDomain() { } diff --git a/Samples/azure-storage/Azure.NodeJS/models/endpoints.js b/Samples/azure-storage/Azure.NodeJS/models/endpoints.js index 84ac94847a..9e2ae0a6b4 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/endpoints.js +++ b/Samples/azure-storage/Azure.NodeJS/models/endpoints.js @@ -11,13 +11,13 @@ * table object. * * @member {string} [blob] Gets the blob endpoint. - * + * * @member {string} [queue] Gets the queue endpoint. - * + * * @member {string} [table] Gets the table endpoint. - * + * * @member {string} [file] Gets the file endpoint. - * + * */ function Endpoints() { } diff --git a/Samples/azure-storage/Azure.NodeJS/models/index.d.ts b/Samples/azure-storage/Azure.NodeJS/models/index.d.ts index ce1e97bd07..a98d35b7f6 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/index.d.ts +++ b/Samples/azure-storage/Azure.NodeJS/models/index.d.ts @@ -10,9 +10,9 @@ exports.CloudError = msRestAzure.CloudError; * Initializes a new instance of the StorageAccountCheckNameAvailabilityParameters class. * @constructor * @member {string} name - * + * * @member {string} [type] Default value: 'Microsoft.Storage/storageAccounts' . - * + * */ export interface StorageAccountCheckNameAvailabilityParameters { name: string; @@ -29,14 +29,14 @@ export interface StorageAccountCheckNameAvailabilityParameters { * whether the name is available for you to use. If true, the name is * available. If false, the name has already been taken or invalid and cannot * be used. - * + * * @member {string} [reason] Gets the reason that a storage account name could * not be used. The Reason element is only returned if NameAvailable is false. * Possible values include: 'AccountNameInvalid', 'AlreadyExists' - * + * * @member {string} [message] Gets an error message explaining the Reason value * in more detail. - * + * */ export interface CheckNameAvailabilityResult { nameAvailable?: boolean; @@ -51,7 +51,7 @@ export interface CheckNameAvailabilityResult { * @member {string} accountType Gets or sets the account type. Possible values * include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', 'Standard_RAGRS', * 'Premium_LRS' - * + * */ export interface StorageAccountPropertiesCreateParameters { accountType: string; @@ -64,15 +64,15 @@ export interface StorageAccountPropertiesCreateParameters { * The parameters to provide for the account. * * @member {string} location Resource location - * + * * @member {object} [tags] Resource tags - * + * * @member {object} [properties] - * + * * @member {string} [properties.accountType] Gets or sets the account type. * Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', * 'Standard_RAGRS', 'Premium_LRS' - * + * */ export interface StorageAccountCreateParameters extends BaseResource { location: string; @@ -88,13 +88,13 @@ export interface StorageAccountCreateParameters extends BaseResource { * table object. * * @member {string} [blob] Gets the blob endpoint. - * + * * @member {string} [queue] Gets the queue endpoint. - * + * * @member {string} [table] Gets the table endpoint. - * + * * @member {string} [file] Gets the file endpoint. - * + * */ export interface Endpoints { blob?: string; @@ -112,10 +112,10 @@ export interface Endpoints { * * @member {string} name Gets or sets the custom domain name. Name is the CNAME * source. - * + * * @member {boolean} [useSubDomain] Indicates whether indirect CName validation * is enabled. Default value is false. This should only be set on updates - * + * */ export interface CustomDomain { name: string; @@ -129,71 +129,71 @@ export interface CustomDomain { * @member {string} [provisioningState] Gets the status of the storage account * at the time the operation was called. Possible values include: 'Creating', * 'ResolvingDNS', 'Succeeded' - * + * * @member {string} [accountType] Gets the type of the storage account. * Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', * 'Standard_RAGRS', 'Premium_LRS' - * + * * @member {object} [primaryEndpoints] Gets the URLs that are used to perform a * retrieval of a public blob, queue or table object.Note that StandardZRS and * PremiumLRS accounts only return the blob endpoint. - * + * * @member {string} [primaryEndpoints.blob] Gets the blob endpoint. - * + * * @member {string} [primaryEndpoints.queue] Gets the queue endpoint. - * + * * @member {string} [primaryEndpoints.table] Gets the table endpoint. - * + * * @member {string} [primaryEndpoints.file] Gets the file endpoint. - * + * * @member {string} [primaryLocation] Gets the location of the primary for the * storage account. - * + * * @member {string} [statusOfPrimary] Gets the status indicating whether the * primary location of the storage account is available or unavailable. * Possible values include: 'Available', 'Unavailable' - * + * * @member {date} [lastGeoFailoverTime] Gets the timestamp of the most recent * instance of a failover to the secondary location. Only the most recent * timestamp is retained. This element is not returned if there has never been * a failover instance. Only available if the accountType is StandardGRS or * StandardRAGRS. - * + * * @member {string} [secondaryLocation] Gets the location of the geo replicated * secondary for the storage account. Only available if the accountType is * StandardGRS or StandardRAGRS. - * + * * @member {string} [statusOfSecondary] Gets the status indicating whether the * secondary location of the storage account is available or unavailable. Only * available if the accountType is StandardGRS or StandardRAGRS. Possible * values include: 'Available', 'Unavailable' - * + * * @member {date} [creationTime] Gets the creation date and time of the storage * account in UTC. - * + * * @member {object} [customDomain] Gets the user assigned custom domain * assigned to this storage account. - * + * * @member {string} [customDomain.name] Gets or sets the custom domain name. * Name is the CNAME source. - * + * * @member {boolean} [customDomain.useSubDomain] Indicates whether indirect * CName validation is enabled. Default value is false. This should only be set * on updates - * + * * @member {object} [secondaryEndpoints] Gets the URLs that are used to perform * a retrieval of a public blob, queue or table object from the secondary * location of the storage account. Only available if the accountType is * StandardRAGRS. - * + * * @member {string} [secondaryEndpoints.blob] Gets the blob endpoint. - * + * * @member {string} [secondaryEndpoints.queue] Gets the queue endpoint. - * + * * @member {string} [secondaryEndpoints.table] Gets the table endpoint. - * + * * @member {string} [secondaryEndpoints.file] Gets the file endpoint. - * + * */ export interface StorageAccountProperties { provisioningState?: string; @@ -214,15 +214,15 @@ export interface StorageAccountProperties { * Initializes a new instance of the Resource class. * @constructor * @member {string} [id] Resource Id - * + * * @member {string} [name] Resource name - * + * * @member {string} [type] Resource type - * + * * @member {string} [location] Resource location - * + * * @member {object} [tags] Resource tags - * + * */ export interface Resource extends BaseResource { id?: string; @@ -239,81 +239,81 @@ export interface Resource extends BaseResource { * The storage account. * * @member {object} [properties] - * + * * @member {string} [properties.provisioningState] Gets the status of the * storage account at the time the operation was called. Possible values * include: 'Creating', 'ResolvingDNS', 'Succeeded' - * + * * @member {string} [properties.accountType] Gets the type of the storage * account. Possible values include: 'Standard_LRS', 'Standard_ZRS', * 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @member {object} [properties.primaryEndpoints] Gets the URLs that are used * to perform a retrieval of a public blob, queue or table object.Note that * StandardZRS and PremiumLRS accounts only return the blob endpoint. - * + * * @member {string} [properties.primaryEndpoints.blob] Gets the blob endpoint. - * + * * @member {string} [properties.primaryEndpoints.queue] Gets the queue * endpoint. - * + * * @member {string} [properties.primaryEndpoints.table] Gets the table * endpoint. - * + * * @member {string} [properties.primaryEndpoints.file] Gets the file endpoint. - * + * * @member {string} [properties.primaryLocation] Gets the location of the * primary for the storage account. - * + * * @member {string} [properties.statusOfPrimary] Gets the status indicating * whether the primary location of the storage account is available or * unavailable. Possible values include: 'Available', 'Unavailable' - * + * * @member {date} [properties.lastGeoFailoverTime] Gets the timestamp of the * most recent instance of a failover to the secondary location. Only the most * recent timestamp is retained. This element is not returned if there has * never been a failover instance. Only available if the accountType is * StandardGRS or StandardRAGRS. - * + * * @member {string} [properties.secondaryLocation] Gets the location of the geo * replicated secondary for the storage account. Only available if the * accountType is StandardGRS or StandardRAGRS. - * + * * @member {string} [properties.statusOfSecondary] Gets the status indicating * whether the secondary location of the storage account is available or * unavailable. Only available if the accountType is StandardGRS or * StandardRAGRS. Possible values include: 'Available', 'Unavailable' - * + * * @member {date} [properties.creationTime] Gets the creation date and time of * the storage account in UTC. - * + * * @member {object} [properties.customDomain] Gets the user assigned custom * domain assigned to this storage account. - * + * * @member {string} [properties.customDomain.name] Gets or sets the custom * domain name. Name is the CNAME source. - * + * * @member {boolean} [properties.customDomain.useSubDomain] Indicates whether * indirect CName validation is enabled. Default value is false. This should * only be set on updates - * + * * @member {object} [properties.secondaryEndpoints] Gets the URLs that are used * to perform a retrieval of a public blob, queue or table object from the * secondary location of the storage account. Only available if the accountType * is StandardRAGRS. - * + * * @member {string} [properties.secondaryEndpoints.blob] Gets the blob * endpoint. - * + * * @member {string} [properties.secondaryEndpoints.queue] Gets the queue * endpoint. - * + * * @member {string} [properties.secondaryEndpoints.table] Gets the table * endpoint. - * + * * @member {string} [properties.secondaryEndpoints.file] Gets the file * endpoint. - * + * */ export interface StorageAccount extends Resource { properties?: StorageAccountProperties; @@ -326,9 +326,9 @@ export interface StorageAccount extends Resource { * The access keys for the storage account. * * @member {string} [key1] Gets the value of key 1. - * + * * @member {string} [key2] Gets the value of key 2. - * + * */ export interface StorageAccountKeys { key1?: string; @@ -343,7 +343,7 @@ export interface StorageAccountKeys { * * @member {array} [value] Gets the list of storage accounts and their * properties. - * + * */ export interface StorageAccountListResult { value?: StorageAccount[]; @@ -358,19 +358,19 @@ export interface StorageAccountListResult { * types, and other account types cannot be changed to StandardZRS or * PremiumLRS. Possible values include: 'Standard_LRS', 'Standard_ZRS', * 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @member {object} [customDomain] User domain assigned to the storage account. * Name is the CNAME source. Only one custom domain is supported per storage * account at this time. To clear the existing custom domain, use an empty * string for the custom domain name property. - * + * * @member {string} [customDomain.name] Gets or sets the custom domain name. * Name is the CNAME source. - * + * * @member {boolean} [customDomain.useSubDomain] Indicates whether indirect * CName validation is enabled. Default value is false. This should only be set * on updates - * + * */ export interface StorageAccountPropertiesUpdateParameters { accountType?: string; @@ -384,27 +384,27 @@ export interface StorageAccountPropertiesUpdateParameters { * The parameters to update on the account. * * @member {object} [tags] Resource tags - * + * * @member {object} [properties] - * + * * @member {string} [properties.accountType] Gets or sets the account type. * Note that StandardZRS and PremiumLRS accounts cannot be changed to other * account types, and other account types cannot be changed to StandardZRS or * PremiumLRS. Possible values include: 'Standard_LRS', 'Standard_ZRS', * 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @member {object} [properties.customDomain] User domain assigned to the * storage account. Name is the CNAME source. Only one custom domain is * supported per storage account at this time. To clear the existing custom * domain, use an empty string for the custom domain name property. - * + * * @member {string} [properties.customDomain.name] Gets or sets the custom * domain name. Name is the CNAME source. - * + * * @member {boolean} [properties.customDomain.useSubDomain] Indicates whether * indirect CName validation is enabled. Default value is false. This should * only be set on updates - * + * */ export interface StorageAccountUpdateParameters extends BaseResource { tags?: { [propertyName: string]: string }; @@ -416,7 +416,7 @@ export interface StorageAccountUpdateParameters extends BaseResource { * Initializes a new instance of the StorageAccountRegenerateKeyParameters class. * @constructor * @member {string} keyName - * + * */ export interface StorageAccountRegenerateKeyParameters { keyName: string; @@ -429,10 +429,10 @@ export interface StorageAccountRegenerateKeyParameters { * The Usage Names. * * @member {string} [value] Gets a string describing the resource name. - * + * * @member {string} [localizedValue] Gets a localized string describing the * resource name. - * + * */ export interface UsageName { value?: string; @@ -447,20 +447,20 @@ export interface UsageName { * * @member {string} unit Gets the unit of measurement. Possible values include: * 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' - * + * * @member {number} currentValue Gets the current count of the allocated * resources in the subscription. - * + * * @member {number} limit Gets the maximum count of the resources that can be * allocated in the subscription. - * + * * @member {object} name Gets the name of the type of usage. - * + * * @member {string} [name.value] Gets a string describing the resource name. - * + * * @member {string} [name.localizedValue] Gets a localized string describing * the resource name. - * + * */ export interface Usage { unit: string; @@ -476,7 +476,34 @@ export interface Usage { * The List Usages operation response. * * @member {array} [value] Gets or sets the list Storage Resource Usages. - * + * + */ +export interface UsageListResult { + value?: Usage[]; +} + +/** + * @class + * Initializes a new instance of the StorageAccountListResult class. + * @constructor + * The list storage accounts operation response. + * + * @member {array} [value] Gets the list of storage accounts and their + * properties. + * + */ +export interface StorageAccountListResult { + value?: StorageAccount[]; +} + +/** + * @class + * Initializes a new instance of the UsageListResult class. + * @constructor + * The List Usages operation response. + * + * @member {array} [value] Gets or sets the list Storage Resource Usages. + * */ export interface UsageListResult { value?: Usage[]; diff --git a/Samples/azure-storage/Azure.NodeJS/models/index.js b/Samples/azure-storage/Azure.NodeJS/models/index.js index 8aa4776f5c..0925394786 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/index.js +++ b/Samples/azure-storage/Azure.NodeJS/models/index.js @@ -28,3 +28,5 @@ exports.StorageAccountRegenerateKeyParameters = require('./storageAccountRegener exports.UsageName = require('./usageName'); exports.Usage = require('./usage'); exports.UsageListResult = require('./usageListResult'); +exports.StorageAccountListResult = require('./storageAccountListResult'); +exports.UsageListResult = require('./usageListResult'); diff --git a/Samples/azure-storage/Azure.NodeJS/models/resource.js b/Samples/azure-storage/Azure.NodeJS/models/resource.js index 4a49659ba7..f81a1fed33 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/resource.js +++ b/Samples/azure-storage/Azure.NodeJS/models/resource.js @@ -12,15 +12,15 @@ var util = require('util'); * Initializes a new instance of the Resource class. * @constructor * @member {string} [id] Resource Id - * + * * @member {string} [name] Resource name - * + * * @member {string} [type] Resource type - * + * * @member {string} [location] Resource location - * + * * @member {object} [tags] Resource tags - * + * */ function Resource() { Resource['super_'].call(this); diff --git a/Samples/azure-storage/Azure.NodeJS/models/storageAccount.js b/Samples/azure-storage/Azure.NodeJS/models/storageAccount.js index 4e4d3dfec9..7a5af68ed7 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/storageAccount.js +++ b/Samples/azure-storage/Azure.NodeJS/models/storageAccount.js @@ -14,81 +14,81 @@ var util = require('util'); * The storage account. * * @member {object} [properties] - * + * * @member {string} [properties.provisioningState] Gets the status of the * storage account at the time the operation was called. Possible values * include: 'Creating', 'ResolvingDNS', 'Succeeded' - * + * * @member {string} [properties.accountType] Gets the type of the storage * account. Possible values include: 'Standard_LRS', 'Standard_ZRS', * 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @member {object} [properties.primaryEndpoints] Gets the URLs that are used * to perform a retrieval of a public blob, queue or table object.Note that * StandardZRS and PremiumLRS accounts only return the blob endpoint. - * + * * @member {string} [properties.primaryEndpoints.blob] Gets the blob endpoint. - * + * * @member {string} [properties.primaryEndpoints.queue] Gets the queue * endpoint. - * + * * @member {string} [properties.primaryEndpoints.table] Gets the table * endpoint. - * + * * @member {string} [properties.primaryEndpoints.file] Gets the file endpoint. - * + * * @member {string} [properties.primaryLocation] Gets the location of the * primary for the storage account. - * + * * @member {string} [properties.statusOfPrimary] Gets the status indicating * whether the primary location of the storage account is available or * unavailable. Possible values include: 'Available', 'Unavailable' - * + * * @member {date} [properties.lastGeoFailoverTime] Gets the timestamp of the * most recent instance of a failover to the secondary location. Only the most * recent timestamp is retained. This element is not returned if there has * never been a failover instance. Only available if the accountType is * StandardGRS or StandardRAGRS. - * + * * @member {string} [properties.secondaryLocation] Gets the location of the geo * replicated secondary for the storage account. Only available if the * accountType is StandardGRS or StandardRAGRS. - * + * * @member {string} [properties.statusOfSecondary] Gets the status indicating * whether the secondary location of the storage account is available or * unavailable. Only available if the accountType is StandardGRS or * StandardRAGRS. Possible values include: 'Available', 'Unavailable' - * + * * @member {date} [properties.creationTime] Gets the creation date and time of * the storage account in UTC. - * + * * @member {object} [properties.customDomain] Gets the user assigned custom * domain assigned to this storage account. - * + * * @member {string} [properties.customDomain.name] Gets or sets the custom * domain name. Name is the CNAME source. - * + * * @member {boolean} [properties.customDomain.useSubDomain] Indicates whether * indirect CName validation is enabled. Default value is false. This should * only be set on updates - * + * * @member {object} [properties.secondaryEndpoints] Gets the URLs that are used * to perform a retrieval of a public blob, queue or table object from the * secondary location of the storage account. Only available if the accountType * is StandardRAGRS. - * + * * @member {string} [properties.secondaryEndpoints.blob] Gets the blob * endpoint. - * + * * @member {string} [properties.secondaryEndpoints.queue] Gets the queue * endpoint. - * + * * @member {string} [properties.secondaryEndpoints.table] Gets the table * endpoint. - * + * * @member {string} [properties.secondaryEndpoints.file] Gets the file * endpoint. - * + * */ function StorageAccount() { StorageAccount['super_'].call(this); diff --git a/Samples/azure-storage/Azure.NodeJS/models/storageAccountCheckNameAvailabilityParameters.js b/Samples/azure-storage/Azure.NodeJS/models/storageAccountCheckNameAvailabilityParameters.js index d1124b31d5..da5a6b2f90 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/storageAccountCheckNameAvailabilityParameters.js +++ b/Samples/azure-storage/Azure.NodeJS/models/storageAccountCheckNameAvailabilityParameters.js @@ -8,9 +8,9 @@ * Initializes a new instance of the StorageAccountCheckNameAvailabilityParameters class. * @constructor * @member {string} name - * + * * @member {string} [type] Default value: 'Microsoft.Storage/storageAccounts' . - * + * */ function StorageAccountCheckNameAvailabilityParameters() { } diff --git a/Samples/azure-storage/Azure.NodeJS/models/storageAccountCreateParameters.js b/Samples/azure-storage/Azure.NodeJS/models/storageAccountCreateParameters.js index 15340211a3..968e25762b 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/storageAccountCreateParameters.js +++ b/Samples/azure-storage/Azure.NodeJS/models/storageAccountCreateParameters.js @@ -14,15 +14,15 @@ var util = require('util'); * The parameters to provide for the account. * * @member {string} location Resource location - * + * * @member {object} [tags] Resource tags - * + * * @member {object} [properties] - * + * * @member {string} [properties.accountType] Gets or sets the account type. * Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', * 'Standard_RAGRS', 'Premium_LRS' - * + * */ function StorageAccountCreateParameters() { StorageAccountCreateParameters['super_'].call(this); diff --git a/Samples/azure-storage/Azure.NodeJS/models/storageAccountKeys.js b/Samples/azure-storage/Azure.NodeJS/models/storageAccountKeys.js index 982ac5f21a..8389ddfb18 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/storageAccountKeys.js +++ b/Samples/azure-storage/Azure.NodeJS/models/storageAccountKeys.js @@ -10,9 +10,9 @@ * The access keys for the storage account. * * @member {string} [key1] Gets the value of key 1. - * + * * @member {string} [key2] Gets the value of key 2. - * + * */ function StorageAccountKeys() { } diff --git a/Samples/azure-storage/Azure.NodeJS/models/storageAccountProperties.js b/Samples/azure-storage/Azure.NodeJS/models/storageAccountProperties.js index 4cad045e91..165432e4b7 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/storageAccountProperties.js +++ b/Samples/azure-storage/Azure.NodeJS/models/storageAccountProperties.js @@ -12,71 +12,71 @@ var models = require('./index'); * @member {string} [provisioningState] Gets the status of the storage account * at the time the operation was called. Possible values include: 'Creating', * 'ResolvingDNS', 'Succeeded' - * + * * @member {string} [accountType] Gets the type of the storage account. * Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', * 'Standard_RAGRS', 'Premium_LRS' - * + * * @member {object} [primaryEndpoints] Gets the URLs that are used to perform a * retrieval of a public blob, queue or table object.Note that StandardZRS and * PremiumLRS accounts only return the blob endpoint. - * + * * @member {string} [primaryEndpoints.blob] Gets the blob endpoint. - * + * * @member {string} [primaryEndpoints.queue] Gets the queue endpoint. - * + * * @member {string} [primaryEndpoints.table] Gets the table endpoint. - * + * * @member {string} [primaryEndpoints.file] Gets the file endpoint. - * + * * @member {string} [primaryLocation] Gets the location of the primary for the * storage account. - * + * * @member {string} [statusOfPrimary] Gets the status indicating whether the * primary location of the storage account is available or unavailable. * Possible values include: 'Available', 'Unavailable' - * + * * @member {date} [lastGeoFailoverTime] Gets the timestamp of the most recent * instance of a failover to the secondary location. Only the most recent * timestamp is retained. This element is not returned if there has never been * a failover instance. Only available if the accountType is StandardGRS or * StandardRAGRS. - * + * * @member {string} [secondaryLocation] Gets the location of the geo replicated * secondary for the storage account. Only available if the accountType is * StandardGRS or StandardRAGRS. - * + * * @member {string} [statusOfSecondary] Gets the status indicating whether the * secondary location of the storage account is available or unavailable. Only * available if the accountType is StandardGRS or StandardRAGRS. Possible * values include: 'Available', 'Unavailable' - * + * * @member {date} [creationTime] Gets the creation date and time of the storage * account in UTC. - * + * * @member {object} [customDomain] Gets the user assigned custom domain * assigned to this storage account. - * + * * @member {string} [customDomain.name] Gets or sets the custom domain name. * Name is the CNAME source. - * + * * @member {boolean} [customDomain.useSubDomain] Indicates whether indirect * CName validation is enabled. Default value is false. This should only be set * on updates - * + * * @member {object} [secondaryEndpoints] Gets the URLs that are used to perform * a retrieval of a public blob, queue or table object from the secondary * location of the storage account. Only available if the accountType is * StandardRAGRS. - * + * * @member {string} [secondaryEndpoints.blob] Gets the blob endpoint. - * + * * @member {string} [secondaryEndpoints.queue] Gets the queue endpoint. - * + * * @member {string} [secondaryEndpoints.table] Gets the table endpoint. - * + * * @member {string} [secondaryEndpoints.file] Gets the file endpoint. - * + * */ function StorageAccountProperties() { } diff --git a/Samples/azure-storage/Azure.NodeJS/models/storageAccountPropertiesCreateParameters.js b/Samples/azure-storage/Azure.NodeJS/models/storageAccountPropertiesCreateParameters.js index fb57b58c32..b1a2ccd8ba 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/storageAccountPropertiesCreateParameters.js +++ b/Samples/azure-storage/Azure.NodeJS/models/storageAccountPropertiesCreateParameters.js @@ -10,7 +10,7 @@ * @member {string} accountType Gets or sets the account type. Possible values * include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', 'Standard_RAGRS', * 'Premium_LRS' - * + * */ function StorageAccountPropertiesCreateParameters() { } diff --git a/Samples/azure-storage/Azure.NodeJS/models/storageAccountPropertiesUpdateParameters.js b/Samples/azure-storage/Azure.NodeJS/models/storageAccountPropertiesUpdateParameters.js index cdd3d4e037..b2a0438d08 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/storageAccountPropertiesUpdateParameters.js +++ b/Samples/azure-storage/Azure.NodeJS/models/storageAccountPropertiesUpdateParameters.js @@ -14,19 +14,19 @@ var models = require('./index'); * types, and other account types cannot be changed to StandardZRS or * PremiumLRS. Possible values include: 'Standard_LRS', 'Standard_ZRS', * 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @member {object} [customDomain] User domain assigned to the storage account. * Name is the CNAME source. Only one custom domain is supported per storage * account at this time. To clear the existing custom domain, use an empty * string for the custom domain name property. - * + * * @member {string} [customDomain.name] Gets or sets the custom domain name. * Name is the CNAME source. - * + * * @member {boolean} [customDomain.useSubDomain] Indicates whether indirect * CName validation is enabled. Default value is false. This should only be set * on updates - * + * */ function StorageAccountPropertiesUpdateParameters() { } diff --git a/Samples/azure-storage/Azure.NodeJS/models/storageAccountRegenerateKeyParameters.js b/Samples/azure-storage/Azure.NodeJS/models/storageAccountRegenerateKeyParameters.js index fcf4d673e5..11b4ca3951 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/storageAccountRegenerateKeyParameters.js +++ b/Samples/azure-storage/Azure.NodeJS/models/storageAccountRegenerateKeyParameters.js @@ -8,7 +8,7 @@ * Initializes a new instance of the StorageAccountRegenerateKeyParameters class. * @constructor * @member {string} keyName - * + * */ function StorageAccountRegenerateKeyParameters() { } diff --git a/Samples/azure-storage/Azure.NodeJS/models/storageAccountUpdateParameters.js b/Samples/azure-storage/Azure.NodeJS/models/storageAccountUpdateParameters.js index 1190b30dd3..ccdc668d9e 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/storageAccountUpdateParameters.js +++ b/Samples/azure-storage/Azure.NodeJS/models/storageAccountUpdateParameters.js @@ -14,27 +14,27 @@ var util = require('util'); * The parameters to update on the account. * * @member {object} [tags] Resource tags - * + * * @member {object} [properties] - * + * * @member {string} [properties.accountType] Gets or sets the account type. * Note that StandardZRS and PremiumLRS accounts cannot be changed to other * account types, and other account types cannot be changed to StandardZRS or * PremiumLRS. Possible values include: 'Standard_LRS', 'Standard_ZRS', * 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @member {object} [properties.customDomain] User domain assigned to the * storage account. Name is the CNAME source. Only one custom domain is * supported per storage account at this time. To clear the existing custom * domain, use an empty string for the custom domain name property. - * + * * @member {string} [properties.customDomain.name] Gets or sets the custom * domain name. Name is the CNAME source. - * + * * @member {boolean} [properties.customDomain.useSubDomain] Indicates whether * indirect CName validation is enabled. Default value is false. This should * only be set on updates - * + * */ function StorageAccountUpdateParameters() { StorageAccountUpdateParameters['super_'].call(this); diff --git a/Samples/azure-storage/Azure.NodeJS/models/usage.js b/Samples/azure-storage/Azure.NodeJS/models/usage.js index 579babc936..29de598165 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/usage.js +++ b/Samples/azure-storage/Azure.NodeJS/models/usage.js @@ -13,20 +13,20 @@ var models = require('./index'); * * @member {string} unit Gets the unit of measurement. Possible values include: * 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' - * + * * @member {number} currentValue Gets the current count of the allocated * resources in the subscription. - * + * * @member {number} limit Gets the maximum count of the resources that can be * allocated in the subscription. - * + * * @member {object} name Gets the name of the type of usage. - * + * * @member {string} [name.value] Gets a string describing the resource name. - * + * * @member {string} [name.localizedValue] Gets a localized string describing * the resource name. - * + * */ function Usage() { } diff --git a/Samples/azure-storage/Azure.NodeJS/models/usageName.js b/Samples/azure-storage/Azure.NodeJS/models/usageName.js index fd09d5670c..09fc051f4c 100644 --- a/Samples/azure-storage/Azure.NodeJS/models/usageName.js +++ b/Samples/azure-storage/Azure.NodeJS/models/usageName.js @@ -10,10 +10,10 @@ * The Usage Names. * * @member {string} [value] Gets a string describing the resource name. - * + * * @member {string} [localizedValue] Gets a localized string describing the * resource name. - * + * */ function UsageName() { } diff --git a/Samples/azure-storage/Azure.NodeJS/operations/index.d.ts b/Samples/azure-storage/Azure.NodeJS/operations/index.d.ts index 25c10c08d4..7794afa9e5 100644 --- a/Samples/azure-storage/Azure.NodeJS/operations/index.d.ts +++ b/Samples/azure-storage/Azure.NodeJS/operations/index.d.ts @@ -19,16 +19,16 @@ export interface StorageAccounts { * @param {object} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {string} accountName.name - * + * * @param {string} [accountName.type] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -44,29 +44,29 @@ export interface StorageAccounts { * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} parameters The parameters to provide for the created * account. - * + * * @param {string} parameters.location Resource location - * + * * @param {object} [parameters.tags] Resource tags - * + * * @param {object} [parameters.properties] - * + * * @param {string} parameters.properties.accountType Gets or sets the account * type. Possible values include: 'Standard_LRS', 'Standard_ZRS', * 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -78,16 +78,16 @@ export interface StorageAccounts { * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -101,16 +101,16 @@ export interface StorageAccounts { * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -133,41 +133,41 @@ export interface StorageAccounts { * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} parameters The parameters to update on the account. Note * that only one property can be changed at a time using this API. - * + * * @param {object} [parameters.tags] Resource tags - * + * * @param {object} [parameters.properties] - * + * * @param {string} [parameters.properties.accountType] Gets or sets the account * type. Note that StandardZRS and PremiumLRS accounts cannot be changed to * other account types, and other account types cannot be changed to * StandardZRS or PremiumLRS. Possible values include: 'Standard_LRS', * 'Standard_ZRS', 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @param {object} [parameters.properties.customDomain] User domain assigned to * the storage account. Name is the CNAME source. Only one custom domain is * supported per storage account at this time. To clear the existing custom * domain, use an empty string for the custom domain name property. - * + * * @param {string} parameters.properties.customDomain.name Gets or sets the * custom domain name. Name is the CNAME source. - * + * * @param {boolean} [parameters.properties.customDomain.useSubDomain] Indicates * whether indirect CName validation is enabled. Default value is false. This * should only be set on updates - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -178,14 +178,14 @@ export interface StorageAccounts { * Lists the access keys for the specified storage account. * * @param {string} resourceGroupName The name of the resource group. - * + * * @param {string} accountName The name of the storage account. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -197,10 +197,10 @@ export interface StorageAccounts { * storage keys are not returned; use the ListKeys operation for this. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -214,12 +214,12 @@ export interface StorageAccounts { * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -231,21 +231,21 @@ export interface StorageAccounts { * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} regenerateKeyParameter Specifies name of the key which * should be regenerated. key1 or key2 for the default keys - * + * * @param {string} regenerateKeyParameter.keyName - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -261,29 +261,29 @@ export interface StorageAccounts { * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} parameters The parameters to provide for the created * account. - * + * * @param {string} parameters.location Resource location - * + * * @param {object} [parameters.tags] Resource tags - * + * * @param {object} [parameters.properties] - * + * * @param {string} parameters.properties.accountType Gets or sets the account * type. Possible values include: 'Standard_LRS', 'Standard_ZRS', * 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -304,10 +304,10 @@ export interface UsageOperations { * subscription. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/Samples/azure-storage/Azure.NodeJS/operations/storageAccounts.js b/Samples/azure-storage/Azure.NodeJS/operations/storageAccounts.js index 319c7210f5..f40d4c90c9 100644 --- a/Samples/azure-storage/Azure.NodeJS/operations/storageAccounts.js +++ b/Samples/azure-storage/Azure.NodeJS/operations/storageAccounts.js @@ -28,16 +28,16 @@ function StorageAccounts(client) { * @param {object} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {string} accountName.name - * + * * @param {string} [accountName.type] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -119,7 +119,7 @@ StorageAccounts.prototype.checkNameAvailability = function (accountName, options requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(accountName, {depth: null}))); return callback(serializationError); } @@ -149,7 +149,7 @@ StorageAccounts.prototype.checkNameAvailability = function (accountName, options error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -190,29 +190,29 @@ StorageAccounts.prototype.checkNameAvailability = function (accountName, options * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} parameters The parameters to provide for the created * account. - * + * * @param {string} parameters.location Resource location - * + * * @param {object} [parameters.tags] Resource tags - * + * * @param {object} [parameters.properties] - * + * * @param {string} parameters.properties.accountType Gets or sets the account * type. Possible values include: 'Standard_LRS', 'Standard_ZRS', * 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -281,16 +281,16 @@ StorageAccounts.prototype.create = function (resourceGroupName, accountName, par * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -392,12 +392,13 @@ StorageAccounts.prototype.deleteMethod = function (resourceGroupName, accountNam try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -418,16 +419,16 @@ StorageAccounts.prototype.deleteMethod = function (resourceGroupName, accountNam * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -539,7 +540,7 @@ StorageAccounts.prototype.getProperties = function (resourceGroupName, accountNa error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -586,41 +587,41 @@ StorageAccounts.prototype.getProperties = function (resourceGroupName, accountNa * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} parameters The parameters to update on the account. Note * that only one property can be changed at a time using this API. - * + * * @param {object} [parameters.tags] Resource tags - * + * * @param {object} [parameters.properties] - * + * * @param {string} [parameters.properties.accountType] Gets or sets the account * type. Note that StandardZRS and PremiumLRS accounts cannot be changed to * other account types, and other account types cannot be changed to * StandardZRS or PremiumLRS. Possible values include: 'Standard_LRS', * 'Standard_ZRS', 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @param {object} [parameters.properties.customDomain] User domain assigned to * the storage account. Name is the CNAME source. Only one custom domain is * supported per storage account at this time. To clear the existing custom * domain, use an empty string for the custom domain name property. - * + * * @param {string} parameters.properties.customDomain.name Gets or sets the * custom domain name. Name is the CNAME source. - * + * * @param {boolean} [parameters.properties.customDomain.useSubDomain] Indicates * whether indirect CName validation is enabled. Default value is false. This * should only be set on updates - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -719,7 +720,7 @@ StorageAccounts.prototype.update = function (resourceGroupName, accountName, par requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(parameters, {depth: null}))); return callback(serializationError); } @@ -749,7 +750,7 @@ StorageAccounts.prototype.update = function (resourceGroupName, accountName, par error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -784,14 +785,14 @@ StorageAccounts.prototype.update = function (resourceGroupName, accountName, par * Lists the access keys for the specified storage account. * * @param {string} resourceGroupName The name of the resource group. - * + * * @param {string} accountName The name of the storage account. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -903,7 +904,7 @@ StorageAccounts.prototype.listKeys = function (resourceGroupName, accountName, o error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -939,10 +940,10 @@ StorageAccounts.prototype.listKeys = function (resourceGroupName, accountName, o * storage keys are not returned; use the ListKeys operation for this. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1037,7 +1038,7 @@ StorageAccounts.prototype.list = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1075,12 +1076,12 @@ StorageAccounts.prototype.list = function (options, callback) { * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1179,7 +1180,7 @@ StorageAccounts.prototype.listByResourceGroup = function (resourceGroupName, opt error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1215,21 +1216,21 @@ StorageAccounts.prototype.listByResourceGroup = function (resourceGroupName, opt * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} regenerateKeyParameter Specifies name of the key which * should be regenerated. key1 or key2 for the default keys - * + * * @param {string} regenerateKeyParameter.keyName - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1328,7 +1329,7 @@ StorageAccounts.prototype.regenerateKey = function (resourceGroupName, accountNa requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(regenerateKeyParameter, {depth: null}))); return callback(serializationError); } @@ -1358,7 +1359,7 @@ StorageAccounts.prototype.regenerateKey = function (resourceGroupName, accountNa error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1398,29 +1399,29 @@ StorageAccounts.prototype.regenerateKey = function (resourceGroupName, accountNa * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} parameters The parameters to provide for the created * account. - * + * * @param {string} parameters.location Resource location - * + * * @param {object} [parameters.tags] Resource tags - * + * * @param {object} [parameters.properties] - * + * * @param {string} parameters.properties.accountType Gets or sets the account * type. Possible values include: 'Standard_LRS', 'Standard_ZRS', * 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1519,7 +1520,7 @@ StorageAccounts.prototype.beginCreate = function (resourceGroupName, accountName requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(parameters, {depth: null}))); return callback(serializationError); } @@ -1549,7 +1550,7 @@ StorageAccounts.prototype.beginCreate = function (resourceGroupName, accountName error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/Samples/azure-storage/Azure.NodeJS/operations/usageOperations.js b/Samples/azure-storage/Azure.NodeJS/operations/usageOperations.js index 4434d3e374..b9201ff592 100644 --- a/Samples/azure-storage/Azure.NodeJS/operations/usageOperations.js +++ b/Samples/azure-storage/Azure.NodeJS/operations/usageOperations.js @@ -27,10 +27,10 @@ function UsageOperations(client) { * subscription. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -124,7 +124,7 @@ UsageOperations.prototype.list = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/Samples/azure-storage/Azure.NodeJS/storageManagementClient.js b/Samples/azure-storage/Azure.NodeJS/storageManagementClient.js index 5ae65fa180..36653b7670 100644 --- a/Samples/azure-storage/Azure.NodeJS/storageManagementClient.js +++ b/Samples/azure-storage/Azure.NodeJS/storageManagementClient.js @@ -66,16 +66,16 @@ function StorageManagementClient(credentials, subscriptionId, baseUri, options) this.credentials = credentials; this.subscriptionId = subscriptionId; - if(options.apiVersion !== null && options.apiVersion !== undefined) { + if(options.apiVersion !== null && options.apiVersion !== undefined) { this.apiVersion = options.apiVersion; } - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } - if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { + if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } this.storageAccounts = new operations.StorageAccounts(this); diff --git a/Samples/petstore/NodeJS/models/category.js b/Samples/petstore/NodeJS/models/category.js index 12c8be1ad8..777c0aa2be 100644 --- a/Samples/petstore/NodeJS/models/category.js +++ b/Samples/petstore/NodeJS/models/category.js @@ -8,9 +8,9 @@ * Initializes a new instance of the Category class. * @constructor * @member {number} [id] - * + * * @member {string} [name] - * + * */ function Category() { } diff --git a/Samples/petstore/NodeJS/models/index.d.ts b/Samples/petstore/NodeJS/models/index.d.ts index b19362c62a..60590869a3 100644 --- a/Samples/petstore/NodeJS/models/index.d.ts +++ b/Samples/petstore/NodeJS/models/index.d.ts @@ -7,21 +7,21 @@ * Initializes a new instance of the User class. * @constructor * @member {number} [id] - * + * * @member {string} [username] - * + * * @member {string} [firstName] - * + * * @member {string} [lastName] - * + * * @member {string} [email] - * + * * @member {string} [password] - * + * * @member {string} [phone] - * + * * @member {number} [userStatus] User Status - * + * */ export interface User { id?: number; @@ -39,15 +39,29 @@ export interface User { * Initializes a new instance of the Category class. * @constructor * @member {number} [id] - * + * * @member {string} [name] - * + * */ export interface Category { id?: number; name?: string; } +/** + * @class + * Initializes a new instance of the Tag class. + * @constructor + * @member {number} [id] + * + * @member {string} [name] + * + */ +export interface Tag { + id?: number; + name?: string; +} + /** * @class * Initializes a new instance of the Pet class. @@ -58,22 +72,22 @@ export interface Category { * * @member {number} [id] The id of the pet. A more detailed description of the * id of the pet. - * + * * @member {object} [category] - * + * * @member {number} [category.id] - * + * * @member {string} [category.name] - * + * * @member {string} name - * + * * @member {array} photoUrls - * + * * @member {array} [tags] - * + * * @member {string} [status] pet status in the store. Possible values include: * 'available', 'pending', 'sold' - * + * */ export interface Pet { id?: number; @@ -84,37 +98,23 @@ export interface Pet { status?: string; } -/** - * @class - * Initializes a new instance of the Tag class. - * @constructor - * @member {number} [id] - * - * @member {string} [name] - * - */ -export interface Tag { - id?: number; - name?: string; -} - /** * @class * Initializes a new instance of the Order class. * @constructor * @member {number} [id] - * + * * @member {number} [petId] - * + * * @member {number} [quantity] - * + * * @member {date} [shipDate] - * + * * @member {string} [status] Order Status. Possible values include: 'placed', * 'approved', 'delivered' - * + * * @member {boolean} [complete] - * + * */ export interface Order { id?: number; diff --git a/Samples/petstore/NodeJS/models/index.js b/Samples/petstore/NodeJS/models/index.js index 0e814df812..338edd0100 100644 --- a/Samples/petstore/NodeJS/models/index.js +++ b/Samples/petstore/NodeJS/models/index.js @@ -9,6 +9,6 @@ exports.User = require('./user'); exports.Category = require('./category'); -exports.Pet = require('./pet'); exports.Tag = require('./tag'); +exports.Pet = require('./pet'); exports.Order = require('./order'); diff --git a/Samples/petstore/NodeJS/models/order.js b/Samples/petstore/NodeJS/models/order.js index c516ec0bb0..dc765d51ca 100644 --- a/Samples/petstore/NodeJS/models/order.js +++ b/Samples/petstore/NodeJS/models/order.js @@ -8,18 +8,18 @@ * Initializes a new instance of the Order class. * @constructor * @member {number} [id] - * + * * @member {number} [petId] - * + * * @member {number} [quantity] - * + * * @member {date} [shipDate] - * + * * @member {string} [status] Order Status. Possible values include: 'placed', * 'approved', 'delivered' - * + * * @member {boolean} [complete] - * + * */ function Order() { } diff --git a/Samples/petstore/NodeJS/models/pet.js b/Samples/petstore/NodeJS/models/pet.js index aa132d8511..69d4bc7d64 100644 --- a/Samples/petstore/NodeJS/models/pet.js +++ b/Samples/petstore/NodeJS/models/pet.js @@ -17,22 +17,22 @@ var util = require('util'); * * @member {number} [id] The id of the pet. A more detailed description of the * id of the pet. - * + * * @member {object} [category] - * + * * @member {number} [category.id] - * + * * @member {string} [category.name] - * + * * @member {string} name - * + * * @member {array} photoUrls - * + * * @member {array} [tags] - * + * * @member {string} [status] pet status in the store. Possible values include: * 'available', 'pending', 'sold' - * + * */ function Pet() { } diff --git a/Samples/petstore/NodeJS/models/tag.js b/Samples/petstore/NodeJS/models/tag.js index 45dcd47b87..9fc0618720 100644 --- a/Samples/petstore/NodeJS/models/tag.js +++ b/Samples/petstore/NodeJS/models/tag.js @@ -8,9 +8,9 @@ * Initializes a new instance of the Tag class. * @constructor * @member {number} [id] - * + * * @member {string} [name] - * + * */ function Tag() { } diff --git a/Samples/petstore/NodeJS/models/user.js b/Samples/petstore/NodeJS/models/user.js index 27ad2ce943..ea4a9d9fd5 100644 --- a/Samples/petstore/NodeJS/models/user.js +++ b/Samples/petstore/NodeJS/models/user.js @@ -8,21 +8,21 @@ * Initializes a new instance of the User class. * @constructor * @member {number} [id] - * + * * @member {string} [username] - * + * * @member {string} [firstName] - * + * * @member {string} [lastName] - * + * * @member {string} [email] - * + * * @member {string} [password] - * + * * @member {string} [phone] - * + * * @member {number} [userStatus] User Status - * + * */ function User() { } diff --git a/Samples/petstore/NodeJS/swaggerPetstore.d.ts b/Samples/petstore/NodeJS/swaggerPetstore.d.ts index 80ddedfd38..4ee08fab0e 100644 --- a/Samples/petstore/NodeJS/swaggerPetstore.d.ts +++ b/Samples/petstore/NodeJS/swaggerPetstore.d.ts @@ -29,12 +29,12 @@ declare class SwaggerPetstore { * pet to the store * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.body] Pet object in the form of byte array - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -48,31 +48,31 @@ declare class SwaggerPetstore { * pet is invalid. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.body] Pet object that needs to be added to the * store - * + * * @param {number} [options.body.id] The id of the pet. A more detailed * description of the id of the pet. - * + * * @param {object} [options.body.category] - * + * * @param {number} [options.body.category.id] - * + * * @param {string} [options.body.category.name] - * + * * @param {string} options.body.name - * + * * @param {array} options.body.photoUrls - * + * * @param {array} [options.body.tags] - * + * * @param {string} [options.body.status] pet status in the store. Possible * values include: 'available', 'pending', 'sold' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -83,31 +83,31 @@ declare class SwaggerPetstore { * @summary Update an existing pet * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.body] Pet object that needs to be added to the * store - * + * * @param {number} [options.body.id] The id of the pet. A more detailed * description of the id of the pet. - * + * * @param {object} [options.body.category] - * + * * @param {number} [options.body.category.id] - * + * * @param {string} [options.body.category.name] - * + * * @param {string} options.body.name - * + * * @param {array} options.body.photoUrls - * + * * @param {array} [options.body.tags] - * + * * @param {string} [options.body.status] pet status in the store. Possible * values include: 'available', 'pending', 'sold' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -120,13 +120,13 @@ declare class SwaggerPetstore { * Multiple status values can be provided with comma seperated strings * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.status] Status values that need to be considered for * filter - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -140,12 +140,12 @@ declare class SwaggerPetstore { * tag3 for testing. * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.tags] Tags to filter by - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -159,12 +159,12 @@ declare class SwaggerPetstore { * conditions * * @param {number} petId ID of pet that needs to be fetched - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -178,12 +178,12 @@ declare class SwaggerPetstore { * conditions * * @param {number} petId ID of pet that needs to be fetched - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -194,16 +194,16 @@ declare class SwaggerPetstore { * @summary Updates a pet in the store with form data * * @param {string} petId ID of pet that needs to be updated - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.name] Updated name of the pet - * + * * @param {string} [options.status] Updated status of the pet - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -214,14 +214,14 @@ declare class SwaggerPetstore { * @summary Deletes a pet * * @param {number} petId Pet id to delete - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.apiKey] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -232,17 +232,17 @@ declare class SwaggerPetstore { * @summary uploads an image * * @param {number} petId ID of pet to update - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.additionalMetadata] Additional data to pass to * server - * + * * @param {object} [options.file] file to upload - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -255,10 +255,10 @@ declare class SwaggerPetstore { * Returns a map of status codes to quantities * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -269,23 +269,23 @@ declare class SwaggerPetstore { * @summary Place an order for a pet * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.body] order placed for purchasing the pet - * + * * @param {number} [options.body.petId] - * + * * @param {number} [options.body.quantity] - * + * * @param {date} [options.body.shipDate] - * + * * @param {string} [options.body.status] Order Status. Possible values include: * 'placed', 'approved', 'delivered' - * + * * @param {boolean} [options.body.complete] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -299,12 +299,12 @@ declare class SwaggerPetstore { * will generated exceptions * * @param {string} orderId ID of pet that needs to be fetched - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -318,12 +318,12 @@ declare class SwaggerPetstore { * nonintegers will generate API errors * * @param {string} orderId ID of the order that needs to be deleted - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -336,28 +336,28 @@ declare class SwaggerPetstore { * This can only be done by the logged in user. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.body] Created user object - * + * * @param {number} [options.body.id] - * + * * @param {string} [options.body.username] - * + * * @param {string} [options.body.firstName] - * + * * @param {string} [options.body.lastName] - * + * * @param {string} [options.body.email] - * + * * @param {string} [options.body.password] - * + * * @param {string} [options.body.phone] - * + * * @param {number} [options.body.userStatus] User Status - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -368,12 +368,12 @@ declare class SwaggerPetstore { * @summary Creates list of users with given input array * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.body] List of user object - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -384,12 +384,12 @@ declare class SwaggerPetstore { * @summary Creates list of users with given input array * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.body] List of user object - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -400,14 +400,14 @@ declare class SwaggerPetstore { * @summary Logs user into the system * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.username] The user name for login - * + * * @param {string} [options.password] The password for login in clear text - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -418,10 +418,10 @@ declare class SwaggerPetstore { * @summary Logs out current logged in user session * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -433,12 +433,12 @@ declare class SwaggerPetstore { * * @param {string} username The name that needs to be fetched. Use user1 for * testing. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -451,30 +451,30 @@ declare class SwaggerPetstore { * This can only be done by the logged in user. * * @param {string} username name that need to be deleted - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.body] Updated user object - * + * * @param {number} [options.body.id] - * + * * @param {string} [options.body.username] - * + * * @param {string} [options.body.firstName] - * + * * @param {string} [options.body.lastName] - * + * * @param {string} [options.body.email] - * + * * @param {string} [options.body.password] - * + * * @param {string} [options.body.phone] - * + * * @param {number} [options.body.userStatus] User Status - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -487,12 +487,12 @@ declare class SwaggerPetstore { * This can only be done by the logged in user. * * @param {string} username The name that needs to be deleted - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/Samples/petstore/NodeJS/swaggerPetstore.js b/Samples/petstore/NodeJS/swaggerPetstore.js index 053d9d01aa..64e5daf12d 100644 --- a/Samples/petstore/NodeJS/swaggerPetstore.js +++ b/Samples/petstore/NodeJS/swaggerPetstore.js @@ -52,12 +52,12 @@ util.inherits(SwaggerPetstore, ServiceClient); * pet to the store * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.body] Pet object in the form of byte array - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -123,7 +123,7 @@ SwaggerPetstore.prototype.addPetUsingByteArray = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(body, {depth: null}))); return callback(serializationError); } @@ -144,12 +144,13 @@ SwaggerPetstore.prototype.addPetUsingByteArray = function (options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -170,31 +171,31 @@ SwaggerPetstore.prototype.addPetUsingByteArray = function (options, callback) { * pet is invalid. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.body] Pet object that needs to be added to the * store - * + * * @param {number} [options.body.id] The id of the pet. A more detailed * description of the id of the pet. - * + * * @param {object} [options.body.category] - * + * * @param {number} [options.body.category.id] - * + * * @param {string} [options.body.category.name] - * + * * @param {string} options.body.name - * + * * @param {array} options.body.photoUrls - * + * * @param {array} [options.body.tags] - * + * * @param {string} [options.body.status] pet status in the store. Possible * values include: 'available', 'pending', 'sold' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -246,7 +247,7 @@ SwaggerPetstore.prototype.addPet = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(body, {depth: null}))); return callback(serializationError); } @@ -267,12 +268,13 @@ SwaggerPetstore.prototype.addPet = function (options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -290,31 +292,31 @@ SwaggerPetstore.prototype.addPet = function (options, callback) { * @summary Update an existing pet * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.body] Pet object that needs to be added to the * store - * + * * @param {number} [options.body.id] The id of the pet. A more detailed * description of the id of the pet. - * + * * @param {object} [options.body.category] - * + * * @param {number} [options.body.category.id] - * + * * @param {string} [options.body.category.name] - * + * * @param {string} options.body.name - * + * * @param {array} options.body.photoUrls - * + * * @param {array} [options.body.tags] - * + * * @param {string} [options.body.status] pet status in the store. Possible * values include: 'available', 'pending', 'sold' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -366,7 +368,7 @@ SwaggerPetstore.prototype.updatePet = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(body, {depth: null}))); return callback(serializationError); } @@ -387,12 +389,13 @@ SwaggerPetstore.prototype.updatePet = function (options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -412,13 +415,13 @@ SwaggerPetstore.prototype.updatePet = function (options, callback) { * Multiple status values can be provided with comma seperated strings * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.status] Status values that need to be considered for * filter - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -496,12 +499,13 @@ SwaggerPetstore.prototype.findPetsByStatus = function (options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -553,12 +557,12 @@ SwaggerPetstore.prototype.findPetsByStatus = function (options, callback) { * tag3 for testing. * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.tags] Tags to filter by - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -636,12 +640,13 @@ SwaggerPetstore.prototype.findPetsByTags = function (options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -693,12 +698,12 @@ SwaggerPetstore.prototype.findPetsByTags = function (options, callback) { * conditions * * @param {number} petId ID of pet that needs to be fetched - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -765,12 +770,13 @@ SwaggerPetstore.prototype.findPetsWithByteArray = function (petId, options, call try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -814,12 +820,12 @@ SwaggerPetstore.prototype.findPetsWithByteArray = function (petId, options, call * conditions * * @param {number} petId ID of pet that needs to be fetched - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -887,12 +893,13 @@ SwaggerPetstore.prototype.getPetById = function (petId, options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -927,16 +934,16 @@ SwaggerPetstore.prototype.getPetById = function (petId, options, callback) { * @summary Updates a pet in the store with form data * * @param {string} petId ID of pet that needs to be updated - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.name] Updated name of the pet - * + * * @param {string} [options.status] Updated status of the pet - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -994,8 +1001,8 @@ SwaggerPetstore.prototype.updatePetWithForm = function (petId, options, callback } } httpRequest.headers['Content-Type'] = 'application/x-www-form-urlencoded'; - // Serialize Request - var formData = {}; + // Serialize Request + var formData = {}; if (name !== undefined && name !== null) { formData['name'] = name; } @@ -1019,12 +1026,13 @@ SwaggerPetstore.prototype.updatePetWithForm = function (petId, options, callback try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1042,14 +1050,14 @@ SwaggerPetstore.prototype.updatePetWithForm = function (petId, options, callback * @summary Deletes a pet * * @param {number} petId Pet id to delete - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.apiKey] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1123,12 +1131,13 @@ SwaggerPetstore.prototype.deletePet = function (petId, options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1146,17 +1155,17 @@ SwaggerPetstore.prototype.deletePet = function (petId, options, callback) { * @summary uploads an image * * @param {number} petId ID of pet to update - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.additionalMetadata] Additional data to pass to * server - * + * * @param {object} [options.file] file to upload - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1214,13 +1223,13 @@ SwaggerPetstore.prototype.uploadFile = function (petId, options, callback) { } } httpRequest.headers['Content-Type'] = 'multipart/form-data'; - // Serialize Request - var formData = {}; + // Serialize Request + var formData = {}; if (additionalMetadata !== undefined && additionalMetadata !== null) { formData['additionalMetadata'] = additionalMetadata; } if (file !== undefined && file !== null) { - formData['file'] = file; + formData['file'] = file; } httpRequest.formData = formData; // Send Request @@ -1239,12 +1248,13 @@ SwaggerPetstore.prototype.uploadFile = function (petId, options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1264,10 +1274,10 @@ SwaggerPetstore.prototype.uploadFile = function (petId, options, callback) { * Returns a map of status codes to quantities * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1325,12 +1335,13 @@ SwaggerPetstore.prototype.getInventory = function (options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1378,23 +1389,23 @@ SwaggerPetstore.prototype.getInventory = function (options, callback) { * @summary Place an order for a pet * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.body] order placed for purchasing the pet - * + * * @param {number} [options.body.petId] - * + * * @param {number} [options.body.quantity] - * + * * @param {date} [options.body.shipDate] - * + * * @param {string} [options.body.status] Order Status. Possible values include: * 'placed', 'approved', 'delivered' - * + * * @param {boolean} [options.body.complete] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1447,7 +1458,7 @@ SwaggerPetstore.prototype.placeOrder = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(body, {depth: null}))); return callback(serializationError); } @@ -1468,12 +1479,13 @@ SwaggerPetstore.prototype.placeOrder = function (options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1511,12 +1523,12 @@ SwaggerPetstore.prototype.placeOrder = function (options, callback) { * will generated exceptions * * @param {string} orderId ID of pet that needs to be fetched - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1584,12 +1596,13 @@ SwaggerPetstore.prototype.getOrderById = function (orderId, options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1627,12 +1640,12 @@ SwaggerPetstore.prototype.getOrderById = function (orderId, options, callback) { * nonintegers will generate API errors * * @param {string} orderId ID of the order that needs to be deleted - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1699,12 +1712,13 @@ SwaggerPetstore.prototype.deleteOrder = function (orderId, options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1724,28 +1738,28 @@ SwaggerPetstore.prototype.deleteOrder = function (orderId, options, callback) { * This can only be done by the logged in user. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.body] Created user object - * + * * @param {number} [options.body.id] - * + * * @param {string} [options.body.username] - * + * * @param {string} [options.body.firstName] - * + * * @param {string} [options.body.lastName] - * + * * @param {string} [options.body.email] - * + * * @param {string} [options.body.password] - * + * * @param {string} [options.body.phone] - * + * * @param {number} [options.body.userStatus] User Status - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1797,7 +1811,7 @@ SwaggerPetstore.prototype.createUser = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(body, {depth: null}))); return callback(serializationError); } @@ -1818,12 +1832,13 @@ SwaggerPetstore.prototype.createUser = function (options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1841,12 +1856,12 @@ SwaggerPetstore.prototype.createUser = function (options, callback) { * @summary Creates list of users with given input array * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.body] List of user object - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1912,7 +1927,7 @@ SwaggerPetstore.prototype.createUsersWithArrayInput = function (options, callbac requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(body, {depth: null}))); return callback(serializationError); } @@ -1933,12 +1948,13 @@ SwaggerPetstore.prototype.createUsersWithArrayInput = function (options, callbac try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1956,12 +1972,12 @@ SwaggerPetstore.prototype.createUsersWithArrayInput = function (options, callbac * @summary Creates list of users with given input array * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.body] List of user object - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2027,7 +2043,7 @@ SwaggerPetstore.prototype.createUsersWithListInput = function (options, callback requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(body, {depth: null}))); return callback(serializationError); } @@ -2048,12 +2064,13 @@ SwaggerPetstore.prototype.createUsersWithListInput = function (options, callback try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2071,14 +2088,14 @@ SwaggerPetstore.prototype.createUsersWithListInput = function (options, callback * @summary Logs user into the system * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.username] The user name for login - * + * * @param {string} [options.password] The password for login in clear text - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2159,12 +2176,13 @@ SwaggerPetstore.prototype.loginUser = function (options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2205,10 +2223,10 @@ SwaggerPetstore.prototype.loginUser = function (options, callback) { * @summary Logs out current logged in user session * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2266,12 +2284,13 @@ SwaggerPetstore.prototype.logoutUser = function (options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2290,12 +2309,12 @@ SwaggerPetstore.prototype.logoutUser = function (options, callback) { * * @param {string} username The name that needs to be fetched. Use user1 for * testing. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2363,12 +2382,13 @@ SwaggerPetstore.prototype.getUserByName = function (username, options, callback) try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2405,30 +2425,30 @@ SwaggerPetstore.prototype.getUserByName = function (username, options, callback) * This can only be done by the logged in user. * * @param {string} username name that need to be deleted - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.body] Updated user object - * + * * @param {number} [options.body.id] - * + * * @param {string} [options.body.username] - * + * * @param {string} [options.body.firstName] - * + * * @param {string} [options.body.lastName] - * + * * @param {string} [options.body.email] - * + * * @param {string} [options.body.password] - * + * * @param {string} [options.body.phone] - * + * * @param {number} [options.body.userStatus] User Status - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2489,7 +2509,7 @@ SwaggerPetstore.prototype.updateUser = function (username, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(body, {depth: null}))); return callback(serializationError); } @@ -2510,12 +2530,13 @@ SwaggerPetstore.prototype.updateUser = function (username, options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2535,12 +2556,12 @@ SwaggerPetstore.prototype.updateUser = function (username, options, callback) { * This can only be done by the logged in user. * * @param {string} username The name that needs to be deleted - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2607,12 +2628,13 @@ SwaggerPetstore.prototype.deleteUser = function (username, options, callback) { try { parsedErrorResponse = JSON.parse(responseBody); if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; + var internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/azureCompositeModel.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/azureCompositeModel.d.ts index dbb2cf639a..ed4bb094b5 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/azureCompositeModel.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/azureCompositeModel.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -68,12 +68,12 @@ declare class AzureCompositeModel { * about each product, and lists the products in the proper display order. * * @param {string} resourceGroupName Resource Group ID. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -86,17 +86,17 @@ declare class AzureCompositeModel { * Resets products. * * @param {string} subscriptionId Subscription ID. - * + * * @param {string} resourceGroupName Resource Group ID. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.productDictionaryOfArray] Dictionary of Array of * product - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -109,17 +109,17 @@ declare class AzureCompositeModel { * Resets products. * * @param {string} subscriptionId Subscription ID. - * + * * @param {string} resourceGroupName Resource Group ID. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.productArrayOfDictionary] Array of dictionary of * products - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/azureCompositeModel.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/azureCompositeModel.js index 01364c6648..55ad328839 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/azureCompositeModel.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/azureCompositeModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -66,13 +66,13 @@ function AzureCompositeModel(credentials, baseUri, options) { } this.credentials = credentials; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } - if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { + if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } this.basicOperations = new operations.BasicOperations(this); @@ -97,12 +97,12 @@ util.inherits(AzureCompositeModel, ServiceClient); * about each product, and lists the products in the proper display order. * * @param {string} resourceGroupName Resource Group ID. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -196,7 +196,7 @@ AzureCompositeModel.prototype.list = function (resourceGroupName, options, callb error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -233,17 +233,17 @@ AzureCompositeModel.prototype.list = function (resourceGroupName, options, callb * Resets products. * * @param {string} subscriptionId Subscription ID. - * + * * @param {string} resourceGroupName Resource Group ID. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.productDictionaryOfArray] Dictionary of Array of * product - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -329,7 +329,7 @@ AzureCompositeModel.prototype.create = function (subscriptionId, resourceGroupNa requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -360,7 +360,7 @@ AzureCompositeModel.prototype.create = function (subscriptionId, resourceGroupNa error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -397,17 +397,17 @@ AzureCompositeModel.prototype.create = function (subscriptionId, resourceGroupNa * Resets products. * * @param {string} subscriptionId Subscription ID. - * + * * @param {string} resourceGroupName Resource Group ID. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.productArrayOfDictionary] Array of dictionary of * products - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -493,7 +493,7 @@ AzureCompositeModel.prototype.update = function (subscriptionId, resourceGroupNa requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -524,7 +524,7 @@ AzureCompositeModel.prototype.update = function (subscriptionId, resourceGroupNa error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/arrayWrapper.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/arrayWrapper.js index 313008a6a3..9535fa3848 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/arrayWrapper.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/arrayWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,7 +17,7 @@ var util = require('util'); * Initializes a new instance of the ArrayWrapper class. * @constructor * @member {array} [arrayProperty] - * + * */ function ArrayWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/basic.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/basic.js index 981c65a70c..c53d4fda19 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/basic.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/basic.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,15 +15,15 @@ * Initializes a new instance of the Basic class. * @constructor * @member {number} [id] Basic Id - * + * * @member {string} [name] Name property with a very * long description that * does not fit on a single line * and a line break. - * + * * @member {string} [color] Possible values include: 'cyan', 'Magenta', * 'YELLOW', 'blacK' - * + * */ function Basic() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/booleanWrapper.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/booleanWrapper.js index ea931716e6..a55f4d69b9 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/booleanWrapper.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/booleanWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the BooleanWrapper class. * @constructor * @member {boolean} [fieldTrue] - * + * * @member {boolean} [fieldFalse] - * + * */ function BooleanWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/byteWrapper.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/byteWrapper.js index f39f81c6e4..04a0b12015 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/byteWrapper.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/byteWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the ByteWrapper class. * @constructor * @member {buffer} [field] - * + * */ function ByteWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/cat.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/cat.js index c3530c4ac8..fd6cc2b83b 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/cat.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/cat.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,9 +19,9 @@ var util = require('util'); * Initializes a new instance of the Cat class. * @constructor * @member {string} [color] - * + * * @member {array} [hates] - * + * */ function Cat() { Cat['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogArray.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogArray.js index 32d675b5b6..3192873955 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogArray.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogArray.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the CatalogArray class. * @constructor * @member {array} [productArray] Array of products - * + * */ function CatalogArray() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogArrayOfDictionary.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogArrayOfDictionary.js index 13547a5dbb..6dcaa0afe6 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogArrayOfDictionary.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogArrayOfDictionary.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the CatalogArrayOfDictionary class. * @constructor * @member {array} [productArrayOfDictionary] Array of dictionary of products - * + * */ function CatalogArrayOfDictionary() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogDictionary.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogDictionary.js index ae49449111..99ed78b382 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogDictionary.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogDictionary.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,7 +17,7 @@ var models = require('./index'); * Initializes a new instance of the CatalogDictionary class. * @constructor * @member {object} [productDictionary] Dictionary of products - * + * */ function CatalogDictionary() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogDictionaryOfArray.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogDictionaryOfArray.js index 490cc6acc0..8d4da8edba 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogDictionaryOfArray.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/catalogDictionaryOfArray.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the CatalogDictionaryOfArray class. * @constructor * @member {object} [productDictionaryOfArray] Dictionary of Array of product - * + * */ function CatalogDictionaryOfArray() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/cookiecuttershark.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/cookiecuttershark.js index 8f6e44d948..12b5babb9c 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/cookiecuttershark.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/cookiecuttershark.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/dateWrapper.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/dateWrapper.js index 8488857a98..09cdf6ed78 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/dateWrapper.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/dateWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the DateWrapper class. * @constructor * @member {date} [field] - * + * * @member {date} [leap] - * + * */ function DateWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/datetimeWrapper.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/datetimeWrapper.js index 5b64d72f08..866833ecde 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/datetimeWrapper.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/datetimeWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the DatetimeWrapper class. * @constructor * @member {date} [field] - * + * * @member {date} [now] - * + * */ function DatetimeWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/datetimerfc1123Wrapper.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/datetimerfc1123Wrapper.js index fd6e1cd9ad..6b5b57337f 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/datetimerfc1123Wrapper.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/datetimerfc1123Wrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the Datetimerfc1123Wrapper class. * @constructor * @member {date} [field] - * + * * @member {date} [now] - * + * */ function Datetimerfc1123Wrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/dictionaryWrapper.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/dictionaryWrapper.js index ab1841ea1d..bdf7679c0a 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/dictionaryWrapper.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/dictionaryWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the DictionaryWrapper class. * @constructor * @member {object} [defaultProgram] - * + * */ function DictionaryWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/dog.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/dog.js index a47364438b..5c431006e3 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/dog.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/dog.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the Dog class. * @constructor * @member {string} [food] - * + * */ function Dog() { Dog['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/doubleWrapper.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/doubleWrapper.js index 5f259eb5bd..1adc89e12e 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/doubleWrapper.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/doubleWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,10 +15,10 @@ * Initializes a new instance of the DoubleWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} * [field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose] - * + * */ function DoubleWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/durationWrapper.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/durationWrapper.js index 05c4a93c4a..bc541aabf0 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/durationWrapper.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/durationWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the DurationWrapper class. * @constructor * @member {moment.duration} [field] - * + * */ function DurationWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/errorModel.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/fish.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/fish.js index a3293cecab..8ad575c13d 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/fish.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/fish.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,13 +19,13 @@ var util = require('util'); * Initializes a new instance of the Fish class. * @constructor * @member {string} [species] - * + * * @member {number} length - * + * * @member {array} [siblings] - * + * * @member {string} fishtype Polymorphic Discriminator - * + * */ function Fish() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/floatWrapper.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/floatWrapper.js index c334044dea..38ff248fd2 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/floatWrapper.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/floatWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the FloatWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} [field2] - * + * */ function FloatWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/goblinshark.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/goblinshark.js index 7de237bd4b..ef27632afd 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/goblinshark.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/goblinshark.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the Goblinshark class. * @constructor * @member {number} [jawsize] - * + * */ function Goblinshark() { Goblinshark['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/index.d.ts index a030da29ca..a0cf89d915 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -21,16 +21,16 @@ exports.CloudError = msRestAzure.CloudError; * @member {string} [productId] Unique identifier representing a specific * product for a given latitude & longitude. For example, uberX in San * Francisco will have a different product_id than uberX in Los Angeles. - * + * * @member {string} [description] Description of product. - * + * * @member {string} [displayName] Display name of product. - * + * * @member {string} [capacity] Capacity of product. For example, 4 people. * Default value: '100' . - * + * * @member {string} [image] Image URL representing the product. - * + * */ export interface Product { productId?: string; @@ -45,7 +45,7 @@ export interface Product { * Initializes a new instance of the CatalogDictionary class. * @constructor * @member {object} [productDictionary] Dictionary of products - * + * */ export interface CatalogDictionary { productDictionary?: { [propertyName: string]: Product }; @@ -56,7 +56,7 @@ export interface CatalogDictionary { * Initializes a new instance of the CatalogArray class. * @constructor * @member {array} [productArray] Array of products - * + * */ export interface CatalogArray { productArray?: Product[]; @@ -67,7 +67,7 @@ export interface CatalogArray { * Initializes a new instance of the CatalogArrayOfDictionary class. * @constructor * @member {array} [productArrayOfDictionary] Array of dictionary of products - * + * */ export interface CatalogArrayOfDictionary { productArrayOfDictionary?: { [propertyName: string]: Product }[]; @@ -78,7 +78,7 @@ export interface CatalogArrayOfDictionary { * Initializes a new instance of the CatalogDictionaryOfArray class. * @constructor * @member {object} [productDictionaryOfArray] Dictionary of Array of product - * + * */ export interface CatalogDictionaryOfArray { productDictionaryOfArray?: { [propertyName: string]: Product[] }; @@ -89,9 +89,9 @@ export interface CatalogDictionaryOfArray { * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; @@ -103,15 +103,15 @@ export interface ErrorModel { * Initializes a new instance of the Basic class. * @constructor * @member {number} [id] Basic Id - * + * * @member {string} [name] Name property with a very * long description that * does not fit on a single line * and a line break. - * + * * @member {string} [color] Possible values include: 'cyan', 'Magenta', * 'YELLOW', 'blacK' - * + * */ export interface Basic { id?: number; @@ -124,9 +124,9 @@ export interface Basic { * Initializes a new instance of the Pet class. * @constructor * @member {number} [id] - * + * * @member {string} [name] - * + * */ export interface Pet { id?: number; @@ -135,27 +135,27 @@ export interface Pet { /** * @class - * Initializes a new instance of the Cat class. + * Initializes a new instance of the Dog class. * @constructor - * @member {string} [color] - * - * @member {array} [hates] - * + * @member {string} [food] + * */ -export interface Cat extends Pet { - color?: string; - hates?: Dog[]; +export interface Dog extends Pet { + food?: string; } /** * @class - * Initializes a new instance of the Dog class. + * Initializes a new instance of the Cat class. * @constructor - * @member {string} [food] - * + * @member {string} [color] + * + * @member {array} [hates] + * */ -export interface Dog extends Pet { - food?: string; +export interface Cat extends Pet { + color?: string; + hates?: Dog[]; } /** @@ -163,7 +163,7 @@ export interface Dog extends Pet { * Initializes a new instance of the Siamese class. * @constructor * @member {string} [breed] - * + * */ export interface Siamese extends Cat { breed?: string; @@ -174,13 +174,13 @@ export interface Siamese extends Cat { * Initializes a new instance of the Fish class. * @constructor * @member {string} [species] - * + * * @member {number} length - * + * * @member {array} [siblings] - * + * * @member {string} fishtype Polymorphic Discriminator - * + * */ export interface Fish { species?: string; @@ -194,9 +194,9 @@ export interface Fish { * Initializes a new instance of the Salmon class. * @constructor * @member {string} [location] - * + * * @member {boolean} [iswild] - * + * */ export interface Salmon extends Fish { location?: string; @@ -208,9 +208,9 @@ export interface Salmon extends Fish { * Initializes a new instance of the Shark class. * @constructor * @member {number} [age] - * + * * @member {date} birthday - * + * */ export interface Shark extends Fish { age?: number; @@ -222,7 +222,7 @@ export interface Shark extends Fish { * Initializes a new instance of the Sawshark class. * @constructor * @member {buffer} [picture] - * + * */ export interface Sawshark extends Shark { picture?: Buffer; @@ -233,7 +233,7 @@ export interface Sawshark extends Shark { * Initializes a new instance of the Goblinshark class. * @constructor * @member {number} [jawsize] - * + * */ export interface Goblinshark extends Shark { jawsize?: number; @@ -252,9 +252,9 @@ export interface Cookiecuttershark extends Shark { * Initializes a new instance of the IntWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} [field2] - * + * */ export interface IntWrapper { field1?: number; @@ -266,9 +266,9 @@ export interface IntWrapper { * Initializes a new instance of the LongWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} [field2] - * + * */ export interface LongWrapper { field1?: number; @@ -280,9 +280,9 @@ export interface LongWrapper { * Initializes a new instance of the FloatWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} [field2] - * + * */ export interface FloatWrapper { field1?: number; @@ -294,10 +294,10 @@ export interface FloatWrapper { * Initializes a new instance of the DoubleWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} * [field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose] - * + * */ export interface DoubleWrapper { field1?: number; @@ -309,9 +309,9 @@ export interface DoubleWrapper { * Initializes a new instance of the BooleanWrapper class. * @constructor * @member {boolean} [fieldTrue] - * + * * @member {boolean} [fieldFalse] - * + * */ export interface BooleanWrapper { fieldTrue?: boolean; @@ -323,11 +323,11 @@ export interface BooleanWrapper { * Initializes a new instance of the StringWrapper class. * @constructor * @member {string} [field] - * + * * @member {string} [empty] - * + * * @member {string} [nullProperty] - * + * */ export interface StringWrapper { field?: string; @@ -340,9 +340,9 @@ export interface StringWrapper { * Initializes a new instance of the DateWrapper class. * @constructor * @member {date} [field] - * + * * @member {date} [leap] - * + * */ export interface DateWrapper { field?: Date; @@ -354,9 +354,9 @@ export interface DateWrapper { * Initializes a new instance of the DatetimeWrapper class. * @constructor * @member {date} [field] - * + * * @member {date} [now] - * + * */ export interface DatetimeWrapper { field?: Date; @@ -368,9 +368,9 @@ export interface DatetimeWrapper { * Initializes a new instance of the Datetimerfc1123Wrapper class. * @constructor * @member {date} [field] - * + * * @member {date} [now] - * + * */ export interface Datetimerfc1123Wrapper { field?: Date; @@ -382,7 +382,7 @@ export interface Datetimerfc1123Wrapper { * Initializes a new instance of the DurationWrapper class. * @constructor * @member {moment.duration} [field] - * + * */ export interface DurationWrapper { field?: moment.Duration; @@ -393,7 +393,7 @@ export interface DurationWrapper { * Initializes a new instance of the ByteWrapper class. * @constructor * @member {buffer} [field] - * + * */ export interface ByteWrapper { field?: Buffer; @@ -404,7 +404,7 @@ export interface ByteWrapper { * Initializes a new instance of the ArrayWrapper class. * @constructor * @member {array} [arrayProperty] - * + * */ export interface ArrayWrapper { arrayProperty?: string[]; @@ -415,7 +415,7 @@ export interface ArrayWrapper { * Initializes a new instance of the DictionaryWrapper class. * @constructor * @member {object} [defaultProgram] - * + * */ export interface DictionaryWrapper { defaultProgram?: { [propertyName: string]: string }; @@ -426,9 +426,9 @@ export interface DictionaryWrapper { * Initializes a new instance of the ReadonlyObj class. * @constructor * @member {string} [id] - * + * * @member {number} [size] - * + * */ export interface ReadonlyObj { id?: string; diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/index.js index 271c5b9e51..df5862fda0 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -26,8 +26,8 @@ exports.CatalogDictionaryOfArray = require('./catalogDictionaryOfArray'); exports.ErrorModel = require('./errorModel'); exports.Basic = require('./basic'); exports.Pet = require('./pet'); -exports.Cat = require('./cat'); exports.Dog = require('./dog'); +exports.Cat = require('./cat'); exports.Siamese = require('./siamese'); exports.Fish = require('./fish'); exports.Salmon = require('./salmon'); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/intWrapper.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/intWrapper.js index a72efcd188..14bf3b59e7 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/intWrapper.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/intWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the IntWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} [field2] - * + * */ function IntWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/longWrapper.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/longWrapper.js index b314f11a86..ae9bb45f3b 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/longWrapper.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/longWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the LongWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} [field2] - * + * */ function LongWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/pet.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/pet.js index 3fd621f05c..3de90f91cf 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/pet.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/pet.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the Pet class. * @constructor * @member {number} [id] - * + * * @member {string} [name] - * + * */ function Pet() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/product.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/product.js index f6631895cd..bcf9a9e6bb 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/product.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/product.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,16 +19,16 @@ * @member {string} [productId] Unique identifier representing a specific * product for a given latitude & longitude. For example, uberX in San * Francisco will have a different product_id than uberX in Los Angeles. - * + * * @member {string} [description] Description of product. - * + * * @member {string} [displayName] Display name of product. - * + * * @member {string} [capacity] Capacity of product. For example, 4 people. * Default value: '100' . - * + * * @member {string} [image] Image URL representing the product. - * + * */ function Product() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/readonlyObj.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/readonlyObj.js index 00604d6a3c..0d1732625d 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/readonlyObj.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/readonlyObj.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ReadonlyObj class. * @constructor * @member {string} [id] - * + * * @member {number} [size] - * + * */ function ReadonlyObj() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/salmon.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/salmon.js index 8772d6eb83..b64564da4e 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/salmon.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/salmon.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,9 +19,9 @@ var util = require('util'); * Initializes a new instance of the Salmon class. * @constructor * @member {string} [location] - * + * * @member {boolean} [iswild] - * + * */ function Salmon() { Salmon['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/sawshark.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/sawshark.js index 06bac75eec..2e5ddeaba3 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/sawshark.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/sawshark.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the Sawshark class. * @constructor * @member {buffer} [picture] - * + * */ function Sawshark() { Sawshark['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/shark.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/shark.js index e9fc9da095..a0ad9502ad 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/shark.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/shark.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,9 +19,9 @@ var util = require('util'); * Initializes a new instance of the Shark class. * @constructor * @member {number} [age] - * + * * @member {date} birthday - * + * */ function Shark() { Shark['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/siamese.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/siamese.js index 54eee4629a..34430228d7 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/siamese.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/siamese.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the Siamese class. * @constructor * @member {string} [breed] - * + * */ function Siamese() { Siamese['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/stringWrapper.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/stringWrapper.js index b435027854..7ce943ddfd 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/stringWrapper.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/models/stringWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,11 +15,11 @@ * Initializes a new instance of the StringWrapper class. * @constructor * @member {string} [field] - * + * * @member {string} [empty] - * + * * @member {string} [nullProperty] - * + * */ function StringWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/arrayModel.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/arrayModel.js index 896adee0d7..040387a6e1 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/arrayModel.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/arrayModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function ArrayModel(client) { * Get complex types with array property * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -123,7 +123,7 @@ ArrayModel.prototype.getValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -158,12 +158,12 @@ ArrayModel.prototype.getValid = function (options, callback) { * Put complex types with array property * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayProperty] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -245,7 +245,7 @@ ArrayModel.prototype.putValid = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -276,7 +276,7 @@ ArrayModel.prototype.putValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -294,10 +294,10 @@ ArrayModel.prototype.putValid = function (options, callback) { * Get complex types with array property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -384,7 +384,7 @@ ArrayModel.prototype.getEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -419,12 +419,12 @@ ArrayModel.prototype.getEmpty = function (options, callback) { * Put complex types with array property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayProperty] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -506,7 +506,7 @@ ArrayModel.prototype.putEmpty = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -537,7 +537,7 @@ ArrayModel.prototype.putEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -556,10 +556,10 @@ ArrayModel.prototype.putEmpty = function (options, callback) { * response payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -646,7 +646,7 @@ ArrayModel.prototype.getNotProvided = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/basicOperations.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/basicOperations.js index 0514ebf345..b0fb15fccc 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/basicOperations.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/basicOperations.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function BasicOperations(client) { * Get complex type {id: 2, name: 'abc', color: 'YELLOW'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -123,7 +123,7 @@ BasicOperations.prototype.getValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -159,22 +159,22 @@ BasicOperations.prototype.getValid = function (options, callback) { * * @param {object} complexBody Please put {id: 2, name: 'abc', color: * 'Magenta'} - * + * * @param {number} [complexBody.id] Basic Id - * + * * @param {string} [complexBody.name] Name property with a very * long description that * does not fit on a single line * and a line break. - * + * * @param {string} [complexBody.color] Possible values include: 'cyan', * 'Magenta', 'YELLOW', 'blacK' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -248,7 +248,7 @@ BasicOperations.prototype.putValid = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -279,7 +279,7 @@ BasicOperations.prototype.putValid = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -297,10 +297,10 @@ BasicOperations.prototype.putValid = function (complexBody, options, callback) { * Get a basic complex type that is invalid for the local strong type * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -387,7 +387,7 @@ BasicOperations.prototype.getInvalid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -422,10 +422,10 @@ BasicOperations.prototype.getInvalid = function (options, callback) { * Get a basic complex type that is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -512,7 +512,7 @@ BasicOperations.prototype.getEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -547,10 +547,10 @@ BasicOperations.prototype.getEmpty = function (options, callback) { * Get a basic complex type whose properties are null * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -637,7 +637,7 @@ BasicOperations.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -672,10 +672,10 @@ BasicOperations.prototype.getNull = function (options, callback) { * Get a basic complex type while the server doesn't provide a response payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -762,7 +762,7 @@ BasicOperations.prototype.getNotProvided = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/dictionary.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/dictionary.js index d3caeae0ac..63b1756fd2 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/dictionary.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/dictionary.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function Dictionary(client) { * Get complex types with dictionary property * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -123,7 +123,7 @@ Dictionary.prototype.getValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -158,12 +158,12 @@ Dictionary.prototype.getValid = function (options, callback) { * Put complex types with dictionary property * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.defaultProgram] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -245,7 +245,7 @@ Dictionary.prototype.putValid = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -276,7 +276,7 @@ Dictionary.prototype.putValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -294,10 +294,10 @@ Dictionary.prototype.putValid = function (options, callback) { * Get complex types with dictionary property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -384,7 +384,7 @@ Dictionary.prototype.getEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -419,12 +419,12 @@ Dictionary.prototype.getEmpty = function (options, callback) { * Put complex types with dictionary property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.defaultProgram] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -506,7 +506,7 @@ Dictionary.prototype.putEmpty = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -537,7 +537,7 @@ Dictionary.prototype.putEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -555,10 +555,10 @@ Dictionary.prototype.putEmpty = function (options, callback) { * Get complex types with dictionary property which is null * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -645,7 +645,7 @@ Dictionary.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -681,10 +681,10 @@ Dictionary.prototype.getNull = function (options, callback) { * response payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -771,7 +771,7 @@ Dictionary.prototype.getNotProvided = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/index.d.ts index f1674cda1a..15518c3478 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -25,10 +25,10 @@ export interface BasicOperations { * Get complex type {id: 2, name: 'abc', color: 'YELLOW'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -40,22 +40,22 @@ export interface BasicOperations { * * @param {object} complexBody Please put {id: 2, name: 'abc', color: * 'Magenta'} - * + * * @param {number} [complexBody.id] Basic Id - * + * * @param {string} [complexBody.name] Name property with a very * long description that * does not fit on a single line * and a line break. - * + * * @param {string} [complexBody.color] Possible values include: 'cyan', * 'Magenta', 'YELLOW', 'blacK' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -66,10 +66,10 @@ export interface BasicOperations { * Get a basic complex type that is invalid for the local strong type * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -80,10 +80,10 @@ export interface BasicOperations { * Get a basic complex type that is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -94,10 +94,10 @@ export interface BasicOperations { * Get a basic complex type whose properties are null * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -108,10 +108,10 @@ export interface BasicOperations { * Get a basic complex type while the server doesn't provide a response payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -131,10 +131,10 @@ export interface Primitive { * Get complex types with integer properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -145,16 +145,16 @@ export interface Primitive { * Put complex types with integer properties * * @param {object} complexBody Please put -1 and 2 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} [complexBody.field2] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -165,10 +165,10 @@ export interface Primitive { * Get complex types with long properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -179,16 +179,16 @@ export interface Primitive { * Put complex types with long properties * * @param {object} complexBody Please put 1099511627775 and -999511627788 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} [complexBody.field2] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -199,10 +199,10 @@ export interface Primitive { * Get complex types with float properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -213,16 +213,16 @@ export interface Primitive { * Put complex types with float properties * * @param {object} complexBody Please put 1.05 and -0.003 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} [complexBody.field2] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -233,10 +233,10 @@ export interface Primitive { * Get complex types with double properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -248,17 +248,17 @@ export interface Primitive { * * @param {object} complexBody Please put 3e-100 and * -0.000000000000000000000000000000000000000000000000000000005 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} * [complexBody.field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -269,10 +269,10 @@ export interface Primitive { * Get complex types with bool properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -283,16 +283,16 @@ export interface Primitive { * Put complex types with bool properties * * @param {object} complexBody Please put true and false - * + * * @param {boolean} [complexBody.fieldTrue] - * + * * @param {boolean} [complexBody.fieldFalse] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -303,10 +303,10 @@ export interface Primitive { * Get complex types with string properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -317,18 +317,18 @@ export interface Primitive { * Put complex types with string properties * * @param {object} complexBody Please put 'goodrequest', '', and null - * + * * @param {string} [complexBody.field] - * + * * @param {string} [complexBody.empty] - * + * * @param {string} [complexBody.nullProperty] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -339,10 +339,10 @@ export interface Primitive { * Get complex types with date properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -353,16 +353,16 @@ export interface Primitive { * Put complex types with date properties * * @param {object} complexBody Please put '0001-01-01' and '2016-02-29' - * + * * @param {date} [complexBody.field] - * + * * @param {date} [complexBody.leap] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -373,10 +373,10 @@ export interface Primitive { * Get complex types with datetime properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -388,16 +388,16 @@ export interface Primitive { * * @param {object} complexBody Please put '0001-01-01T12:00:00-04:00' and * '2015-05-18T11:38:00-08:00' - * + * * @param {date} [complexBody.field] - * + * * @param {date} [complexBody.now] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -408,10 +408,10 @@ export interface Primitive { * Get complex types with datetimeRfc1123 properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -423,16 +423,16 @@ export interface Primitive { * * @param {object} complexBody Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and * 'Mon, 18 May 2015 11:38:00 GMT' - * + * * @param {date} [complexBody.field] - * + * * @param {date} [complexBody.now] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -443,10 +443,10 @@ export interface Primitive { * Get complex types with duration properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -457,12 +457,12 @@ export interface Primitive { * Put complex types with duration properties * * @param {object} [options] Optional Parameters. - * + * * @param {moment.duration} [options.field] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -473,10 +473,10 @@ export interface Primitive { * Get complex types with byte properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -487,12 +487,12 @@ export interface Primitive { * Put complex types with byte properties * * @param {object} [options] Optional Parameters. - * + * * @param {buffer} [options.field] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -512,10 +512,10 @@ export interface ArrayModel { * Get complex types with array property * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -526,12 +526,12 @@ export interface ArrayModel { * Put complex types with array property * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayProperty] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -542,10 +542,10 @@ export interface ArrayModel { * Get complex types with array property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -556,12 +556,12 @@ export interface ArrayModel { * Put complex types with array property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayProperty] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -573,10 +573,10 @@ export interface ArrayModel { * response payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -596,10 +596,10 @@ export interface Dictionary { * Get complex types with dictionary property * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -610,12 +610,12 @@ export interface Dictionary { * Put complex types with dictionary property * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.defaultProgram] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -626,10 +626,10 @@ export interface Dictionary { * Get complex types with dictionary property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -640,12 +640,12 @@ export interface Dictionary { * Put complex types with dictionary property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.defaultProgram] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -656,10 +656,10 @@ export interface Dictionary { * Get complex types with dictionary property which is null * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -671,10 +671,10 @@ export interface Dictionary { * response payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -694,10 +694,10 @@ export interface Inheritance { * Get complex types that extend others * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -711,18 +711,18 @@ export interface Inheritance { * color=green, breed=persion, which hates 2 dogs, the 1st one named "Potato" * with id=1 and food="tomato", and the 2nd one named "Tomato" with id=-1 and * food="french fries". - * + * * @param {string} [complexBody.breed] - * + * * @param {string} [complexBody.color] - * + * * @param {array} [complexBody.hates] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -742,10 +742,10 @@ export interface Polymorphism { * Get complex types that are polymorphic * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -788,20 +788,20 @@ export interface Polymorphism { * } * ] * }; - * + * * @param {string} [complexBody.species] - * + * * @param {number} complexBody.length - * + * * @param {array} [complexBody.siblings] - * + * * @param {string} complexBody.fishtype Polymorphic Discriminator - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -839,20 +839,20 @@ export interface Polymorphism { * } * ] * } - * + * * @param {string} [complexBody.species] - * + * * @param {number} complexBody.length - * + * * @param {array} [complexBody.siblings] - * + * * @param {string} complexBody.fishtype Polymorphic Discriminator - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -872,10 +872,10 @@ export interface Polymorphicrecursive { * Get complex types that are polymorphic and have recursive references * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -938,20 +938,20 @@ export interface Polymorphicrecursive { * } * ] * } - * + * * @param {string} [complexBody.species] - * + * * @param {number} complexBody.length - * + * * @param {array} [complexBody.siblings] - * + * * @param {string} complexBody.fishtype Polymorphic Discriminator - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -971,10 +971,10 @@ export interface Readonlyproperty { * Get complex types that have readonly properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -985,12 +985,12 @@ export interface Readonlyproperty { * Put complex types that have readonly properties * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.size] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/index.js index 0af6a28ded..605228e758 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/inheritance.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/inheritance.js index b4c264151e..917b80c58b 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/inheritance.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/inheritance.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function Inheritance(client) { * Get complex types that extend others * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -123,7 +123,7 @@ Inheritance.prototype.getValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -161,18 +161,18 @@ Inheritance.prototype.getValid = function (options, callback) { * color=green, breed=persion, which hates 2 dogs, the 1st one named "Potato" * with id=1 and food="tomato", and the 2nd one named "Tomato" with id=-1 and * food="french fries". - * + * * @param {string} [complexBody.breed] - * + * * @param {string} [complexBody.color] - * + * * @param {array} [complexBody.hates] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -244,7 +244,7 @@ Inheritance.prototype.putValid = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -275,7 +275,7 @@ Inheritance.prototype.putValid = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/polymorphicrecursive.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/polymorphicrecursive.js index df6d60845e..f2de377470 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/polymorphicrecursive.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/polymorphicrecursive.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function Polymorphicrecursive(client) { * Get complex types that are polymorphic and have recursive references * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -123,7 +123,7 @@ Polymorphicrecursive.prototype.getValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -210,20 +210,20 @@ Polymorphicrecursive.prototype.getValid = function (options, callback) { * } * ] * } - * + * * @param {string} [complexBody.species] - * + * * @param {number} complexBody.length - * + * * @param {array} [complexBody.siblings] - * + * * @param {string} complexBody.fishtype Polymorphic Discriminator - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -295,7 +295,7 @@ Polymorphicrecursive.prototype.putValid = function (complexBody, options, callba requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -326,7 +326,7 @@ Polymorphicrecursive.prototype.putValid = function (complexBody, options, callba error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/polymorphism.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/polymorphism.js index 904b9809da..5bf67c06f3 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/polymorphism.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/polymorphism.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function Polymorphism(client) { * Get complex types that are polymorphic * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -123,7 +123,7 @@ Polymorphism.prototype.getValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -190,20 +190,20 @@ Polymorphism.prototype.getValid = function (options, callback) { * } * ] * }; - * + * * @param {string} [complexBody.species] - * + * * @param {number} complexBody.length - * + * * @param {array} [complexBody.siblings] - * + * * @param {string} complexBody.fishtype Polymorphic Discriminator - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -275,7 +275,7 @@ Polymorphism.prototype.putValid = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -306,7 +306,7 @@ Polymorphism.prototype.putValid = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -351,20 +351,20 @@ Polymorphism.prototype.putValid = function (complexBody, options, callback) { * } * ] * } - * + * * @param {string} [complexBody.species] - * + * * @param {number} complexBody.length - * + * * @param {array} [complexBody.siblings] - * + * * @param {string} complexBody.fishtype Polymorphic Discriminator - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -436,7 +436,7 @@ Polymorphism.prototype.putValidMissingRequired = function (complexBody, options, requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -467,7 +467,7 @@ Polymorphism.prototype.putValidMissingRequired = function (complexBody, options, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/primitive.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/primitive.js index f5f5e226c3..9e37022cea 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/primitive.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/primitive.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -34,10 +34,10 @@ function Primitive(client) { * Get complex types with integer properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -124,7 +124,7 @@ Primitive.prototype.getInt = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -159,16 +159,16 @@ Primitive.prototype.getInt = function (options, callback) { * Put complex types with integer properties * * @param {object} complexBody Please put -1 and 2 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} [complexBody.field2] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -240,7 +240,7 @@ Primitive.prototype.putInt = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -271,7 +271,7 @@ Primitive.prototype.putInt = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -289,10 +289,10 @@ Primitive.prototype.putInt = function (complexBody, options, callback) { * Get complex types with long properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -379,7 +379,7 @@ Primitive.prototype.getLong = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -414,16 +414,16 @@ Primitive.prototype.getLong = function (options, callback) { * Put complex types with long properties * * @param {object} complexBody Please put 1099511627775 and -999511627788 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} [complexBody.field2] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -495,7 +495,7 @@ Primitive.prototype.putLong = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -526,7 +526,7 @@ Primitive.prototype.putLong = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -544,10 +544,10 @@ Primitive.prototype.putLong = function (complexBody, options, callback) { * Get complex types with float properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -634,7 +634,7 @@ Primitive.prototype.getFloat = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -669,16 +669,16 @@ Primitive.prototype.getFloat = function (options, callback) { * Put complex types with float properties * * @param {object} complexBody Please put 1.05 and -0.003 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} [complexBody.field2] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -750,7 +750,7 @@ Primitive.prototype.putFloat = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -781,7 +781,7 @@ Primitive.prototype.putFloat = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -799,10 +799,10 @@ Primitive.prototype.putFloat = function (complexBody, options, callback) { * Get complex types with double properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -889,7 +889,7 @@ Primitive.prototype.getDouble = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -925,17 +925,17 @@ Primitive.prototype.getDouble = function (options, callback) { * * @param {object} complexBody Please put 3e-100 and * -0.000000000000000000000000000000000000000000000000000000005 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} * [complexBody.field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1007,7 +1007,7 @@ Primitive.prototype.putDouble = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -1038,7 +1038,7 @@ Primitive.prototype.putDouble = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1056,10 +1056,10 @@ Primitive.prototype.putDouble = function (complexBody, options, callback) { * Get complex types with bool properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1146,7 +1146,7 @@ Primitive.prototype.getBool = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1181,16 +1181,16 @@ Primitive.prototype.getBool = function (options, callback) { * Put complex types with bool properties * * @param {object} complexBody Please put true and false - * + * * @param {boolean} [complexBody.fieldTrue] - * + * * @param {boolean} [complexBody.fieldFalse] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1262,7 +1262,7 @@ Primitive.prototype.putBool = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -1293,7 +1293,7 @@ Primitive.prototype.putBool = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1311,10 +1311,10 @@ Primitive.prototype.putBool = function (complexBody, options, callback) { * Get complex types with string properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1401,7 +1401,7 @@ Primitive.prototype.getString = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1436,18 +1436,18 @@ Primitive.prototype.getString = function (options, callback) { * Put complex types with string properties * * @param {object} complexBody Please put 'goodrequest', '', and null - * + * * @param {string} [complexBody.field] - * + * * @param {string} [complexBody.empty] - * + * * @param {string} [complexBody.nullProperty] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1519,7 +1519,7 @@ Primitive.prototype.putString = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -1550,7 +1550,7 @@ Primitive.prototype.putString = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1568,10 +1568,10 @@ Primitive.prototype.putString = function (complexBody, options, callback) { * Get complex types with date properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1658,7 +1658,7 @@ Primitive.prototype.getDate = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1693,16 +1693,16 @@ Primitive.prototype.getDate = function (options, callback) { * Put complex types with date properties * * @param {object} complexBody Please put '0001-01-01' and '2016-02-29' - * + * * @param {date} [complexBody.field] - * + * * @param {date} [complexBody.leap] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1774,7 +1774,7 @@ Primitive.prototype.putDate = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -1805,7 +1805,7 @@ Primitive.prototype.putDate = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1823,10 +1823,10 @@ Primitive.prototype.putDate = function (complexBody, options, callback) { * Get complex types with datetime properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1913,7 +1913,7 @@ Primitive.prototype.getDateTime = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1949,16 +1949,16 @@ Primitive.prototype.getDateTime = function (options, callback) { * * @param {object} complexBody Please put '0001-01-01T12:00:00-04:00' and * '2015-05-18T11:38:00-08:00' - * + * * @param {date} [complexBody.field] - * + * * @param {date} [complexBody.now] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2030,7 +2030,7 @@ Primitive.prototype.putDateTime = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -2061,7 +2061,7 @@ Primitive.prototype.putDateTime = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2079,10 +2079,10 @@ Primitive.prototype.putDateTime = function (complexBody, options, callback) { * Get complex types with datetimeRfc1123 properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2170,7 +2170,7 @@ Primitive.prototype.getDateTimeRfc1123 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2206,16 +2206,16 @@ Primitive.prototype.getDateTimeRfc1123 = function (options, callback) { * * @param {object} complexBody Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and * 'Mon, 18 May 2015 11:38:00 GMT' - * + * * @param {date} [complexBody.field] - * + * * @param {date} [complexBody.now] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2287,7 +2287,7 @@ Primitive.prototype.putDateTimeRfc1123 = function (complexBody, options, callbac requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -2318,7 +2318,7 @@ Primitive.prototype.putDateTimeRfc1123 = function (complexBody, options, callbac error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2336,10 +2336,10 @@ Primitive.prototype.putDateTimeRfc1123 = function (complexBody, options, callbac * Get complex types with duration properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2426,7 +2426,7 @@ Primitive.prototype.getDuration = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2461,12 +2461,12 @@ Primitive.prototype.getDuration = function (options, callback) { * Put complex types with duration properties * * @param {object} [options] Optional Parameters. - * + * * @param {moment.duration} [options.field] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2544,7 +2544,7 @@ Primitive.prototype.putDuration = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -2575,7 +2575,7 @@ Primitive.prototype.putDuration = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2593,10 +2593,10 @@ Primitive.prototype.putDuration = function (options, callback) { * Get complex types with byte properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2683,7 +2683,7 @@ Primitive.prototype.getByte = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2718,12 +2718,12 @@ Primitive.prototype.getByte = function (options, callback) { * Put complex types with byte properties * * @param {object} [options] Optional Parameters. - * + * * @param {buffer} [options.field] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2801,7 +2801,7 @@ Primitive.prototype.putByte = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -2832,7 +2832,7 @@ Primitive.prototype.putByte = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/readonlyproperty.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/readonlyproperty.js index 9e4ac84ec1..284922e96f 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/readonlyproperty.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/operations/readonlyproperty.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function Readonlyproperty(client) { * Get complex types that have readonly properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -123,7 +123,7 @@ Readonlyproperty.prototype.getValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -158,12 +158,12 @@ Readonlyproperty.prototype.getValid = function (options, callback) { * Put complex types that have readonly properties * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.size] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -245,7 +245,7 @@ Readonlyproperty.prototype.putValid = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -276,7 +276,7 @@ Readonlyproperty.prototype.putValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autoRestParameterGroupingTestService.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autoRestParameterGroupingTestService.d.ts index a27bd109b3..90efdcc783 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autoRestParameterGroupingTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autoRestParameterGroupingTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autoRestParameterGroupingTestService.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autoRestParameterGroupingTestService.js index aab1070211..188d72e615 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autoRestParameterGroupingTestService.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/autoRestParameterGroupingTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -64,13 +64,13 @@ function AutoRestParameterGroupingTestService(credentials, baseUri, options) { } this.credentials = credentials; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } - if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { + if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } this.parameterGrouping = new operations.ParameterGrouping(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/errorModel.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/firstParameterGroup.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/firstParameterGroup.js index 37c6a759b0..de5a21d8e8 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/firstParameterGroup.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/firstParameterGroup.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,10 +19,10 @@ * ParameterGrouping_postSharedParameterGroupObject. * * @member {string} [headerOne] - * + * * @member {number} [queryOne] Query parameter with default. Default value: 30 * . - * + * */ function FirstParameterGroup() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/index.d.ts index 78eef68a23..353d5830ac 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,9 +17,9 @@ exports.CloudError = msRestAzure.CloudError; * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; @@ -33,13 +33,13 @@ export interface ErrorModel { * Additional parameters for the ParameterGrouping_postRequired operation. * * @member {number} body - * + * * @member {string} [customHeader] - * + * * @member {number} [query] Query parameter with default. Default value: 30 . - * + * * @member {string} path Path parameter - * + * */ export interface ParameterGroupingPostRequiredParameters { body: number; @@ -55,9 +55,9 @@ export interface ParameterGroupingPostRequiredParameters { * Additional parameters for the ParameterGrouping_postOptional operation. * * @member {string} [customHeader] - * + * * @member {number} [query] Query parameter with default. Default value: 30 . - * + * */ export interface ParameterGroupingPostOptionalParameters { customHeader?: string; @@ -73,10 +73,10 @@ export interface ParameterGroupingPostOptionalParameters { * ParameterGrouping_postSharedParameterGroupObject. * * @member {string} [headerOne] - * + * * @member {number} [queryOne] Query parameter with default. Default value: 30 * . - * + * */ export interface FirstParameterGroup { headerOne?: string; @@ -91,10 +91,10 @@ export interface FirstParameterGroup { * operation. * * @member {string} [headerTwo] - * + * * @member {number} [queryTwo] Query parameter with default. Default value: 30 * . - * + * */ export interface ParameterGroupingPostMultiParamGroupsSecondParamGroup { headerTwo?: string; diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/index.js index cc34b6c795..9214ceb920 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostMultiParamGroupsSecondParamGroup.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostMultiParamGroupsSecondParamGroup.js index 24a08a974e..b6d475bd75 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostMultiParamGroupsSecondParamGroup.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostMultiParamGroupsSecondParamGroup.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -18,10 +18,10 @@ * operation. * * @member {string} [headerTwo] - * + * * @member {number} [queryTwo] Query parameter with default. Default value: 30 * . - * + * */ function ParameterGroupingPostMultiParamGroupsSecondParamGroup() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostOptionalParameters.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostOptionalParameters.js index 1e492c1e86..dd6b519bd2 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostOptionalParameters.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostOptionalParameters.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,9 +17,9 @@ * Additional parameters for the ParameterGrouping_postOptional operation. * * @member {string} [customHeader] - * + * * @member {number} [query] Query parameter with default. Default value: 30 . - * + * */ function ParameterGroupingPostOptionalParameters() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostRequiredParameters.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostRequiredParameters.js index 0fba78510e..48272dbf19 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostRequiredParameters.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostRequiredParameters.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,13 +17,13 @@ * Additional parameters for the ParameterGrouping_postRequired operation. * * @member {number} body - * + * * @member {string} [customHeader] - * + * * @member {number} [query] Query parameter with default. Default value: 30 . - * + * * @member {string} path Path parameter - * + * */ function ParameterGroupingPostRequiredParameters() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/operations/index.d.ts index bf53474a14..02b1998584 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -25,21 +25,21 @@ export interface ParameterGrouping { * * @param {object} parameterGroupingPostRequiredParameters Additional * parameters for the operation - * + * * @param {number} parameterGroupingPostRequiredParameters.body - * + * * @param {string} [parameterGroupingPostRequiredParameters.customHeader] - * + * * @param {number} [parameterGroupingPostRequiredParameters.query] Query * parameter with default - * + * * @param {string} parameterGroupingPostRequiredParameters.path Path parameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -50,19 +50,19 @@ export interface ParameterGrouping { * Post a bunch of optional parameters grouped * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.parameterGroupingPostOptionalParameters] Additional * parameters for the operation - * + * * @param {string} * [options.parameterGroupingPostOptionalParameters.customHeader] - * + * * @param {number} [options.parameterGroupingPostOptionalParameters.query] * Query parameter with default - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -73,29 +73,29 @@ export interface ParameterGrouping { * Post parameters from multiple different parameter groups * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.firstParameterGroup] Additional parameters for the * operation - * + * * @param {string} [options.firstParameterGroup.headerOne] - * + * * @param {number} [options.firstParameterGroup.queryOne] Query parameter with * default - * + * * @param {object} * [options.parameterGroupingPostMultiParamGroupsSecondParamGroup] Additional * parameters for the operation - * + * * @param {string} * [options.parameterGroupingPostMultiParamGroupsSecondParamGroup.headerTwo] - * + * * @param {number} * [options.parameterGroupingPostMultiParamGroupsSecondParamGroup.queryTwo] * Query parameter with default - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -106,18 +106,18 @@ export interface ParameterGrouping { * Post parameters with a shared parameter group object * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.firstParameterGroup] Additional parameters for the * operation - * + * * @param {string} [options.firstParameterGroup.headerOne] - * + * * @param {number} [options.firstParameterGroup.queryOne] Query parameter with * default - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/operations/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/operations/index.js index d858be9efb..4b5df0b985 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/operations/parameterGrouping.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/operations/parameterGrouping.js index ac1fb56275..863ab8b562 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/operations/parameterGrouping.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/operations/parameterGrouping.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -34,21 +34,21 @@ function ParameterGrouping(client) { * * @param {object} parameterGroupingPostRequiredParameters Additional * parameters for the operation - * + * * @param {number} parameterGroupingPostRequiredParameters.body - * + * * @param {string} [parameterGroupingPostRequiredParameters.customHeader] - * + * * @param {number} [parameterGroupingPostRequiredParameters.query] Query * parameter with default - * + * * @param {string} parameterGroupingPostRequiredParameters.path Path parameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -169,7 +169,7 @@ ParameterGrouping.prototype.postRequired = function (parameterGroupingPostRequir requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(body, {depth: null}))); return callback(serializationError); } @@ -200,7 +200,7 @@ ParameterGrouping.prototype.postRequired = function (parameterGroupingPostRequir error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -218,19 +218,19 @@ ParameterGrouping.prototype.postRequired = function (parameterGroupingPostRequir * Post a bunch of optional parameters grouped * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.parameterGroupingPostOptionalParameters] Additional * parameters for the operation - * + * * @param {string} * [options.parameterGroupingPostOptionalParameters.customHeader] - * + * * @param {number} [options.parameterGroupingPostOptionalParameters.query] * Query parameter with default - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -343,7 +343,7 @@ ParameterGrouping.prototype.postOptional = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -361,29 +361,29 @@ ParameterGrouping.prototype.postOptional = function (options, callback) { * Post parameters from multiple different parameter groups * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.firstParameterGroup] Additional parameters for the * operation - * + * * @param {string} [options.firstParameterGroup.headerOne] - * + * * @param {number} [options.firstParameterGroup.queryOne] Query parameter with * default - * + * * @param {object} * [options.parameterGroupingPostMultiParamGroupsSecondParamGroup] Additional * parameters for the operation - * + * * @param {string} * [options.parameterGroupingPostMultiParamGroupsSecondParamGroup.headerTwo] - * + * * @param {number} * [options.parameterGroupingPostMultiParamGroupsSecondParamGroup.queryTwo] * Query parameter with default - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -519,7 +519,7 @@ ParameterGrouping.prototype.postMultiParamGroups = function (options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -537,18 +537,18 @@ ParameterGrouping.prototype.postMultiParamGroups = function (options, callback) * Post parameters with a shared parameter group object * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.firstParameterGroup] Additional parameters for the * operation - * + * * @param {string} [options.firstParameterGroup.headerOne] - * + * * @param {number} [options.firstParameterGroup.queryOne] Query parameter with * default - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -661,7 +661,7 @@ ParameterGrouping.prototype.postSharedParameterGroupObject = function (options, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/autoRestReportServiceForAzure.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/autoRestReportServiceForAzure.d.ts index 8fc373d520..27309540b4 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/autoRestReportServiceForAzure.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/autoRestReportServiceForAzure.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -51,10 +51,10 @@ declare class AutoRestReportServiceForAzure { * Get test coverage report * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/autoRestReportServiceForAzure.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/autoRestReportServiceForAzure.js index beb71d413f..a90bd3d98f 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/autoRestReportServiceForAzure.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/autoRestReportServiceForAzure.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -64,13 +64,13 @@ function AutoRestReportServiceForAzure(credentials, baseUri, options) { } this.credentials = credentials; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } - if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { + if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } this.models = models; @@ -83,10 +83,10 @@ util.inherits(AutoRestReportServiceForAzure, ServiceClient); * Get test coverage report * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -172,7 +172,7 @@ AutoRestReportServiceForAzure.prototype.getReport = function (options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/models/errorModel.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/models/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/models/index.d.ts index 28a7ba89a0..b9249e1143 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,9 +17,9 @@ exports.CloudError = msRestAzure.CloudError; * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/models/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/models/index.js index 5b442b2bab..eb10967af6 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/models/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureReport/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/autoRestResourceFlatteningTestService.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/autoRestResourceFlatteningTestService.d.ts index dd647361c6..f4430cc5c0 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/autoRestResourceFlatteningTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/autoRestResourceFlatteningTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -51,12 +51,12 @@ declare class AutoRestResourceFlatteningTestService { * Put External Resource as an Array * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.resourceArray] External Resource as an Array to put - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -67,10 +67,10 @@ declare class AutoRestResourceFlatteningTestService { * Get External Resource as an Array * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -81,13 +81,13 @@ declare class AutoRestResourceFlatteningTestService { * Put External Resource as a Dictionary * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.resourceDictionary] External Resource as a * Dictionary to put - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -98,10 +98,10 @@ declare class AutoRestResourceFlatteningTestService { * Get External Resource as a Dictionary * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -112,31 +112,31 @@ declare class AutoRestResourceFlatteningTestService { * Put External Resource as a ResourceCollection * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.resourceComplexObject] External Resource as a * ResourceCollection to put - * + * * @param {object} [options.resourceComplexObject.productresource] - * + * * @param {string} [options.resourceComplexObject.productresource.pname] - * + * * @param {number} [options.resourceComplexObject.productresource.lsize] - * + * * @param {string} * [options.resourceComplexObject.productresource.provisioningState] - * + * * @param {object} [options.resourceComplexObject.productresource.tags] - * + * * @param {string} [options.resourceComplexObject.productresource.location] * Resource Location - * + * * @param {array} [options.resourceComplexObject.arrayofresources] - * + * * @param {object} [options.resourceComplexObject.dictionaryofresources] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -147,10 +147,10 @@ declare class AutoRestResourceFlatteningTestService { * Get External Resource as a ResourceCollection * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/autoRestResourceFlatteningTestService.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/autoRestResourceFlatteningTestService.js index bac9fcad91..9546242a01 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/autoRestResourceFlatteningTestService.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/autoRestResourceFlatteningTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -64,13 +64,13 @@ function AutoRestResourceFlatteningTestService(credentials, baseUri, options) { } this.credentials = credentials; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } - if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { + if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } this.models = models; @@ -83,12 +83,12 @@ util.inherits(AutoRestResourceFlatteningTestService, ServiceClient); * Put External Resource as an Array * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.resourceArray] External Resource as an Array to put - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -172,7 +172,7 @@ AutoRestResourceFlatteningTestService.prototype.putArray = function (options, ca requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(resourceArray, {depth: null}))); return callback(serializationError); } @@ -203,7 +203,7 @@ AutoRestResourceFlatteningTestService.prototype.putArray = function (options, ca error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -221,10 +221,10 @@ AutoRestResourceFlatteningTestService.prototype.putArray = function (options, ca * Get External Resource as an Array * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -310,7 +310,7 @@ AutoRestResourceFlatteningTestService.prototype.getArray = function (options, ca error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -359,13 +359,13 @@ AutoRestResourceFlatteningTestService.prototype.getArray = function (options, ca * Put External Resource as a Dictionary * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.resourceDictionary] External Resource as a * Dictionary to put - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -449,7 +449,7 @@ AutoRestResourceFlatteningTestService.prototype.putDictionary = function (option requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(resourceDictionary, {depth: null}))); return callback(serializationError); } @@ -480,7 +480,7 @@ AutoRestResourceFlatteningTestService.prototype.putDictionary = function (option error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -498,10 +498,10 @@ AutoRestResourceFlatteningTestService.prototype.putDictionary = function (option * Get External Resource as a Dictionary * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -587,7 +587,7 @@ AutoRestResourceFlatteningTestService.prototype.getDictionary = function (option error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -636,31 +636,31 @@ AutoRestResourceFlatteningTestService.prototype.getDictionary = function (option * Put External Resource as a ResourceCollection * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.resourceComplexObject] External Resource as a * ResourceCollection to put - * + * * @param {object} [options.resourceComplexObject.productresource] - * + * * @param {string} [options.resourceComplexObject.productresource.pname] - * + * * @param {number} [options.resourceComplexObject.productresource.lsize] - * + * * @param {string} * [options.resourceComplexObject.productresource.provisioningState] - * + * * @param {object} [options.resourceComplexObject.productresource.tags] - * + * * @param {string} [options.resourceComplexObject.productresource.location] * Resource Location - * + * * @param {array} [options.resourceComplexObject.arrayofresources] - * + * * @param {object} [options.resourceComplexObject.dictionaryofresources] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -730,7 +730,7 @@ AutoRestResourceFlatteningTestService.prototype.putResourceCollection = function requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(resourceComplexObject, {depth: null}))); return callback(serializationError); } @@ -761,7 +761,7 @@ AutoRestResourceFlatteningTestService.prototype.putResourceCollection = function error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -779,10 +779,10 @@ AutoRestResourceFlatteningTestService.prototype.putResourceCollection = function * Get External Resource as a ResourceCollection * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -869,7 +869,7 @@ AutoRestResourceFlatteningTestService.prototype.getResourceCollection = function error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/errorModel.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/flattenedProduct.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/flattenedProduct.js index aebfbf9461..6fa82a3328 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/flattenedProduct.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/flattenedProduct.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,11 +19,11 @@ var util = require('util'); * Initializes a new instance of the FlattenedProduct class. * @constructor * @member {string} [pname] - * + * * @member {number} [lsize] - * + * * @member {string} [provisioningState] - * + * */ function FlattenedProduct() { FlattenedProduct['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/index.d.ts index bc7328bc0d..edb761dd0b 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,9 +17,9 @@ exports.CloudError = msRestAzure.CloudError; * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; @@ -33,15 +33,15 @@ export interface ErrorModel { * Some resource * * @member {string} [id] Resource Id - * + * * @member {string} [type] Resource Type - * + * * @member {object} [tags] - * + * * @member {string} [location] Resource Location - * + * * @member {string} [name] Resource Name - * + * */ export interface Resource extends BaseResource { id?: string; @@ -56,11 +56,11 @@ export interface Resource extends BaseResource { * Initializes a new instance of the FlattenedProduct class. * @constructor * @member {string} [pname] - * + * * @member {number} [lsize] - * + * * @member {string} [provisioningState] - * + * */ export interface FlattenedProduct extends Resource { pname?: string; @@ -73,17 +73,17 @@ export interface FlattenedProduct extends Resource { * Initializes a new instance of the ResourceCollection class. * @constructor * @member {object} [productresource] - * + * * @member {string} [productresource.pname] - * + * * @member {number} [productresource.lsize] - * + * * @member {string} [productresource.provisioningState] - * + * * @member {array} [arrayofresources] - * + * * @member {object} [dictionaryofresources] - * + * */ export interface ResourceCollection { productresource?: FlattenedProduct; diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/index.js index 5ce4abd4e4..ba5f5439c0 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/resource.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/resource.js index e85bf4b3a0..41f96e0ce7 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/resource.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/resource.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -21,15 +21,15 @@ var util = require('util'); * Some resource * * @member {string} [id] Resource Id - * + * * @member {string} [type] Resource Type - * + * * @member {object} [tags] - * + * * @member {string} [location] Resource Location - * + * * @member {string} [name] Resource Name - * + * */ function Resource() { Resource['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/resourceCollection.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/resourceCollection.js index 906c67ad53..8b5b55dc26 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/resourceCollection.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureResource/models/resourceCollection.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,17 +19,17 @@ var util = require('util'); * Initializes a new instance of the ResourceCollection class. * @constructor * @member {object} [productresource] - * + * * @member {string} [productresource.pname] - * + * * @member {number} [productresource.lsize] - * + * * @member {string} [productresource.provisioningState] - * + * * @member {array} [arrayofresources] - * + * * @member {object} [dictionaryofresources] - * + * */ function ResourceCollection() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autoRestAzureSpecialParametersTestClient.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autoRestAzureSpecialParametersTestClient.d.ts index 47068d2aeb..330edcabb8 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autoRestAzureSpecialParametersTestClient.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autoRestAzureSpecialParametersTestClient.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autoRestAzureSpecialParametersTestClient.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autoRestAzureSpecialParametersTestClient.js index 21010b4575..38291a6d2e 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autoRestAzureSpecialParametersTestClient.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/autoRestAzureSpecialParametersTestClient.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -73,16 +73,16 @@ function AutoRestAzureSpecialParametersTestClient(credentials, subscriptionId, b this.credentials = credentials; this.subscriptionId = subscriptionId; - if(options.apiVersion !== null && options.apiVersion !== undefined) { + if(options.apiVersion !== null && options.apiVersion !== undefined) { this.apiVersion = options.apiVersion; } - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } - if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { + if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } this.xMsClientRequestId = new operations.XMsClientRequestId(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/errorModel.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/errorModel.js index 5d4175ab6b..bbf40d9727 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,11 +15,11 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {number} [constantId] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/headerCustomNamedRequestIdParamGroupingParameters.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/headerCustomNamedRequestIdParamGroupingParameters.js index c6b10a23e2..887407f045 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/headerCustomNamedRequestIdParamGroupingParameters.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/headerCustomNamedRequestIdParamGroupingParameters.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -18,7 +18,7 @@ * operation. * * @member {string} fooClientRequestId The fooRequestId - * + * */ function HeaderCustomNamedRequestIdParamGroupingParameters() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/index.d.ts index be742f51ff..6fe8131338 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,11 +17,11 @@ exports.CloudError = msRestAzure.CloudError; * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {number} [constantId] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; @@ -34,9 +34,9 @@ export interface ErrorModel { * Initializes a new instance of the OdataFilter class. * @constructor * @member {number} [id] - * + * * @member {string} [name] - * + * */ export interface OdataFilter { id?: number; @@ -51,7 +51,7 @@ export interface OdataFilter { * operation. * * @member {string} fooClientRequestId The fooRequestId - * + * */ export interface HeaderCustomNamedRequestIdParamGroupingParameters { fooClientRequestId: string; diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/index.js index 934bde9e84..1501737322 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/odataFilter.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/odataFilter.js index f0f4561c39..67b276ce41 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/odataFilter.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/models/odataFilter.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the OdataFilter class. * @constructor * @member {number} [id] - * + * * @member {string} [name] - * + * */ function OdataFilter() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/apiVersionDefault.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/apiVersionDefault.js index 2fed6cd46a..c4b55e8a35 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/apiVersionDefault.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/apiVersionDefault.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function ApiVersionDefault(client) { * GET method with api-version modeled in global settings. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -126,7 +126,7 @@ ApiVersionDefault.prototype.getMethodGlobalValid = function (options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -144,10 +144,10 @@ ApiVersionDefault.prototype.getMethodGlobalValid = function (options, callback) * GET method with api-version modeled in global settings. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -237,7 +237,7 @@ ApiVersionDefault.prototype.getMethodGlobalNotProvidedValid = function (options, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -255,10 +255,10 @@ ApiVersionDefault.prototype.getMethodGlobalNotProvidedValid = function (options, * GET method with api-version modeled in global settings. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -348,7 +348,7 @@ ApiVersionDefault.prototype.getPathGlobalValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -366,10 +366,10 @@ ApiVersionDefault.prototype.getPathGlobalValid = function (options, callback) { * GET method with api-version modeled in global settings. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -459,7 +459,7 @@ ApiVersionDefault.prototype.getSwaggerGlobalValid = function (options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/apiVersionLocal.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/apiVersionLocal.js index af7fc2a966..17d1155656 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/apiVersionLocal.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/apiVersionLocal.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -34,10 +34,10 @@ function ApiVersionLocal(client) { * '2.0' to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -125,7 +125,7 @@ ApiVersionLocal.prototype.getMethodLocalValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -144,13 +144,13 @@ ApiVersionLocal.prototype.getMethodLocalValid = function (options, callback) { * null to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.apiVersion] This should appear as a method * parameter, use value null, this should result in no serialized parameter - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -243,7 +243,7 @@ ApiVersionLocal.prototype.getMethodLocalNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -262,10 +262,10 @@ ApiVersionLocal.prototype.getMethodLocalNull = function (options, callback) { * '2.0' to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -353,7 +353,7 @@ ApiVersionLocal.prototype.getPathLocalValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -372,10 +372,10 @@ ApiVersionLocal.prototype.getPathLocalValid = function (options, callback) { * '2.0' to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -463,7 +463,7 @@ ApiVersionLocal.prototype.getSwaggerLocalValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/header.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/header.js index 4c21087482..9504c58722 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/header.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/header.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -34,12 +34,12 @@ function Header(client) { * header of the request * * @param {string} fooClientRequestId The fooRequestId - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -131,7 +131,7 @@ Header.prototype.customNamedRequestId = function (fooClientRequestId, options, c error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -151,16 +151,16 @@ Header.prototype.customNamedRequestId = function (fooClientRequestId, options, c * * @param {object} headerCustomNamedRequestIdParamGroupingParameters Additional * parameters for the operation - * + * * @param {string} * headerCustomNamedRequestIdParamGroupingParameters.fooClientRequestId The * fooRequestId - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -264,7 +264,7 @@ Header.prototype.customNamedRequestIdParamGrouping = function (headerCustomNamed error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/index.d.ts index e766d86431..dd96096a10 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -25,10 +25,10 @@ export interface XMsClientRequestId { * 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -41,12 +41,12 @@ export interface XMsClientRequestId { * * @param {string} xMsClientRequestId This should appear as a method parameter, * use value '9C4D50EE-2D56-4CD3-8152-34347DC9F2B0' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -67,10 +67,10 @@ export interface SubscriptionInCredentials { * subscriptionId to '1234-5678-9012-3456' to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -83,10 +83,10 @@ export interface SubscriptionInCredentials { * making this call * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -98,10 +98,10 @@ export interface SubscriptionInCredentials { * subscriptionId to '1234-5678-9012-3456' to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -113,10 +113,10 @@ export interface SubscriptionInCredentials { * subscriptionId to '1234-5678-9012-3456' to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -128,10 +128,10 @@ export interface SubscriptionInCredentials { * subscriptionId to '1234-5678-9012-3456' to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -153,12 +153,12 @@ export interface SubscriptionInMethod { * * @param {string} subscriptionId This should appear as a method parameter, use * value '1234-5678-9012-3456' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -171,12 +171,12 @@ export interface SubscriptionInMethod { * * @param {string} subscriptionId This should appear as a method parameter, use * value null, client-side validation should prvenet the call - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -189,12 +189,12 @@ export interface SubscriptionInMethod { * * @param {string} subscriptionId Should appear as a method parameter -use * value '1234-5678-9012-3456' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -207,12 +207,12 @@ export interface SubscriptionInMethod { * * @param {string} subscriptionId The subscriptionId, which appears in the * path, the value is always '1234-5678-9012-3456' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -232,10 +232,10 @@ export interface ApiVersionDefault { * GET method with api-version modeled in global settings. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -246,10 +246,10 @@ export interface ApiVersionDefault { * GET method with api-version modeled in global settings. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -260,10 +260,10 @@ export interface ApiVersionDefault { * GET method with api-version modeled in global settings. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -274,10 +274,10 @@ export interface ApiVersionDefault { * GET method with api-version modeled in global settings. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -298,10 +298,10 @@ export interface ApiVersionLocal { * '2.0' to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -313,13 +313,13 @@ export interface ApiVersionLocal { * null to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.apiVersion] This should appear as a method * parameter, use value null, this should result in no serialized parameter - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -331,10 +331,10 @@ export interface ApiVersionLocal { * '2.0' to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -346,10 +346,10 @@ export interface ApiVersionLocal { * '2.0' to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -370,12 +370,12 @@ export interface SkipUrlEncoding { * * @param {string} unencodedPathParam Unencoded path parameter with value * 'path1/path2/path3' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -387,12 +387,12 @@ export interface SkipUrlEncoding { * * @param {string} unencodedPathParam Unencoded path parameter with value * 'path1/path2/path3' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -403,10 +403,10 @@ export interface SkipUrlEncoding { * Get method with unencoded path parameter with value 'path1/path2/path3' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -419,12 +419,12 @@ export interface SkipUrlEncoding { * * @param {string} q1 Unencoded query parameter with value * 'value1&q2=value2&q3=value3' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -435,12 +435,12 @@ export interface SkipUrlEncoding { * Get method with unencoded query parameter with value null * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.q1] Unencoded query parameter with value null - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -453,12 +453,12 @@ export interface SkipUrlEncoding { * * @param {string} q1 Unencoded query parameter with value * 'value1&q2=value2&q3=value3' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -470,10 +470,10 @@ export interface SkipUrlEncoding { * 'value1&q2=value2&q3=value3' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -494,17 +494,17 @@ export interface Odata { * 'foo'&$orderby=id&$top=10' * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.filter] The filter parameter with value '$filter=id * gt 5 and name eq 'foo''. - * + * * @param {number} [options.top] The top parameter with value 10. - * + * * @param {string} [options.orderby] The orderby parameter with value id. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -525,12 +525,12 @@ export interface Header { * header of the request * * @param {string} fooClientRequestId The fooRequestId - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -543,16 +543,16 @@ export interface Header { * * @param {object} headerCustomNamedRequestIdParamGroupingParameters Additional * parameters for the operation - * + * * @param {string} * headerCustomNamedRequestIdParamGroupingParameters.fooClientRequestId The * fooRequestId - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/index.js index dbb50b5f79..b22a181286 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/odata.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/odata.js index 6831c9046d..43fa015381 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/odata.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/odata.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -34,17 +34,17 @@ function Odata(client) { * 'foo'&$orderby=id&$top=10' * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.filter] The filter parameter with value '$filter=id * gt 5 and name eq 'foo''. - * + * * @param {number} [options.top] The top parameter with value 10. - * + * * @param {string} [options.orderby] The orderby parameter with value id. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -151,7 +151,7 @@ Odata.prototype.getWithFilter = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/skipUrlEncoding.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/skipUrlEncoding.js index a40a1f79d2..06cad86442 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/skipUrlEncoding.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/skipUrlEncoding.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -34,12 +34,12 @@ function SkipUrlEncoding(client) { * * @param {string} unencodedPathParam Unencoded path parameter with value * 'path1/path2/path3' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -129,7 +129,7 @@ SkipUrlEncoding.prototype.getMethodPathValid = function (unencodedPathParam, opt error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -148,12 +148,12 @@ SkipUrlEncoding.prototype.getMethodPathValid = function (unencodedPathParam, opt * * @param {string} unencodedPathParam Unencoded path parameter with value * 'path1/path2/path3' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -243,7 +243,7 @@ SkipUrlEncoding.prototype.getPathPathValid = function (unencodedPathParam, optio error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -261,10 +261,10 @@ SkipUrlEncoding.prototype.getPathPathValid = function (unencodedPathParam, optio * Get method with unencoded path parameter with value 'path1/path2/path3' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -352,7 +352,7 @@ SkipUrlEncoding.prototype.getSwaggerPathValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -372,12 +372,12 @@ SkipUrlEncoding.prototype.getSwaggerPathValid = function (options, callback) { * * @param {string} q1 Unencoded query parameter with value * 'value1&q2=value2&q3=value3' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -467,7 +467,7 @@ SkipUrlEncoding.prototype.getMethodQueryValid = function (q1, options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -485,12 +485,12 @@ SkipUrlEncoding.prototype.getMethodQueryValid = function (q1, options, callback) * Get method with unencoded query parameter with value null * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.q1] Unencoded query parameter with value null - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -583,7 +583,7 @@ SkipUrlEncoding.prototype.getMethodQueryNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -603,12 +603,12 @@ SkipUrlEncoding.prototype.getMethodQueryNull = function (options, callback) { * * @param {string} q1 Unencoded query parameter with value * 'value1&q2=value2&q3=value3' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -698,7 +698,7 @@ SkipUrlEncoding.prototype.getPathQueryValid = function (q1, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -717,10 +717,10 @@ SkipUrlEncoding.prototype.getPathQueryValid = function (q1, options, callback) { * 'value1&q2=value2&q3=value3' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -808,7 +808,7 @@ SkipUrlEncoding.prototype.getSwaggerQueryValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/subscriptionInCredentials.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/subscriptionInCredentials.js index 301293942c..07ccc1a550 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/subscriptionInCredentials.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/subscriptionInCredentials.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -34,10 +34,10 @@ function SubscriptionInCredentials(client) { * subscriptionId to '1234-5678-9012-3456' to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -127,7 +127,7 @@ SubscriptionInCredentials.prototype.postMethodGlobalValid = function (options, c error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -147,10 +147,10 @@ SubscriptionInCredentials.prototype.postMethodGlobalValid = function (options, c * making this call * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -240,7 +240,7 @@ SubscriptionInCredentials.prototype.postMethodGlobalNull = function (options, ca error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -259,10 +259,10 @@ SubscriptionInCredentials.prototype.postMethodGlobalNull = function (options, ca * subscriptionId to '1234-5678-9012-3456' to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -356,7 +356,7 @@ SubscriptionInCredentials.prototype.postMethodGlobalNotProvidedValid = function error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -375,10 +375,10 @@ SubscriptionInCredentials.prototype.postMethodGlobalNotProvidedValid = function * subscriptionId to '1234-5678-9012-3456' to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -468,7 +468,7 @@ SubscriptionInCredentials.prototype.postPathGlobalValid = function (options, cal error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -487,10 +487,10 @@ SubscriptionInCredentials.prototype.postPathGlobalValid = function (options, cal * subscriptionId to '1234-5678-9012-3456' to succeed * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -580,7 +580,7 @@ SubscriptionInCredentials.prototype.postSwaggerGlobalValid = function (options, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/subscriptionInMethod.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/subscriptionInMethod.js index 516c664ab6..1b6b815d97 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/subscriptionInMethod.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/subscriptionInMethod.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -35,12 +35,12 @@ function SubscriptionInMethod(client) { * * @param {string} subscriptionId This should appear as a method parameter, use * value '1234-5678-9012-3456' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -130,7 +130,7 @@ SubscriptionInMethod.prototype.postMethodLocalValid = function (subscriptionId, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -150,12 +150,12 @@ SubscriptionInMethod.prototype.postMethodLocalValid = function (subscriptionId, * * @param {string} subscriptionId This should appear as a method parameter, use * value null, client-side validation should prvenet the call - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -245,7 +245,7 @@ SubscriptionInMethod.prototype.postMethodLocalNull = function (subscriptionId, o error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -265,12 +265,12 @@ SubscriptionInMethod.prototype.postMethodLocalNull = function (subscriptionId, o * * @param {string} subscriptionId Should appear as a method parameter -use * value '1234-5678-9012-3456' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -360,7 +360,7 @@ SubscriptionInMethod.prototype.postPathLocalValid = function (subscriptionId, op error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -380,12 +380,12 @@ SubscriptionInMethod.prototype.postPathLocalValid = function (subscriptionId, op * * @param {string} subscriptionId The subscriptionId, which appears in the * path, the value is always '1234-5678-9012-3456' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -475,7 +475,7 @@ SubscriptionInMethod.prototype.postSwaggerLocalValid = function (subscriptionId, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/xMsClientRequestId.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/xMsClientRequestId.js index 39506926d2..2067497f63 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/xMsClientRequestId.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/operations/xMsClientRequestId.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -34,10 +34,10 @@ function XMsClientRequestId(client) { * 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -119,7 +119,7 @@ XMsClientRequestId.prototype.get = function (options, callback) { error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -139,12 +139,12 @@ XMsClientRequestId.prototype.get = function (options, callback) { * * @param {string} xMsClientRequestId This should appear as a method parameter, * use value '9C4D50EE-2D56-4CD3-8152-34347DC9F2B0' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -236,7 +236,7 @@ XMsClientRequestId.prototype.paramGet = function (xMsClientRequestId, options, c error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.d.ts index ee3ba3792f..6d49a4bbb1 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.js index a26f0da87e..9b74e124ee 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -62,16 +62,16 @@ function AutoRestParameterizedHostTestClient(credentials, options) { this.baseUri = 'http://{accountName}{host}'; this.credentials = credentials; - if(options.host !== null && options.host !== undefined) { + if(options.host !== null && options.host !== undefined) { this.host = options.host; } - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } - if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { + if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } this.paths = new operations.Paths(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/models/errorModel.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.d.ts index 28a7ba89a0..b9249e1143 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,9 +17,9 @@ exports.CloudError = msRestAzure.CloudError; * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.js index 5b442b2bab..eb10967af6 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.d.ts index 4080bdf952..aed671ca9b 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,12 +24,12 @@ export interface Paths { * Get a 200 to test a valid base uri * * @param {string} accountName Account Name - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.js index 412d88e676..68e5f84839 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/paths.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/paths.js index fce65eef9f..dff3752fa4 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/paths.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/paths.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,12 +33,12 @@ function Paths(client) { * Get a 200 to test a valid base uri * * @param {string} accountName Account Name - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -132,7 +132,7 @@ Paths.prototype.getEmpty = function (accountName, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/autoRestHeadTestService.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/autoRestHeadTestService.d.ts index b6be401f53..99ca080d8c 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/autoRestHeadTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/autoRestHeadTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/autoRestHeadTestService.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/autoRestHeadTestService.js index 30c54729da..6110d09714 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/autoRestHeadTestService.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/autoRestHeadTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -64,13 +64,13 @@ function AutoRestHeadTestService(credentials, baseUri, options) { } this.credentials = credentials; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } - if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { + if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } this.httpSuccess = new operations.HttpSuccess(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/models/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/models/index.d.ts index 73cda8cf47..d8c7bff632 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/models/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/models/index.js index e4c20f79e5..83ec17b62a 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/models/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/operations/httpSuccess.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/operations/httpSuccess.js index 00faa34a30..408a13cff2 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/operations/httpSuccess.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/operations/httpSuccess.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function HttpSuccess(client) { * Return 200 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -121,7 +121,7 @@ HttpSuccess.prototype.head200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -140,10 +140,10 @@ HttpSuccess.prototype.head200 = function (options, callback) { * Return 204 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -228,7 +228,7 @@ HttpSuccess.prototype.head204 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -247,10 +247,10 @@ HttpSuccess.prototype.head204 = function (options, callback) { * Return 404 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -335,7 +335,7 @@ HttpSuccess.prototype.head404 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/operations/index.d.ts index 0eaa6c9e1e..5bb5c8abaa 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,10 +24,10 @@ export interface HttpSuccess { * Return 200 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -38,10 +38,10 @@ export interface HttpSuccess { * Return 204 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -52,10 +52,10 @@ export interface HttpSuccess { * Return 404 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/operations/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/operations/index.js index a8e8338d40..91f6e0e651 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Head/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autoRestHeadExceptionTestService.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autoRestHeadExceptionTestService.d.ts index 6688158a3d..8acd1c41c6 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autoRestHeadExceptionTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autoRestHeadExceptionTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autoRestHeadExceptionTestService.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autoRestHeadExceptionTestService.js index cd6492f806..750f6f5bdf 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autoRestHeadExceptionTestService.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/autoRestHeadExceptionTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -64,13 +64,13 @@ function AutoRestHeadExceptionTestService(credentials, baseUri, options) { } this.credentials = credentials; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } - if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { + if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } this.headException = new operations.HeadException(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/models/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/models/index.d.ts index 73cda8cf47..d8c7bff632 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/models/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/models/index.js index e4c20f79e5..83ec17b62a 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/models/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/operations/headException.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/operations/headException.js index bb3043ce30..4a79ae5ac6 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/operations/headException.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/operations/headException.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function HeadException(client) { * Return 200 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -118,7 +118,7 @@ HeadException.prototype.head200 = function (options, callback) { error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -136,10 +136,10 @@ HeadException.prototype.head200 = function (options, callback) { * Return 204 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -221,7 +221,7 @@ HeadException.prototype.head204 = function (options, callback) { error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -239,10 +239,10 @@ HeadException.prototype.head204 = function (options, callback) { * Return 404 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -324,7 +324,7 @@ HeadException.prototype.head404 = function (options, callback) { error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/operations/index.d.ts index 753da4110e..2dceb725ff 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,10 +24,10 @@ export interface HeadException { * Return 200 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -38,10 +38,10 @@ export interface HeadException { * Return 204 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -52,10 +52,10 @@ export interface HeadException { * Return 404 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/operations/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/operations/index.js index c8a78a5d17..06474feff9 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/autoRestLongRunningOperationTestService.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/autoRestLongRunningOperationTestService.d.ts index 91b81a3c5d..0ed4909482 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/autoRestLongRunningOperationTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/autoRestLongRunningOperationTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/autoRestLongRunningOperationTestService.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/autoRestLongRunningOperationTestService.js index dddde587a7..81a7c499a4 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/autoRestLongRunningOperationTestService.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/autoRestLongRunningOperationTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -64,13 +64,13 @@ function AutoRestLongRunningOperationTestService(credentials, baseUri, options) } this.credentials = credentials; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } - if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { + if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } this.lROs = new operations.LROs(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/index.d.ts index 32d0b57a0d..4b69dc3bbb 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,15 +17,15 @@ exports.CloudError = msRestAzure.CloudError; * Initializes a new instance of the Resource class. * @constructor * @member {string} [id] Resource Id - * + * * @member {string} [type] Resource Type - * + * * @member {object} [tags] - * + * * @member {string} [location] Resource Location - * + * * @member {string} [name] Resource Name - * + * */ export interface Resource extends BaseResource { id?: string; @@ -40,9 +40,9 @@ export interface Resource extends BaseResource { * Initializes a new instance of the Sku class. * @constructor * @member {string} [name] - * + * * @member {string} [id] - * + * */ export interface Sku { name?: string; @@ -54,11 +54,11 @@ export interface Sku { * Initializes a new instance of the Product class. * @constructor * @member {string} [provisioningState] - * + * * @member {string} [provisioningStateValues] Possible values include: * 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', * 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' - * + * */ export interface Product extends Resource { provisioningState?: string; @@ -70,7 +70,7 @@ export interface Product extends Resource { * Initializes a new instance of the SubResource class. * @constructor * @member {string} [id] Sub Resource Id - * + * */ export interface SubResource extends BaseResource { id?: string; @@ -81,17 +81,31 @@ export interface SubResource extends BaseResource { * Initializes a new instance of the SubProduct class. * @constructor * @member {string} [provisioningState] - * + * * @member {string} [provisioningStateValues] Possible values include: * 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', * 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' - * + * */ export interface SubProduct extends SubResource { provisioningState?: string; provisioningStateValues?: string; } +/** + * @class + * Initializes a new instance of the OperationResultError class. + * @constructor + * @member {number} [code] The error code for an operation failure + * + * @member {string} [message] The detailed arror message + * + */ +export interface OperationResultError { + code?: number; + message?: string; +} + /** * @class * Initializes a new instance of the OperationResult class. @@ -99,30 +113,16 @@ export interface SubProduct extends SubResource { * @member {string} [status] The status of the request. Possible values * include: 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', * 'Created', 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' - * + * * @member {object} [error] - * + * * @member {number} [error.code] The error code for an operation failure - * + * * @member {string} [error.message] The detailed arror message - * + * */ export interface OperationResult { status?: string; error?: OperationResultError; } -/** - * @class - * Initializes a new instance of the OperationResultError class. - * @constructor - * @member {number} [code] The error code for an operation failure - * - * @member {string} [message] The detailed arror message - * - */ -export interface OperationResultError { - code?: number; - message?: string; -} - diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/index.js index 2bee098c81..d8463699ab 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -23,5 +23,5 @@ exports.Sku = require('./sku'); exports.Product = require('./product'); exports.SubResource = require('./subResource'); exports.SubProduct = require('./subProduct'); -exports.OperationResult = require('./operationResult'); exports.OperationResultError = require('./operationResultError'); +exports.OperationResult = require('./operationResult'); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/operationResult.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/operationResult.js index bf32febbc5..7aff570d36 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/operationResult.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/operationResult.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,13 +19,13 @@ var models = require('./index'); * @member {string} [status] The status of the request. Possible values * include: 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', * 'Created', 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' - * + * * @member {object} [error] - * + * * @member {number} [error.code] The error code for an operation failure - * + * * @member {string} [error.message] The detailed arror message - * + * */ function OperationResult() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/operationResultError.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/operationResultError.js index ecb0830e1a..579978826a 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/operationResultError.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/operationResultError.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the OperationResultError class. * @constructor * @member {number} [code] The error code for an operation failure - * + * * @member {string} [message] The detailed arror message - * + * */ function OperationResultError() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/product.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/product.js index 6de8ae7655..399d25b423 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/product.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/product.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,11 +19,11 @@ var util = require('util'); * Initializes a new instance of the Product class. * @constructor * @member {string} [provisioningState] - * + * * @member {string} [provisioningStateValues] Possible values include: * 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', * 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' - * + * */ function Product() { Product['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/resource.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/resource.js index 4e886c0664..35199afbce 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/resource.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/resource.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,15 +19,15 @@ var util = require('util'); * Initializes a new instance of the Resource class. * @constructor * @member {string} [id] Resource Id - * + * * @member {string} [type] Resource Type - * + * * @member {object} [tags] - * + * * @member {string} [location] Resource Location - * + * * @member {string} [name] Resource Name - * + * */ function Resource() { Resource['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/sku.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/sku.js index cf221504d2..cca11f0529 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/sku.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/sku.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the Sku class. * @constructor * @member {string} [name] - * + * * @member {string} [id] - * + * */ function Sku() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/subProduct.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/subProduct.js index 0837dfbe16..ea0f4845a3 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/subProduct.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/subProduct.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,11 +19,11 @@ var util = require('util'); * Initializes a new instance of the SubProduct class. * @constructor * @member {string} [provisioningState] - * + * * @member {string} [provisioningStateValues] Possible values include: * 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', * 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' - * + * */ function SubProduct() { SubProduct['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/subResource.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/subResource.js index 2535196a5c..3f8a189af8 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/subResource.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/models/subResource.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the SubResource class. * @constructor * @member {string} [id] Sub Resource Id - * + * */ function SubResource() { SubResource['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/index.d.ts index b4abae4f74..215abe892b 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -25,18 +25,18 @@ export interface LROs { * an entity that contains ProvisioningState=’Succeeded’. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -48,18 +48,18 @@ export interface LROs { * an entity that does not contain ProvisioningState=’Succeeded’. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -72,18 +72,18 @@ export interface LROs { * entity that doesn't contains ProvisioningState * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -96,18 +96,18 @@ export interface LROs { * value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -120,18 +120,18 @@ export interface LROs { * value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -144,18 +144,18 @@ export interface LROs { * value until the last poll returns a ‘200’ with ProvisioningState=’Failed’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -168,18 +168,18 @@ export interface LROs { * value until the last poll returns a ‘200’ with ProvisioningState=’Canceled’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -192,18 +192,18 @@ export interface LROs { * location header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -216,18 +216,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -240,18 +240,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -264,18 +264,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -288,18 +288,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -312,18 +312,18 @@ export interface LROs { * contain Azure-AsyncOperation header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -334,16 +334,16 @@ export interface LROs { * Long running put request with non resource. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.sku] sku to put - * + * * @param {string} [options.sku.name] - * + * * @param {string} [options.sku.id] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -354,16 +354,16 @@ export interface LROs { * Long running put request with non resource. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.sku] Sku to put - * + * * @param {string} [options.sku.name] - * + * * @param {string} [options.sku.id] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -374,12 +374,12 @@ export interface LROs { * Long running put request with sub resource. * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.provisioningState] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -390,12 +390,12 @@ export interface LROs { * Long running put request with sub resource. * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.provisioningState] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -409,10 +409,10 @@ export interface LROs { * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -426,10 +426,10 @@ export interface LROs { * ProvisioningState=’Failed’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -443,10 +443,10 @@ export interface LROs { * ProvisioningState=’Canceled’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -457,10 +457,10 @@ export interface LROs { * Long running delete succeeds and returns right away * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -473,10 +473,10 @@ export interface LROs { * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -489,10 +489,10 @@ export interface LROs { * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -505,10 +505,10 @@ export interface LROs { * location header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -521,10 +521,10 @@ export interface LROs { * Azure-AsyncOperation header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -537,10 +537,10 @@ export interface LROs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -553,10 +553,10 @@ export interface LROs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -569,10 +569,10 @@ export interface LROs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -585,10 +585,10 @@ export interface LROs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -601,10 +601,10 @@ export interface LROs { * success. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -617,18 +617,18 @@ export interface LROs { * response body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -640,18 +640,18 @@ export interface LROs { * with 'Location' header, 204 with noresponse body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -664,18 +664,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -688,18 +688,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -712,18 +712,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -736,18 +736,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -759,18 +759,18 @@ export interface LROs { * an entity that contains ProvisioningState=’Succeeded’. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -782,18 +782,18 @@ export interface LROs { * an entity that does not contain ProvisioningState=’Succeeded’. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -806,18 +806,18 @@ export interface LROs { * entity that doesn't contains ProvisioningState * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -830,18 +830,18 @@ export interface LROs { * value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -854,18 +854,18 @@ export interface LROs { * value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -878,18 +878,18 @@ export interface LROs { * value until the last poll returns a ‘200’ with ProvisioningState=’Failed’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -902,18 +902,18 @@ export interface LROs { * value until the last poll returns a ‘200’ with ProvisioningState=’Canceled’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -926,18 +926,18 @@ export interface LROs { * location header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -950,18 +950,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -974,18 +974,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -998,18 +998,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1022,18 +1022,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1046,18 +1046,18 @@ export interface LROs { * contain Azure-AsyncOperation header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1068,16 +1068,16 @@ export interface LROs { * Long running put request with non resource. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.sku] sku to put - * + * * @param {string} [options.sku.name] - * + * * @param {string} [options.sku.id] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1088,16 +1088,16 @@ export interface LROs { * Long running put request with non resource. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.sku] Sku to put - * + * * @param {string} [options.sku.name] - * + * * @param {string} [options.sku.id] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1108,12 +1108,12 @@ export interface LROs { * Long running put request with sub resource. * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.provisioningState] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1124,12 +1124,12 @@ export interface LROs { * Long running put request with sub resource. * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.provisioningState] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1143,10 +1143,10 @@ export interface LROs { * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1160,10 +1160,10 @@ export interface LROs { * ProvisioningState=’Failed’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1177,10 +1177,10 @@ export interface LROs { * ProvisioningState=’Canceled’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1191,10 +1191,10 @@ export interface LROs { * Long running delete succeeds and returns right away * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1207,10 +1207,10 @@ export interface LROs { * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1223,10 +1223,10 @@ export interface LROs { * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1239,10 +1239,10 @@ export interface LROs { * location header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1255,10 +1255,10 @@ export interface LROs { * Azure-AsyncOperation header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1271,10 +1271,10 @@ export interface LROs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1287,10 +1287,10 @@ export interface LROs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1303,10 +1303,10 @@ export interface LROs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1319,10 +1319,10 @@ export interface LROs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1335,10 +1335,10 @@ export interface LROs { * success. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1351,18 +1351,18 @@ export interface LROs { * response body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1374,18 +1374,18 @@ export interface LROs { * with 'Location' header, 204 with noresponse body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1398,18 +1398,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1422,18 +1422,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1446,18 +1446,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1470,18 +1470,18 @@ export interface LROs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1504,18 +1504,18 @@ export interface LRORetrys { * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1528,18 +1528,18 @@ export interface LRORetrys { * endpoint indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1548,15 +1548,15 @@ export interface LRORetrys { /** * Long running delete request, service returns a 500, then a 202 to the - * initial request, with an entity that contains ProvisioningState=’Accepted’. + * initial request, with an entity that contains ProvisioningState=’Accepted’. * Polls return this value until the last poll returns a ‘200’ with * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1569,10 +1569,10 @@ export interface LRORetrys { * with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1585,10 +1585,10 @@ export interface LRORetrys { * header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1601,18 +1601,18 @@ export interface LRORetrys { * a response body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1625,18 +1625,18 @@ export interface LRORetrys { * endpoint indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1650,18 +1650,18 @@ export interface LRORetrys { * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1674,18 +1674,18 @@ export interface LRORetrys { * endpoint indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1694,15 +1694,15 @@ export interface LRORetrys { /** * Long running delete request, service returns a 500, then a 202 to the - * initial request, with an entity that contains ProvisioningState=’Accepted’. + * initial request, with an entity that contains ProvisioningState=’Accepted’. * Polls return this value until the last poll returns a ‘200’ with * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1715,10 +1715,10 @@ export interface LRORetrys { * with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1731,10 +1731,10 @@ export interface LRORetrys { * header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1747,18 +1747,18 @@ export interface LRORetrys { * a response body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1771,18 +1771,18 @@ export interface LRORetrys { * endpoint indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1802,18 +1802,18 @@ export interface LROSADs { * Long running put request, service returns a 400 to the initial request * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1825,18 +1825,18 @@ export interface LROSADs { * = 'Creating' and 201 response code * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1848,18 +1848,18 @@ export interface LROSADs { * = 'Creating' and 201 response code * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1872,18 +1872,18 @@ export interface LROSADs { * Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1894,10 +1894,10 @@ export interface LROSADs { * Long running delete request, service returns a 400 with an error body * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1908,10 +1908,10 @@ export interface LROSADs { * Long running delete request, service returns a 202 with a location header * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1924,10 +1924,10 @@ export interface LROSADs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1938,18 +1938,18 @@ export interface LROSADs { * Long running post request, service returns a 400 with no error body * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1960,18 +1960,18 @@ export interface LROSADs { * Long running post request, service returns a 202 with a location header * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1984,18 +1984,18 @@ export interface LROSADs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2007,18 +2007,18 @@ export interface LROSADs { * no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2031,18 +2031,18 @@ export interface LROSADs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2055,18 +2055,18 @@ export interface LROSADs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2078,10 +2078,10 @@ export interface LROSADs { * indicating success. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2094,10 +2094,10 @@ export interface LROSADs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2109,18 +2109,18 @@ export interface LROSADs { * without a location header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2133,18 +2133,18 @@ export interface LROSADs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2156,18 +2156,18 @@ export interface LROSADs { * an entity that is not a valid json * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2180,18 +2180,18 @@ export interface LROSADs { * in the Azure-AsyncOperation header is invalid. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2204,18 +2204,18 @@ export interface LROSADs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2227,10 +2227,10 @@ export interface LROSADs { * receing a reponse with an invalid 'Location' and 'Retry-After' headers * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2242,10 +2242,10 @@ export interface LROSADs { * The endpoint indicated in the Azure-AsyncOperation header is invalid * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2258,10 +2258,10 @@ export interface LROSADs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2273,18 +2273,18 @@ export interface LROSADs { * with invalid 'Location' and 'Retry-After' headers. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2297,18 +2297,18 @@ export interface LROSADs { * indicated in the Azure-AsyncOperation header is invalid. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2321,18 +2321,18 @@ export interface LROSADs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2343,18 +2343,18 @@ export interface LROSADs { * Long running put request, service returns a 400 to the initial request * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2366,18 +2366,18 @@ export interface LROSADs { * = 'Creating' and 201 response code * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2389,18 +2389,18 @@ export interface LROSADs { * = 'Creating' and 201 response code * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2413,18 +2413,18 @@ export interface LROSADs { * Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2435,10 +2435,10 @@ export interface LROSADs { * Long running delete request, service returns a 400 with an error body * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2449,10 +2449,10 @@ export interface LROSADs { * Long running delete request, service returns a 202 with a location header * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2465,10 +2465,10 @@ export interface LROSADs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2479,18 +2479,18 @@ export interface LROSADs { * Long running post request, service returns a 400 with no error body * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2501,18 +2501,18 @@ export interface LROSADs { * Long running post request, service returns a 202 with a location header * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2525,18 +2525,18 @@ export interface LROSADs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2548,18 +2548,18 @@ export interface LROSADs { * no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2572,18 +2572,18 @@ export interface LROSADs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2596,18 +2596,18 @@ export interface LROSADs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2619,10 +2619,10 @@ export interface LROSADs { * indicating success. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2635,10 +2635,10 @@ export interface LROSADs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2650,18 +2650,18 @@ export interface LROSADs { * without a location header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2674,18 +2674,18 @@ export interface LROSADs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2697,18 +2697,18 @@ export interface LROSADs { * an entity that is not a valid json * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2721,18 +2721,18 @@ export interface LROSADs { * in the Azure-AsyncOperation header is invalid. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2745,18 +2745,18 @@ export interface LROSADs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2768,10 +2768,10 @@ export interface LROSADs { * receing a reponse with an invalid 'Location' and 'Retry-After' headers * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2783,10 +2783,10 @@ export interface LROSADs { * The endpoint indicated in the Azure-AsyncOperation header is invalid * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2799,10 +2799,10 @@ export interface LROSADs { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2814,18 +2814,18 @@ export interface LROSADs { * with invalid 'Location' and 'Retry-After' headers. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2838,18 +2838,18 @@ export interface LROSADs { * indicated in the Azure-AsyncOperation header is invalid. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2862,18 +2862,18 @@ export interface LROSADs { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2897,18 +2897,18 @@ export interface LROsCustomHeader { * Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2923,18 +2923,18 @@ export interface LROsCustomHeader { * returns a ‘200’ with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2948,18 +2948,18 @@ export interface LROsCustomHeader { * Polls return a 200 with a response body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -2974,18 +2974,18 @@ export interface LROsCustomHeader { * Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -3000,18 +3000,18 @@ export interface LROsCustomHeader { * Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -3026,18 +3026,18 @@ export interface LROsCustomHeader { * returns a ‘200’ with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -3051,18 +3051,18 @@ export interface LROsCustomHeader { * Polls return a 200 with a response body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -3077,18 +3077,18 @@ export interface LROsCustomHeader { * Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/index.js index e9a90532cb..31352cff9f 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lRORetrys.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lRORetrys.js index ca41b3ed72..9857f8b8a9 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lRORetrys.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lRORetrys.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -37,18 +37,18 @@ function LRORetrys(client) { * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -119,18 +119,18 @@ LRORetrys.prototype.put201CreatingSucceeded200 = function (options, callback) { * endpoint indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -197,15 +197,15 @@ LRORetrys.prototype.putAsyncRelativeRetrySucceeded = function (options, callback /** * * Long running delete request, service returns a 500, then a 202 to the - * initial request, with an entity that contains ProvisioningState=’Accepted’. + * initial request, with an entity that contains ProvisioningState=’Accepted’. * Polls return this value until the last poll returns a ‘200’ with * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -276,10 +276,10 @@ LRORetrys.prototype.deleteProvisioning202Accepted200Succeeded = function (option * with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -335,10 +335,10 @@ LRORetrys.prototype.delete202Retry200 = function (options, callback) { * header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -394,18 +394,18 @@ LRORetrys.prototype.deleteAsyncRelativeRetrySucceeded = function (options, callb * a response body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -461,18 +461,18 @@ LRORetrys.prototype.post202Retry200 = function (options, callback) { * endpoint indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -528,18 +528,18 @@ LRORetrys.prototype.postAsyncRelativeRetrySucceeded = function (options, callbac * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -610,7 +610,7 @@ LRORetrys.prototype.beginPut201CreatingSucceeded200 = function (options, callbac requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -640,7 +640,7 @@ LRORetrys.prototype.beginPut201CreatingSucceeded200 = function (options, callbac error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -694,18 +694,18 @@ LRORetrys.prototype.beginPut201CreatingSucceeded200 = function (options, callbac * endpoint indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -776,7 +776,7 @@ LRORetrys.prototype.beginPutAsyncRelativeRetrySucceeded = function (options, cal requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -806,7 +806,7 @@ LRORetrys.prototype.beginPutAsyncRelativeRetrySucceeded = function (options, cal error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -839,15 +839,15 @@ LRORetrys.prototype.beginPutAsyncRelativeRetrySucceeded = function (options, cal /** * Long running delete request, service returns a 500, then a 202 to the - * initial request, with an entity that contains ProvisioningState=’Accepted’. + * initial request, with an entity that contains ProvisioningState=’Accepted’. * Polls return this value until the last poll returns a ‘200’ with * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -933,7 +933,7 @@ LRORetrys.prototype.beginDeleteProvisioning202Accepted200Succeeded = function (o error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -987,10 +987,10 @@ LRORetrys.prototype.beginDeleteProvisioning202Accepted200Succeeded = function (o * with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1075,7 +1075,7 @@ LRORetrys.prototype.beginDelete202Retry200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1095,10 +1095,10 @@ LRORetrys.prototype.beginDelete202Retry200 = function (options, callback) { * header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1183,7 +1183,7 @@ LRORetrys.prototype.beginDeleteAsyncRelativeRetrySucceeded = function (options, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1203,18 +1203,18 @@ LRORetrys.prototype.beginDeleteAsyncRelativeRetrySucceeded = function (options, * a response body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1284,7 +1284,7 @@ LRORetrys.prototype.beginPost202Retry200 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -1314,7 +1314,7 @@ LRORetrys.prototype.beginPost202Retry200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1334,18 +1334,18 @@ LRORetrys.prototype.beginPost202Retry200 = function (options, callback) { * endpoint indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1415,7 +1415,7 @@ LRORetrys.prototype.beginPostAsyncRelativeRetrySucceeded = function (options, ca requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -1445,7 +1445,7 @@ LRORetrys.prototype.beginPostAsyncRelativeRetrySucceeded = function (options, ca error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lROSADs.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lROSADs.js index a5a7fd908b..3703970c5b 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lROSADs.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lROSADs.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -34,18 +34,18 @@ function LROSADs(client) { * Long running put request, service returns a 400 to the initial request * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -115,18 +115,18 @@ LROSADs.prototype.putNonRetry400 = function (options, callback) { * = 'Creating' and 201 response code * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -196,18 +196,18 @@ LROSADs.prototype.putNonRetry201Creating400 = function (options, callback) { * = 'Creating' and 201 response code * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -278,18 +278,18 @@ LROSADs.prototype.putNonRetry201Creating400InvalidJson = function (options, call * Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -358,10 +358,10 @@ LROSADs.prototype.putAsyncRelativeRetry400 = function (options, callback) { * Long running delete request, service returns a 400 with an error body * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -415,10 +415,10 @@ LROSADs.prototype.deleteNonRetry400 = function (options, callback) { * Long running delete request, service returns a 202 with a location header * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -474,10 +474,10 @@ LROSADs.prototype.delete202NonRetry400 = function (options, callback) { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -531,18 +531,18 @@ LROSADs.prototype.deleteAsyncRelativeRetry400 = function (options, callback) { * Long running post request, service returns a 400 with no error body * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -596,18 +596,18 @@ LROSADs.prototype.postNonRetry400 = function (options, callback) { * Long running post request, service returns a 202 with a location header * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -663,18 +663,18 @@ LROSADs.prototype.post202NonRetry400 = function (options, callback) { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -729,18 +729,18 @@ LROSADs.prototype.postAsyncRelativeRetry400 = function (options, callback) { * no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -811,18 +811,18 @@ LROSADs.prototype.putError201NoProvisioningStatePayload = function (options, cal * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -893,18 +893,18 @@ LROSADs.prototype.putAsyncRelativeRetryNoStatus = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -974,10 +974,10 @@ LROSADs.prototype.putAsyncRelativeRetryNoStatusPayload = function (options, call * indicating success. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1033,10 +1033,10 @@ LROSADs.prototype.delete204Succeeded = function (options, callback) { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1091,18 +1091,18 @@ LROSADs.prototype.deleteAsyncRelativeRetryNoStatus = function (options, callback * without a location header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1158,18 +1158,18 @@ LROSADs.prototype.post202NoLocation = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1224,18 +1224,18 @@ LROSADs.prototype.postAsyncRelativeRetryNoPayload = function (options, callback) * an entity that is not a valid json * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1306,18 +1306,18 @@ LROSADs.prototype.put200InvalidJson = function (options, callback) { * in the Azure-AsyncOperation header is invalid. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1388,18 +1388,18 @@ LROSADs.prototype.putAsyncRelativeRetryInvalidHeader = function (options, callba * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1469,10 +1469,10 @@ LROSADs.prototype.putAsyncRelativeRetryInvalidJsonPolling = function (options, c * receing a reponse with an invalid 'Location' and 'Retry-After' headers * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1527,10 +1527,10 @@ LROSADs.prototype.delete202RetryInvalidHeader = function (options, callback) { * The endpoint indicated in the Azure-AsyncOperation header is invalid * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1586,10 +1586,10 @@ LROSADs.prototype.deleteAsyncRelativeRetryInvalidHeader = function (options, cal * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1644,18 +1644,18 @@ LROSADs.prototype.deleteAsyncRelativeRetryInvalidJsonPolling = function (options * with invalid 'Location' and 'Retry-After' headers. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1711,18 +1711,18 @@ LROSADs.prototype.post202RetryInvalidHeader = function (options, callback) { * indicated in the Azure-AsyncOperation header is invalid. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1778,18 +1778,18 @@ LROSADs.prototype.postAsyncRelativeRetryInvalidHeader = function (options, callb * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1842,18 +1842,18 @@ LROSADs.prototype.postAsyncRelativeRetryInvalidJsonPolling = function (options, * Long running put request, service returns a 400 to the initial request * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1924,7 +1924,7 @@ LROSADs.prototype.beginPutNonRetry400 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -1954,7 +1954,7 @@ LROSADs.prototype.beginPutNonRetry400 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2007,18 +2007,18 @@ LROSADs.prototype.beginPutNonRetry400 = function (options, callback) { * = 'Creating' and 201 response code * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2089,7 +2089,7 @@ LROSADs.prototype.beginPutNonRetry201Creating400 = function (options, callback) requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -2119,7 +2119,7 @@ LROSADs.prototype.beginPutNonRetry201Creating400 = function (options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2172,18 +2172,18 @@ LROSADs.prototype.beginPutNonRetry201Creating400 = function (options, callback) * = 'Creating' and 201 response code * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2254,7 +2254,7 @@ LROSADs.prototype.beginPutNonRetry201Creating400InvalidJson = function (options, requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -2284,7 +2284,7 @@ LROSADs.prototype.beginPutNonRetry201Creating400InvalidJson = function (options, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2338,18 +2338,18 @@ LROSADs.prototype.beginPutNonRetry201Creating400InvalidJson = function (options, * Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2420,7 +2420,7 @@ LROSADs.prototype.beginPutAsyncRelativeRetry400 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -2450,7 +2450,7 @@ LROSADs.prototype.beginPutAsyncRelativeRetry400 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2485,10 +2485,10 @@ LROSADs.prototype.beginPutAsyncRelativeRetry400 = function (options, callback) { * Long running delete request, service returns a 400 with an error body * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2573,7 +2573,7 @@ LROSADs.prototype.beginDeleteNonRetry400 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2591,10 +2591,10 @@ LROSADs.prototype.beginDeleteNonRetry400 = function (options, callback) { * Long running delete request, service returns a 202 with a location header * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2679,7 +2679,7 @@ LROSADs.prototype.beginDelete202NonRetry400 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2699,10 +2699,10 @@ LROSADs.prototype.beginDelete202NonRetry400 = function (options, callback) { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2787,7 +2787,7 @@ LROSADs.prototype.beginDeleteAsyncRelativeRetry400 = function (options, callback error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2805,18 +2805,18 @@ LROSADs.prototype.beginDeleteAsyncRelativeRetry400 = function (options, callback * Long running post request, service returns a 400 with no error body * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2886,7 +2886,7 @@ LROSADs.prototype.beginPostNonRetry400 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -2916,7 +2916,7 @@ LROSADs.prototype.beginPostNonRetry400 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2934,18 +2934,18 @@ LROSADs.prototype.beginPostNonRetry400 = function (options, callback) { * Long running post request, service returns a 202 with a location header * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3015,7 +3015,7 @@ LROSADs.prototype.beginPost202NonRetry400 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -3045,7 +3045,7 @@ LROSADs.prototype.beginPost202NonRetry400 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3065,18 +3065,18 @@ LROSADs.prototype.beginPost202NonRetry400 = function (options, callback) { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3146,7 +3146,7 @@ LROSADs.prototype.beginPostAsyncRelativeRetry400 = function (options, callback) requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -3176,7 +3176,7 @@ LROSADs.prototype.beginPostAsyncRelativeRetry400 = function (options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3195,18 +3195,18 @@ LROSADs.prototype.beginPostAsyncRelativeRetry400 = function (options, callback) * no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3277,7 +3277,7 @@ LROSADs.prototype.beginPutError201NoProvisioningStatePayload = function (options requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -3307,7 +3307,7 @@ LROSADs.prototype.beginPutError201NoProvisioningStatePayload = function (options error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3361,18 +3361,18 @@ LROSADs.prototype.beginPutError201NoProvisioningStatePayload = function (options * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3443,7 +3443,7 @@ LROSADs.prototype.beginPutAsyncRelativeRetryNoStatus = function (options, callba requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -3473,7 +3473,7 @@ LROSADs.prototype.beginPutAsyncRelativeRetryNoStatus = function (options, callba error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3510,18 +3510,18 @@ LROSADs.prototype.beginPutAsyncRelativeRetryNoStatus = function (options, callba * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3592,7 +3592,7 @@ LROSADs.prototype.beginPutAsyncRelativeRetryNoStatusPayload = function (options, requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -3622,7 +3622,7 @@ LROSADs.prototype.beginPutAsyncRelativeRetryNoStatusPayload = function (options, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3658,10 +3658,10 @@ LROSADs.prototype.beginPutAsyncRelativeRetryNoStatusPayload = function (options, * indicating success. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3746,7 +3746,7 @@ LROSADs.prototype.beginDelete204Succeeded = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3766,10 +3766,10 @@ LROSADs.prototype.beginDelete204Succeeded = function (options, callback) { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3854,7 +3854,7 @@ LROSADs.prototype.beginDeleteAsyncRelativeRetryNoStatus = function (options, cal error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3873,18 +3873,18 @@ LROSADs.prototype.beginDeleteAsyncRelativeRetryNoStatus = function (options, cal * without a location header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3954,7 +3954,7 @@ LROSADs.prototype.beginPost202NoLocation = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -3984,7 +3984,7 @@ LROSADs.prototype.beginPost202NoLocation = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4004,18 +4004,18 @@ LROSADs.prototype.beginPost202NoLocation = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4085,7 +4085,7 @@ LROSADs.prototype.beginPostAsyncRelativeRetryNoPayload = function (options, call requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -4115,7 +4115,7 @@ LROSADs.prototype.beginPostAsyncRelativeRetryNoPayload = function (options, call error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4134,18 +4134,18 @@ LROSADs.prototype.beginPostAsyncRelativeRetryNoPayload = function (options, call * an entity that is not a valid json * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4216,7 +4216,7 @@ LROSADs.prototype.beginPut200InvalidJson = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -4246,7 +4246,7 @@ LROSADs.prototype.beginPut200InvalidJson = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4283,18 +4283,18 @@ LROSADs.prototype.beginPut200InvalidJson = function (options, callback) { * in the Azure-AsyncOperation header is invalid. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4365,7 +4365,7 @@ LROSADs.prototype.beginPutAsyncRelativeRetryInvalidHeader = function (options, c requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -4395,7 +4395,7 @@ LROSADs.prototype.beginPutAsyncRelativeRetryInvalidHeader = function (options, c error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4432,18 +4432,18 @@ LROSADs.prototype.beginPutAsyncRelativeRetryInvalidHeader = function (options, c * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4514,7 +4514,7 @@ LROSADs.prototype.beginPutAsyncRelativeRetryInvalidJsonPolling = function (optio requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -4544,7 +4544,7 @@ LROSADs.prototype.beginPutAsyncRelativeRetryInvalidJsonPolling = function (optio error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4580,10 +4580,10 @@ LROSADs.prototype.beginPutAsyncRelativeRetryInvalidJsonPolling = function (optio * receing a reponse with an invalid 'Location' and 'Retry-After' headers * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4668,7 +4668,7 @@ LROSADs.prototype.beginDelete202RetryInvalidHeader = function (options, callback error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4687,10 +4687,10 @@ LROSADs.prototype.beginDelete202RetryInvalidHeader = function (options, callback * The endpoint indicated in the Azure-AsyncOperation header is invalid * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4775,7 +4775,7 @@ LROSADs.prototype.beginDeleteAsyncRelativeRetryInvalidHeader = function (options error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4795,10 +4795,10 @@ LROSADs.prototype.beginDeleteAsyncRelativeRetryInvalidHeader = function (options * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4883,7 +4883,7 @@ LROSADs.prototype.beginDeleteAsyncRelativeRetryInvalidJsonPolling = function (op error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4902,18 +4902,18 @@ LROSADs.prototype.beginDeleteAsyncRelativeRetryInvalidJsonPolling = function (op * with invalid 'Location' and 'Retry-After' headers. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4983,7 +4983,7 @@ LROSADs.prototype.beginPost202RetryInvalidHeader = function (options, callback) requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -5013,7 +5013,7 @@ LROSADs.prototype.beginPost202RetryInvalidHeader = function (options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5033,18 +5033,18 @@ LROSADs.prototype.beginPost202RetryInvalidHeader = function (options, callback) * indicated in the Azure-AsyncOperation header is invalid. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5114,7 +5114,7 @@ LROSADs.prototype.beginPostAsyncRelativeRetryInvalidHeader = function (options, requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -5144,7 +5144,7 @@ LROSADs.prototype.beginPostAsyncRelativeRetryInvalidHeader = function (options, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5164,18 +5164,18 @@ LROSADs.prototype.beginPostAsyncRelativeRetryInvalidHeader = function (options, * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5245,7 +5245,7 @@ LROSADs.prototype.beginPostAsyncRelativeRetryInvalidJsonPolling = function (opti requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -5275,7 +5275,7 @@ LROSADs.prototype.beginPostAsyncRelativeRetryInvalidJsonPolling = function (opti error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lROs.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lROs.js index 9e89571147..02db762fe2 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lROs.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lROs.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -35,18 +35,18 @@ function LROs(client) { * an entity that contains ProvisioningState=’Succeeded’. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -116,18 +116,18 @@ LROs.prototype.put200Succeeded = function (options, callback) { * an entity that does not contain ProvisioningState=’Succeeded’. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -198,18 +198,18 @@ LROs.prototype.put200SucceededNoState = function (options, callback) { * entity that doesn't contains ProvisioningState * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -280,18 +280,18 @@ LROs.prototype.put202Retry200 = function (options, callback) { * value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -362,18 +362,18 @@ LROs.prototype.put201CreatingSucceeded200 = function (options, callback) { * value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -444,18 +444,18 @@ LROs.prototype.put200UpdatingSucceeded204 = function (options, callback) { * value until the last poll returns a ‘200’ with ProvisioningState=’Failed’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -526,18 +526,18 @@ LROs.prototype.put201CreatingFailed200 = function (options, callback) { * value until the last poll returns a ‘200’ with ProvisioningState=’Canceled’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -608,18 +608,18 @@ LROs.prototype.put200Acceptedcanceled200 = function (options, callback) { * location header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -690,18 +690,18 @@ LROs.prototype.putNoHeaderInRetry = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -772,18 +772,18 @@ LROs.prototype.putAsyncRetrySucceeded = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -854,18 +854,18 @@ LROs.prototype.putAsyncNoRetrySucceeded = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -936,18 +936,18 @@ LROs.prototype.putAsyncRetryFailed = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1018,18 +1018,18 @@ LROs.prototype.putAsyncNoRetrycanceled = function (options, callback) { * contain Azure-AsyncOperation header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1098,16 +1098,16 @@ LROs.prototype.putAsyncNoHeaderInRetry = function (options, callback) { * Long running put request with non resource. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.sku] sku to put - * + * * @param {string} [options.sku.name] - * + * * @param {string} [options.sku.id] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1176,16 +1176,16 @@ LROs.prototype.putNonResource = function (options, callback) { * Long running put request with non resource. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.sku] Sku to put - * + * * @param {string} [options.sku.name] - * + * * @param {string} [options.sku.id] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1254,12 +1254,12 @@ LROs.prototype.putAsyncNonResource = function (options, callback) { * Long running put request with sub resource. * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.provisioningState] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1328,12 +1328,12 @@ LROs.prototype.putSubResource = function (options, callback) { * Long running put request with sub resource. * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.provisioningState] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1405,10 +1405,10 @@ LROs.prototype.putAsyncSubResource = function (options, callback) { * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1480,10 +1480,10 @@ LROs.prototype.deleteProvisioning202Accepted200Succeeded = function (options, ca * ProvisioningState=’Failed’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1555,10 +1555,10 @@ LROs.prototype.deleteProvisioning202DeletingFailed200 = function (options, callb * ProvisioningState=’Canceled’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1627,10 +1627,10 @@ LROs.prototype.deleteProvisioning202Deletingcanceled200 = function (options, cal * Long running delete succeeds and returns right away * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1686,10 +1686,10 @@ LROs.prototype.delete204Succeeded = function (options, callback) { * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1760,10 +1760,10 @@ LROs.prototype.delete202Retry200 = function (options, callback) { * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1834,10 +1834,10 @@ LROs.prototype.delete202NoRetry204 = function (options, callback) { * location header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1893,10 +1893,10 @@ LROs.prototype.deleteNoHeaderInRetry = function (options, callback) { * Azure-AsyncOperation header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1952,10 +1952,10 @@ LROs.prototype.deleteAsyncNoHeaderInRetry = function (options, callback) { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2011,10 +2011,10 @@ LROs.prototype.deleteAsyncRetrySucceeded = function (options, callback) { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2070,10 +2070,10 @@ LROs.prototype.deleteAsyncNoRetrySucceeded = function (options, callback) { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2129,10 +2129,10 @@ LROs.prototype.deleteAsyncRetryFailed = function (options, callback) { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2188,10 +2188,10 @@ LROs.prototype.deleteAsyncRetrycanceled = function (options, callback) { * success. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2262,18 +2262,18 @@ LROs.prototype.post200WithPayload = function (options, callback) { * response body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2328,18 +2328,18 @@ LROs.prototype.post202Retry200 = function (options, callback) { * with 'Location' header, 204 with noresponse body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2410,18 +2410,18 @@ LROs.prototype.post202NoRetry204 = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2492,18 +2492,18 @@ LROs.prototype.postAsyncRetrySucceeded = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2574,18 +2574,18 @@ LROs.prototype.postAsyncNoRetrySucceeded = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2641,18 +2641,18 @@ LROs.prototype.postAsyncRetryFailed = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2706,18 +2706,18 @@ LROs.prototype.postAsyncRetrycanceled = function (options, callback) { * an entity that contains ProvisioningState=’Succeeded’. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2788,7 +2788,7 @@ LROs.prototype.beginPut200Succeeded = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -2818,7 +2818,7 @@ LROs.prototype.beginPut200Succeeded = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2854,18 +2854,18 @@ LROs.prototype.beginPut200Succeeded = function (options, callback) { * an entity that does not contain ProvisioningState=’Succeeded’. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2936,7 +2936,7 @@ LROs.prototype.beginPut200SucceededNoState = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -2966,7 +2966,7 @@ LROs.prototype.beginPut200SucceededNoState = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3003,18 +3003,18 @@ LROs.prototype.beginPut200SucceededNoState = function (options, callback) { * entity that doesn't contains ProvisioningState * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3085,7 +3085,7 @@ LROs.prototype.beginPut202Retry200 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -3115,7 +3115,7 @@ LROs.prototype.beginPut202Retry200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3152,18 +3152,18 @@ LROs.prototype.beginPut202Retry200 = function (options, callback) { * value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3234,7 +3234,7 @@ LROs.prototype.beginPut201CreatingSucceeded200 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -3264,7 +3264,7 @@ LROs.prototype.beginPut201CreatingSucceeded200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3318,18 +3318,18 @@ LROs.prototype.beginPut201CreatingSucceeded200 = function (options, callback) { * value until the last poll returns a ‘200’ with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3400,7 +3400,7 @@ LROs.prototype.beginPut200UpdatingSucceeded204 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -3430,7 +3430,7 @@ LROs.prototype.beginPut200UpdatingSucceeded204 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3467,18 +3467,18 @@ LROs.prototype.beginPut200UpdatingSucceeded204 = function (options, callback) { * value until the last poll returns a ‘200’ with ProvisioningState=’Failed’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3549,7 +3549,7 @@ LROs.prototype.beginPut201CreatingFailed200 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -3579,7 +3579,7 @@ LROs.prototype.beginPut201CreatingFailed200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3633,18 +3633,18 @@ LROs.prototype.beginPut201CreatingFailed200 = function (options, callback) { * value until the last poll returns a ‘200’ with ProvisioningState=’Canceled’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3715,7 +3715,7 @@ LROs.prototype.beginPut200Acceptedcanceled200 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -3745,7 +3745,7 @@ LROs.prototype.beginPut200Acceptedcanceled200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3782,18 +3782,18 @@ LROs.prototype.beginPut200Acceptedcanceled200 = function (options, callback) { * location header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3864,7 +3864,7 @@ LROs.prototype.beginPutNoHeaderInRetry = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -3894,7 +3894,7 @@ LROs.prototype.beginPutNoHeaderInRetry = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3931,18 +3931,18 @@ LROs.prototype.beginPutNoHeaderInRetry = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4013,7 +4013,7 @@ LROs.prototype.beginPutAsyncRetrySucceeded = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -4043,7 +4043,7 @@ LROs.prototype.beginPutAsyncRetrySucceeded = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4080,18 +4080,18 @@ LROs.prototype.beginPutAsyncRetrySucceeded = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4162,7 +4162,7 @@ LROs.prototype.beginPutAsyncNoRetrySucceeded = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -4192,7 +4192,7 @@ LROs.prototype.beginPutAsyncNoRetrySucceeded = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4229,18 +4229,18 @@ LROs.prototype.beginPutAsyncNoRetrySucceeded = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4311,7 +4311,7 @@ LROs.prototype.beginPutAsyncRetryFailed = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -4341,7 +4341,7 @@ LROs.prototype.beginPutAsyncRetryFailed = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4378,18 +4378,18 @@ LROs.prototype.beginPutAsyncRetryFailed = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4460,7 +4460,7 @@ LROs.prototype.beginPutAsyncNoRetrycanceled = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -4490,7 +4490,7 @@ LROs.prototype.beginPutAsyncNoRetrycanceled = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4527,18 +4527,18 @@ LROs.prototype.beginPutAsyncNoRetrycanceled = function (options, callback) { * contain Azure-AsyncOperation header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4609,7 +4609,7 @@ LROs.prototype.beginPutAsyncNoHeaderInRetry = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -4639,7 +4639,7 @@ LROs.prototype.beginPutAsyncNoHeaderInRetry = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4674,16 +4674,16 @@ LROs.prototype.beginPutAsyncNoHeaderInRetry = function (options, callback) { * Long running put request with non resource. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.sku] sku to put - * + * * @param {string} [options.sku.name] - * + * * @param {string} [options.sku.id] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4754,7 +4754,7 @@ LROs.prototype.beginPutNonResource = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(sku, {depth: null}))); return callback(serializationError); } @@ -4784,7 +4784,7 @@ LROs.prototype.beginPutNonResource = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4819,16 +4819,16 @@ LROs.prototype.beginPutNonResource = function (options, callback) { * Long running put request with non resource. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.sku] Sku to put - * + * * @param {string} [options.sku.name] - * + * * @param {string} [options.sku.id] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4899,7 +4899,7 @@ LROs.prototype.beginPutAsyncNonResource = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(sku, {depth: null}))); return callback(serializationError); } @@ -4929,7 +4929,7 @@ LROs.prototype.beginPutAsyncNonResource = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4964,12 +4964,12 @@ LROs.prototype.beginPutAsyncNonResource = function (options, callback) { * Long running put request with sub resource. * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.provisioningState] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5053,7 +5053,7 @@ LROs.prototype.beginPutSubResource = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -5083,7 +5083,7 @@ LROs.prototype.beginPutSubResource = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5118,12 +5118,12 @@ LROs.prototype.beginPutSubResource = function (options, callback) { * Long running put request with sub resource. * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.provisioningState] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5207,7 +5207,7 @@ LROs.prototype.beginPutAsyncSubResource = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -5237,7 +5237,7 @@ LROs.prototype.beginPutAsyncSubResource = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5275,10 +5275,10 @@ LROs.prototype.beginPutAsyncSubResource = function (options, callback) { * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5364,7 +5364,7 @@ LROs.prototype.beginDeleteProvisioning202Accepted200Succeeded = function (option error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5419,10 +5419,10 @@ LROs.prototype.beginDeleteProvisioning202Accepted200Succeeded = function (option * ProvisioningState=’Failed’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5508,7 +5508,7 @@ LROs.prototype.beginDeleteProvisioning202DeletingFailed200 = function (options, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5563,10 +5563,10 @@ LROs.prototype.beginDeleteProvisioning202DeletingFailed200 = function (options, * ProvisioningState=’Canceled’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5652,7 +5652,7 @@ LROs.prototype.beginDeleteProvisioning202Deletingcanceled200 = function (options error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5704,10 +5704,10 @@ LROs.prototype.beginDeleteProvisioning202Deletingcanceled200 = function (options * Long running delete succeeds and returns right away * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5792,7 +5792,7 @@ LROs.prototype.beginDelete204Succeeded = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5812,10 +5812,10 @@ LROs.prototype.beginDelete204Succeeded = function (options, callback) { * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5901,7 +5901,7 @@ LROs.prototype.beginDelete202Retry200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5938,10 +5938,10 @@ LROs.prototype.beginDelete202Retry200 = function (options, callback) { * ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6027,7 +6027,7 @@ LROs.prototype.beginDelete202NoRetry204 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6064,10 +6064,10 @@ LROs.prototype.beginDelete202NoRetry204 = function (options, callback) { * location header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6152,7 +6152,7 @@ LROs.prototype.beginDeleteNoHeaderInRetry = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6172,10 +6172,10 @@ LROs.prototype.beginDeleteNoHeaderInRetry = function (options, callback) { * Azure-AsyncOperation header. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6260,7 +6260,7 @@ LROs.prototype.beginDeleteAsyncNoHeaderInRetry = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6280,10 +6280,10 @@ LROs.prototype.beginDeleteAsyncNoHeaderInRetry = function (options, callback) { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6368,7 +6368,7 @@ LROs.prototype.beginDeleteAsyncRetrySucceeded = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6388,10 +6388,10 @@ LROs.prototype.beginDeleteAsyncRetrySucceeded = function (options, callback) { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6476,7 +6476,7 @@ LROs.prototype.beginDeleteAsyncNoRetrySucceeded = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6496,10 +6496,10 @@ LROs.prototype.beginDeleteAsyncNoRetrySucceeded = function (options, callback) { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6584,7 +6584,7 @@ LROs.prototype.beginDeleteAsyncRetryFailed = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6604,10 +6604,10 @@ LROs.prototype.beginDeleteAsyncRetryFailed = function (options, callback) { * status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6692,7 +6692,7 @@ LROs.prototype.beginDeleteAsyncRetrycanceled = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6712,10 +6712,10 @@ LROs.prototype.beginDeleteAsyncRetrycanceled = function (options, callback) { * success. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6801,7 +6801,7 @@ LROs.prototype.beginPost200WithPayload = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6855,18 +6855,18 @@ LROs.prototype.beginPost200WithPayload = function (options, callback) { * response body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6936,7 +6936,7 @@ LROs.prototype.beginPost202Retry200 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -6966,7 +6966,7 @@ LROs.prototype.beginPost202Retry200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6985,18 +6985,18 @@ LROs.prototype.beginPost202Retry200 = function (options, callback) { * with 'Location' header, 204 with noresponse body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7067,7 +7067,7 @@ LROs.prototype.beginPost202NoRetry204 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -7097,7 +7097,7 @@ LROs.prototype.beginPost202NoRetry204 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7134,18 +7134,18 @@ LROs.prototype.beginPost202NoRetry204 = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7216,7 +7216,7 @@ LROs.prototype.beginPostAsyncRetrySucceeded = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -7246,7 +7246,7 @@ LROs.prototype.beginPostAsyncRetrySucceeded = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7283,18 +7283,18 @@ LROs.prototype.beginPostAsyncRetrySucceeded = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7365,7 +7365,7 @@ LROs.prototype.beginPostAsyncNoRetrySucceeded = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -7395,7 +7395,7 @@ LROs.prototype.beginPostAsyncNoRetrySucceeded = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7432,18 +7432,18 @@ LROs.prototype.beginPostAsyncNoRetrySucceeded = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7513,7 +7513,7 @@ LROs.prototype.beginPostAsyncRetryFailed = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -7543,7 +7543,7 @@ LROs.prototype.beginPostAsyncRetryFailed = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7563,18 +7563,18 @@ LROs.prototype.beginPostAsyncRetryFailed = function (options, callback) { * indicated in the Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7644,7 +7644,7 @@ LROs.prototype.beginPostAsyncRetrycanceled = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -7674,7 +7674,7 @@ LROs.prototype.beginPostAsyncRetrycanceled = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lROsCustomHeader.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lROsCustomHeader.js index 9c4593bc62..f822cc463d 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lROsCustomHeader.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Lro/operations/lROsCustomHeader.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -38,18 +38,18 @@ function LROsCustomHeader(client) { * Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -122,18 +122,18 @@ LROsCustomHeader.prototype.putAsyncRetrySucceeded = function (options, callback) * returns a ‘200’ with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -205,18 +205,18 @@ LROsCustomHeader.prototype.put201CreatingSucceeded200 = function (options, callb * Polls return a 200 with a response body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -274,18 +274,18 @@ LROsCustomHeader.prototype.post202Retry200 = function (options, callback) { * Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -342,18 +342,18 @@ LROsCustomHeader.prototype.postAsyncRetrySucceeded = function (options, callback * Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -424,7 +424,7 @@ LROsCustomHeader.prototype.beginPutAsyncRetrySucceeded = function (options, call requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -454,7 +454,7 @@ LROsCustomHeader.prototype.beginPutAsyncRetrySucceeded = function (options, call error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -493,18 +493,18 @@ LROsCustomHeader.prototype.beginPutAsyncRetrySucceeded = function (options, call * returns a ‘200’ with ProvisioningState=’Succeeded’ * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -575,7 +575,7 @@ LROsCustomHeader.prototype.beginPut201CreatingSucceeded200 = function (options, requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -605,7 +605,7 @@ LROsCustomHeader.prototype.beginPut201CreatingSucceeded200 = function (options, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -660,18 +660,18 @@ LROsCustomHeader.prototype.beginPut201CreatingSucceeded200 = function (options, * Polls return a 200 with a response body after success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -741,7 +741,7 @@ LROsCustomHeader.prototype.beginPost202Retry200 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -771,7 +771,7 @@ LROsCustomHeader.prototype.beginPost202Retry200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -793,18 +793,18 @@ LROsCustomHeader.prototype.beginPost202Retry200 = function (options, callback) { * Azure-AsyncOperation header for operation status * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.product] Product to put - * + * * @param {string} [options.product.provisioningState] - * + * * @param {object} [options.product.tags] - * + * * @param {string} [options.product.location] Resource Location - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -874,7 +874,7 @@ LROsCustomHeader.prototype.beginPostAsyncRetrySucceeded = function (options, cal requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(product, {depth: null}))); return callback(serializationError); } @@ -904,7 +904,7 @@ LROsCustomHeader.prototype.beginPostAsyncRetrySucceeded = function (options, cal error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/autoRestPagingTestService.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/autoRestPagingTestService.d.ts index 1ddcc42a11..b03e131732 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/autoRestPagingTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/autoRestPagingTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/autoRestPagingTestService.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/autoRestPagingTestService.js index b10d866a36..fd7fac74d4 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/autoRestPagingTestService.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/autoRestPagingTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -64,13 +64,13 @@ function AutoRestPagingTestService(credentials, baseUri, options) { } this.credentials = credentials; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } - if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { + if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } this.paging = new operations.Paging(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/customParameterGroup.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/customParameterGroup.js index 820d36e59a..55f53a992d 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/customParameterGroup.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/customParameterGroup.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,9 +19,9 @@ * Paging_nextFragmentWithGrouping. * * @member {string} apiVersion Sets the api version to use. - * + * * @member {string} tenant Sets the tenant to use. - * + * */ function CustomParameterGroup() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/index.d.ts index ddd63cc7d3..16013a3466 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,16 +14,16 @@ exports.CloudError = msRestAzure.CloudError; /** * @class - * Initializes a new instance of the ProductResult class. + * Initializes a new instance of the ProductProperties class. * @constructor - * @member {array} [values] - * - * @member {string} [nextLink] - * + * @member {number} [id] + * + * @member {string} [name] + * */ -export interface ProductResult { - values?: Product[]; - nextLink?: string; +export interface ProductProperties { + id?: number; + name?: string; } /** @@ -31,11 +31,11 @@ export interface ProductResult { * Initializes a new instance of the Product class. * @constructor * @member {object} [properties] - * + * * @member {number} [properties.id] - * + * * @member {string} [properties.name] - * + * */ export interface Product { properties?: ProductProperties; @@ -43,16 +43,16 @@ export interface Product { /** * @class - * Initializes a new instance of the ProductProperties class. + * Initializes a new instance of the ProductResult class. * @constructor - * @member {number} [id] - * - * @member {string} [name] - * + * @member {array} [values] + * + * @member {string} [nextLink] + * */ -export interface ProductProperties { - id?: number; - name?: string; +export interface ProductResult { + values?: Product[]; + nextLink?: string; } /** @@ -60,9 +60,9 @@ export interface ProductProperties { * Initializes a new instance of the OdataProductResult class. * @constructor * @member {array} [values] - * + * * @member {string} [odatanextLink] - * + * */ export interface OdataProductResult { values?: Product[]; @@ -76,7 +76,7 @@ export interface OdataProductResult { * @member {string} [status] The status of the request. Possible values * include: 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', * 'Created', 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' - * + * */ export interface OperationResult { status?: string; @@ -90,11 +90,11 @@ export interface OperationResult { * * @member {number} [maxresults] Sets the maximum number of items to return in * the response. - * + * * @member {number} [timeout] Sets the maximum time that the server can spend * processing the request, in seconds. The default is 30 seconds. Default * value: 30 . - * + * */ export interface PagingGetMultiplePagesOptions { maxresults?: number; @@ -109,11 +109,11 @@ export interface PagingGetMultiplePagesOptions { * * @member {number} [maxresults] Sets the maximum number of items to return in * the response. - * + * * @member {number} [timeout] Sets the maximum time that the server can spend * processing the request, in seconds. The default is 30 seconds. Default * value: 30 . - * + * */ export interface PagingGetOdataMultiplePagesOptions { maxresults?: number; @@ -128,13 +128,13 @@ export interface PagingGetOdataMultiplePagesOptions { * * @member {number} [maxresults] Sets the maximum number of items to return in * the response. - * + * * @member {number} offset Offset of return value - * + * * @member {number} [timeout] Sets the maximum time that the server can spend * processing the request, in seconds. The default is 30 seconds. Default * value: 30 . - * + * */ export interface PagingGetMultiplePagesWithOffsetOptions { maxresults?: number; @@ -151,9 +151,9 @@ export interface PagingGetMultiplePagesWithOffsetOptions { * Paging_nextFragmentWithGrouping. * * @member {string} apiVersion Sets the api version to use. - * + * * @member {string} tenant Sets the tenant to use. - * + * */ export interface CustomParameterGroup { apiVersion: string; @@ -168,26 +168,54 @@ export interface CustomParameterGroup { * * @member {number} [maxresults] Sets the maximum number of items to return in * the response. - * + * * @member {number} [timeout] Sets the maximum time that the server can spend * processing the request, in seconds. The default is 30 seconds. Default * value: 30 . - * + * */ export interface PagingGetMultiplePagesWithOffsetNextOptions { maxresults?: number; timeout?: number; } +/** + * @class + * Initializes a new instance of the ProductResult class. + * @constructor + * @member {array} [values] + * + * @member {string} [nextLink] + * + */ +export interface ProductResult { + values?: Product[]; + nextLink?: string; +} + +/** + * @class + * Initializes a new instance of the OdataProductResult class. + * @constructor + * @member {array} [values] + * + * @member {string} [odatanextLink] + * + */ +export interface OdataProductResult { + values?: Product[]; + odatanextLink?: string; +} + /** * @class * Initializes a new instance of the ProductResult class. * @constructor * @member {array} [values] - * + * * @member {string} [nextLink] - * + * */ export interface ProductResult extends Array { nextLink?: string; @@ -198,9 +226,9 @@ export interface ProductResult extends Array { * Initializes a new instance of the OdataProductResult class. * @constructor * @member {array} [values] - * + * * @member {string} [odatanextLink] - * + * */ export interface OdataProductResult extends Array { odatanextLink?: string; diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/index.js index aa506f5769..67cb601f85 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -18,9 +18,9 @@ var msRestAzure = require('ms-rest-azure'); exports.BaseResource = msRestAzure.BaseResource; exports.CloudError = msRestAzure.CloudError; -exports.ProductResult = require('./productResult'); -exports.Product = require('./product'); exports.ProductProperties = require('./productProperties'); +exports.Product = require('./product'); +exports.ProductResult = require('./productResult'); exports.OdataProductResult = require('./odataProductResult'); exports.OperationResult = require('./operationResult'); exports.PagingGetMultiplePagesOptions = require('./pagingGetMultiplePagesOptions'); @@ -28,3 +28,5 @@ exports.PagingGetOdataMultiplePagesOptions = require('./pagingGetOdataMultiplePa exports.PagingGetMultiplePagesWithOffsetOptions = require('./pagingGetMultiplePagesWithOffsetOptions'); exports.CustomParameterGroup = require('./customParameterGroup'); exports.PagingGetMultiplePagesWithOffsetNextOptions = require('./pagingGetMultiplePagesWithOffsetNextOptions'); +exports.ProductResult = require('./productResult'); +exports.OdataProductResult = require('./odataProductResult'); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/odataProductResult.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/odataProductResult.js index 8a33c07143..ea1d9f16d1 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/odataProductResult.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/odataProductResult.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,9 +17,9 @@ var util = require('util'); * Initializes a new instance of the OdataProductResult class. * @constructor * @member {array} [values] - * + * * @member {string} [odatanextLink] - * + * */ function OdataProductResult() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/operationResult.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/operationResult.js index 752d8115ac..6468c078ab 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/operationResult.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/operationResult.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,7 +17,7 @@ * @member {string} [status] The status of the request. Possible values * include: 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', * 'Created', 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' - * + * */ function OperationResult() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesOptions.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesOptions.js index 021679c7c7..7ab2ab2914 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesOptions.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesOptions.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -18,11 +18,11 @@ * * @member {number} [maxresults] Sets the maximum number of items to return in * the response. - * + * * @member {number} [timeout] Sets the maximum time that the server can spend * processing the request, in seconds. The default is 30 seconds. Default * value: 30 . - * + * */ function PagingGetMultiplePagesOptions() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesWithOffsetNextOptions.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesWithOffsetNextOptions.js index 7bb0f155a9..bcdab184e0 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesWithOffsetNextOptions.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesWithOffsetNextOptions.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -18,11 +18,11 @@ * * @member {number} [maxresults] Sets the maximum number of items to return in * the response. - * + * * @member {number} [timeout] Sets the maximum time that the server can spend * processing the request, in seconds. The default is 30 seconds. Default * value: 30 . - * + * */ function PagingGetMultiplePagesWithOffsetNextOptions() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesWithOffsetOptions.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesWithOffsetOptions.js index 76cd7b93bb..683e7ba08b 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesWithOffsetOptions.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetMultiplePagesWithOffsetOptions.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -18,13 +18,13 @@ * * @member {number} [maxresults] Sets the maximum number of items to return in * the response. - * + * * @member {number} offset Offset of return value - * + * * @member {number} [timeout] Sets the maximum time that the server can spend * processing the request, in seconds. The default is 30 seconds. Default * value: 30 . - * + * */ function PagingGetMultiplePagesWithOffsetOptions() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetOdataMultiplePagesOptions.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetOdataMultiplePagesOptions.js index afb4601d56..a3251326fd 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetOdataMultiplePagesOptions.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/pagingGetOdataMultiplePagesOptions.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -18,11 +18,11 @@ * * @member {number} [maxresults] Sets the maximum number of items to return in * the response. - * + * * @member {number} [timeout] Sets the maximum time that the server can spend * processing the request, in seconds. The default is 30 seconds. Default * value: 30 . - * + * */ function PagingGetOdataMultiplePagesOptions() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/product.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/product.js index 507a8af030..6be12b40ea 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/product.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/product.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,11 +17,11 @@ var models = require('./index'); * Initializes a new instance of the Product class. * @constructor * @member {object} [properties] - * + * * @member {number} [properties.id] - * + * * @member {string} [properties.name] - * + * */ function Product() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/productProperties.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/productProperties.js index 56aea07b1d..79e1d34e47 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/productProperties.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/productProperties.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ProductProperties class. * @constructor * @member {number} [id] - * + * * @member {string} [name] - * + * */ function ProductProperties() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/productResult.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/productResult.js index bb0d1a41ac..57b848b3f2 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/productResult.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/models/productResult.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,9 +17,9 @@ var util = require('util'); * Initializes a new instance of the ProductResult class. * @constructor * @member {array} [values] - * + * * @member {string} [nextLink] - * + * */ function ProductResult() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/operations/index.d.ts index 6aeda7ef07..98b53ef364 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,10 +24,10 @@ export interface Paging { * A paging operation that finishes on the first call without a nextlink * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -38,22 +38,22 @@ export interface Paging { * A paging operation that includes a nextLink that has 10 pages * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.clientRequestId] - * + * * @param {object} [options.pagingGetMultiplePagesOptions] Additional * parameters for the operation - * + * * @param {number} [options.pagingGetMultiplePagesOptions.maxresults] Sets the * maximum number of items to return in the response. - * + * * @param {number} [options.pagingGetMultiplePagesOptions.timeout] Sets the * maximum time that the server can spend processing the request, in seconds. * The default is 30 seconds. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -65,22 +65,22 @@ export interface Paging { * pages * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.clientRequestId] - * + * * @param {object} [options.pagingGetOdataMultiplePagesOptions] Additional * parameters for the operation - * + * * @param {number} [options.pagingGetOdataMultiplePagesOptions.maxresults] Sets * the maximum number of items to return in the response. - * + * * @param {number} [options.pagingGetOdataMultiplePagesOptions.timeout] Sets * the maximum time that the server can spend processing the request, in * seconds. The default is 30 seconds. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -92,24 +92,24 @@ export interface Paging { * * @param {object} pagingGetMultiplePagesWithOffsetOptions Additional * parameters for the operation - * + * * @param {number} [pagingGetMultiplePagesWithOffsetOptions.maxresults] Sets * the maximum number of items to return in the response. - * + * * @param {number} pagingGetMultiplePagesWithOffsetOptions.offset Offset of * return value - * + * * @param {number} [pagingGetMultiplePagesWithOffsetOptions.timeout] Sets the * maximum time that the server can spend processing the request, in seconds. * The default is 30 seconds. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.clientRequestId] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -121,10 +121,10 @@ export interface Paging { * and then get a response including a nextLink that has 10 pages * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -137,10 +137,10 @@ export interface Paging { * pages eventually. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -151,10 +151,10 @@ export interface Paging { * A paging operation that receives a 400 on the first call * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -165,10 +165,10 @@ export interface Paging { * A paging operation that receives a 400 on the second call * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -179,10 +179,10 @@ export interface Paging { * A paging operation that receives an invalid nextLink * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -193,14 +193,14 @@ export interface Paging { * A paging operation that doesn't return a full URL, just a fragment * * @param {string} apiVersion Sets the api version to use. - * + * * @param {string} tenant Sets the tenant to use. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -212,16 +212,16 @@ export interface Paging { * parameters grouped * * @param {object} customParameterGroup Additional parameters for the operation - * + * * @param {string} customParameterGroup.apiVersion Sets the api version to use. - * + * * @param {string} customParameterGroup.tenant Sets the tenant to use. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -232,16 +232,16 @@ export interface Paging { * A paging operation that doesn't return a full URL, just a fragment * * @param {string} apiVersion Sets the api version to use. - * + * * @param {string} tenant Sets the tenant to use. - * + * * @param {string} nextLink Next link for list operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -252,18 +252,18 @@ export interface Paging { * A paging operation that doesn't return a full URL, just a fragment * * @param {string} nextLink Next link for list operation. - * + * * @param {object} customParameterGroup Additional parameters for the operation - * + * * @param {string} customParameterGroup.apiVersion Sets the api version to use. - * + * * @param {string} customParameterGroup.tenant Sets the tenant to use. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -275,12 +275,12 @@ export interface Paging { * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -292,24 +292,24 @@ export interface Paging { * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.clientRequestId] - * + * * @param {object} [options.pagingGetMultiplePagesOptions] Additional * parameters for the operation - * + * * @param {number} [options.pagingGetMultiplePagesOptions.maxresults] Sets the * maximum number of items to return in the response. - * + * * @param {number} [options.pagingGetMultiplePagesOptions.timeout] Sets the * maximum time that the server can spend processing the request, in seconds. * The default is 30 seconds. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -322,24 +322,24 @@ export interface Paging { * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.clientRequestId] - * + * * @param {object} [options.pagingGetOdataMultiplePagesOptions] Additional * parameters for the operation - * + * * @param {number} [options.pagingGetOdataMultiplePagesOptions.maxresults] Sets * the maximum number of items to return in the response. - * + * * @param {number} [options.pagingGetOdataMultiplePagesOptions.timeout] Sets * the maximum time that the server can spend processing the request, in * seconds. The default is 30 seconds. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -351,26 +351,26 @@ export interface Paging { * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.clientRequestId] - * + * * @param {object} [options.pagingGetMultiplePagesWithOffsetNextOptions] * Additional parameters for the operation - * + * * @param {number} * [options.pagingGetMultiplePagesWithOffsetNextOptions.maxresults] Sets the * maximum number of items to return in the response. - * + * * @param {number} * [options.pagingGetMultiplePagesWithOffsetNextOptions.timeout] Sets the * maximum time that the server can spend processing the request, in seconds. * The default is 30 seconds. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -383,12 +383,12 @@ export interface Paging { * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -402,12 +402,12 @@ export interface Paging { * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -419,12 +419,12 @@ export interface Paging { * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -436,12 +436,12 @@ export interface Paging { * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -453,12 +453,12 @@ export interface Paging { * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/operations/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/operations/index.js index 8c425aa56c..021d0900e5 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/operations/paging.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/operations/paging.js index cbcfa9f9af..afa98b8b8d 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/operations/paging.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/Paging/operations/paging.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function Paging(client) { * A paging operation that finishes on the first call without a nextlink * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -122,7 +122,7 @@ Paging.prototype.getSinglePages = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -157,22 +157,22 @@ Paging.prototype.getSinglePages = function (options, callback) { * A paging operation that includes a nextLink that has 10 pages * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.clientRequestId] - * + * * @param {object} [options.pagingGetMultiplePagesOptions] Additional * parameters for the operation - * + * * @param {number} [options.pagingGetMultiplePagesOptions.maxresults] Sets the * maximum number of items to return in the response. - * + * * @param {number} [options.pagingGetMultiplePagesOptions.timeout] Sets the * maximum time that the server can spend processing the request, in seconds. * The default is 30 seconds. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -292,7 +292,7 @@ Paging.prototype.getMultiplePages = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -328,22 +328,22 @@ Paging.prototype.getMultiplePages = function (options, callback) { * pages * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.clientRequestId] - * + * * @param {object} [options.pagingGetOdataMultiplePagesOptions] Additional * parameters for the operation - * + * * @param {number} [options.pagingGetOdataMultiplePagesOptions.maxresults] Sets * the maximum number of items to return in the response. - * + * * @param {number} [options.pagingGetOdataMultiplePagesOptions.timeout] Sets * the maximum time that the server can spend processing the request, in * seconds. The default is 30 seconds. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -463,7 +463,7 @@ Paging.prototype.getOdataMultiplePages = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -499,24 +499,24 @@ Paging.prototype.getOdataMultiplePages = function (options, callback) { * * @param {object} pagingGetMultiplePagesWithOffsetOptions Additional * parameters for the operation - * + * * @param {number} [pagingGetMultiplePagesWithOffsetOptions.maxresults] Sets * the maximum number of items to return in the response. - * + * * @param {number} pagingGetMultiplePagesWithOffsetOptions.offset Offset of * return value - * + * * @param {number} [pagingGetMultiplePagesWithOffsetOptions.timeout] Sets the * maximum time that the server can spend processing the request, in seconds. * The default is 30 seconds. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.clientRequestId] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -647,7 +647,7 @@ Paging.prototype.getMultiplePagesWithOffset = function (pagingGetMultiplePagesWi error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -683,10 +683,10 @@ Paging.prototype.getMultiplePagesWithOffset = function (pagingGetMultiplePagesWi * and then get a response including a nextLink that has 10 pages * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -772,7 +772,7 @@ Paging.prototype.getMultiplePagesRetryFirst = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -809,10 +809,10 @@ Paging.prototype.getMultiplePagesRetryFirst = function (options, callback) { * pages eventually. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -898,7 +898,7 @@ Paging.prototype.getMultiplePagesRetrySecond = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -933,10 +933,10 @@ Paging.prototype.getMultiplePagesRetrySecond = function (options, callback) { * A paging operation that receives a 400 on the first call * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1022,7 +1022,7 @@ Paging.prototype.getSinglePagesFailure = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1057,10 +1057,10 @@ Paging.prototype.getSinglePagesFailure = function (options, callback) { * A paging operation that receives a 400 on the second call * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1146,7 +1146,7 @@ Paging.prototype.getMultiplePagesFailure = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1181,10 +1181,10 @@ Paging.prototype.getMultiplePagesFailure = function (options, callback) { * A paging operation that receives an invalid nextLink * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1270,7 +1270,7 @@ Paging.prototype.getMultiplePagesFailureUri = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1305,14 +1305,14 @@ Paging.prototype.getMultiplePagesFailureUri = function (options, callback) { * A paging operation that doesn't return a full URL, just a fragment * * @param {string} apiVersion Sets the api version to use. - * + * * @param {string} tenant Sets the tenant to use. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1406,7 +1406,7 @@ Paging.prototype.getMultiplePagesFragmentNextLink = function (apiVersion, tenant error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1442,16 +1442,16 @@ Paging.prototype.getMultiplePagesFragmentNextLink = function (apiVersion, tenant * parameters grouped * * @param {object} customParameterGroup Additional parameters for the operation - * + * * @param {string} customParameterGroup.apiVersion Sets the api version to use. - * + * * @param {string} customParameterGroup.tenant Sets the tenant to use. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1562,7 +1562,7 @@ Paging.prototype.getMultiplePagesFragmentWithGroupingNextLink = function (custom error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1597,16 +1597,16 @@ Paging.prototype.getMultiplePagesFragmentWithGroupingNextLink = function (custom * A paging operation that doesn't return a full URL, just a fragment * * @param {string} apiVersion Sets the api version to use. - * + * * @param {string} tenant Sets the tenant to use. - * + * * @param {string} nextLink Next link for list operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1704,7 +1704,7 @@ Paging.prototype.nextFragment = function (apiVersion, tenant, nextLink, options, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1739,18 +1739,18 @@ Paging.prototype.nextFragment = function (apiVersion, tenant, nextLink, options, * A paging operation that doesn't return a full URL, just a fragment * * @param {string} nextLink Next link for list operation. - * + * * @param {object} customParameterGroup Additional parameters for the operation - * + * * @param {string} customParameterGroup.apiVersion Sets the api version to use. - * + * * @param {string} customParameterGroup.tenant Sets the tenant to use. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1865,7 +1865,7 @@ Paging.prototype.nextFragmentWithGrouping = function (nextLink, customParameterG error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1901,12 +1901,12 @@ Paging.prototype.nextFragmentWithGrouping = function (nextLink, customParameterG * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1991,7 +1991,7 @@ Paging.prototype.getSinglePagesNext = function (nextPageLink, options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2027,24 +2027,24 @@ Paging.prototype.getSinglePagesNext = function (nextPageLink, options, callback) * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.clientRequestId] - * + * * @param {object} [options.pagingGetMultiplePagesOptions] Additional * parameters for the operation - * + * * @param {number} [options.pagingGetMultiplePagesOptions.maxresults] Sets the * maximum number of items to return in the response. - * + * * @param {number} [options.pagingGetMultiplePagesOptions.timeout] Sets the * maximum time that the server can spend processing the request, in seconds. * The default is 30 seconds. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2163,7 +2163,7 @@ Paging.prototype.getMultiplePagesNext = function (nextPageLink, options, callbac error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2200,24 +2200,24 @@ Paging.prototype.getMultiplePagesNext = function (nextPageLink, options, callbac * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.clientRequestId] - * + * * @param {object} [options.pagingGetOdataMultiplePagesOptions] Additional * parameters for the operation - * + * * @param {number} [options.pagingGetOdataMultiplePagesOptions.maxresults] Sets * the maximum number of items to return in the response. - * + * * @param {number} [options.pagingGetOdataMultiplePagesOptions.timeout] Sets * the maximum time that the server can spend processing the request, in * seconds. The default is 30 seconds. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2336,7 +2336,7 @@ Paging.prototype.getOdataMultiplePagesNext = function (nextPageLink, options, ca error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2372,26 +2372,26 @@ Paging.prototype.getOdataMultiplePagesNext = function (nextPageLink, options, ca * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.clientRequestId] - * + * * @param {object} [options.pagingGetMultiplePagesWithOffsetNextOptions] * Additional parameters for the operation - * + * * @param {number} * [options.pagingGetMultiplePagesWithOffsetNextOptions.maxresults] Sets the * maximum number of items to return in the response. - * + * * @param {number} * [options.pagingGetMultiplePagesWithOffsetNextOptions.timeout] Sets the * maximum time that the server can spend processing the request, in seconds. * The default is 30 seconds. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2510,7 +2510,7 @@ Paging.prototype.getMultiplePagesWithOffsetNext = function (nextPageLink, option error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2547,12 +2547,12 @@ Paging.prototype.getMultiplePagesWithOffsetNext = function (nextPageLink, option * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2637,7 +2637,7 @@ Paging.prototype.getMultiplePagesRetryFirstNext = function (nextPageLink, option error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2675,12 +2675,12 @@ Paging.prototype.getMultiplePagesRetryFirstNext = function (nextPageLink, option * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2765,7 +2765,7 @@ Paging.prototype.getMultiplePagesRetrySecondNext = function (nextPageLink, optio error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2801,12 +2801,12 @@ Paging.prototype.getMultiplePagesRetrySecondNext = function (nextPageLink, optio * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2891,7 +2891,7 @@ Paging.prototype.getSinglePagesFailureNext = function (nextPageLink, options, ca error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2927,12 +2927,12 @@ Paging.prototype.getSinglePagesFailureNext = function (nextPageLink, options, ca * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3017,7 +3017,7 @@ Paging.prototype.getMultiplePagesFailureNext = function (nextPageLink, options, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3053,12 +3053,12 @@ Paging.prototype.getMultiplePagesFailureNext = function (nextPageLink, options, * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3143,7 +3143,7 @@ Paging.prototype.getMultiplePagesFailureUriNext = function (nextPageLink, option error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/bar.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/bar.js index e1c849ddc8..51016a3f37 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/bar.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/bar.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -20,19 +20,19 @@ var models = require('./index'); * table object. * * @member {object} [recursivePoint] Recursive Endpoints - * + * * @member {string} [recursivePoint.blob] Gets the blob endpoint. - * + * * @member {string} [recursivePoint.queue] Gets the queue endpoint. - * + * * @member {string} [recursivePoint.table] Gets the table endpoint. - * + * * @member {object} [recursivePoint.dummyEndPoint] Dummy EndPoint - * + * * @member {object} [recursivePoint.fooPoint] Foo point - * + * * @member {object} [recursivePoint.fooPoint.barPoint] Bar point - * + * */ function Bar() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/checkNameAvailabilityResult.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/checkNameAvailabilityResult.js index fc327ee8e4..56e1cc9097 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/checkNameAvailabilityResult.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/checkNameAvailabilityResult.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -20,14 +20,14 @@ * whether the name is available for you to use. If true, the name is * available. If false, the name has already been taken or invalid and cannot * be used. - * + * * @member {string} [reason] Gets the reason that a storage account name could * not be used. The Reason element is only returned if NameAvailable is false. * Possible values include: 'AccountNameInvalid', 'AlreadyExists' - * + * * @member {string} [message] Gets an error message explaining the Reason value * in more detail. - * + * */ function CheckNameAvailabilityResult() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/customDomain.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/customDomain.js index 4a120d0df7..dfc479096b 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/customDomain.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/customDomain.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,10 +19,10 @@ * * @member {string} [name] Gets or sets the custom domain name. Name is the * CNAME source. - * + * * @member {boolean} [useSubDomain] Indicates whether indirect CName validation * is enabled. Default value is false. This should only be set on updates - * + * */ function CustomDomain() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/endpoints.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/endpoints.js index 2d8273db48..ebbe7ff503 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/endpoints.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/endpoints.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -20,19 +20,19 @@ var models = require('./index'); * table object. * * @member {string} [blob] Gets the blob endpoint. - * + * * @member {string} [queue] Gets the queue endpoint. - * + * * @member {string} [table] Gets the table endpoint. - * + * * @member {object} [dummyEndPoint] Dummy EndPoint - * + * * @member {object} [fooPoint] Foo point - * + * * @member {object} [fooPoint.barPoint] Bar point - * + * * @member {object} [fooPoint.barPoint.recursivePoint] Recursive Endpoints - * + * */ function Endpoints() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/foo.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/foo.js index 75fff2e038..93cefb2c30 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/foo.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/foo.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -20,19 +20,19 @@ var models = require('./index'); * table object. * * @member {object} [barPoint] Bar point - * + * * @member {object} [barPoint.recursivePoint] Recursive Endpoints - * + * * @member {string} [barPoint.recursivePoint.blob] Gets the blob endpoint. - * + * * @member {string} [barPoint.recursivePoint.queue] Gets the queue endpoint. - * + * * @member {string} [barPoint.recursivePoint.table] Gets the table endpoint. - * + * * @member {object} [barPoint.recursivePoint.dummyEndPoint] Dummy EndPoint - * + * * @member {object} [barPoint.recursivePoint.fooPoint] Foo point - * + * */ function Foo() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/index.d.ts index 54e1158d5a..14a9f975ee 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,9 +17,9 @@ exports.CloudError = msRestAzure.CloudError; * Initializes a new instance of the StorageAccountCheckNameAvailabilityParameters class. * @constructor * @member {string} name - * + * * @member {string} [type] Default value: 'Microsoft.Storage/storageAccounts' . - * + * */ export interface StorageAccountCheckNameAvailabilityParameters { name: string; @@ -36,14 +36,14 @@ export interface StorageAccountCheckNameAvailabilityParameters { * whether the name is available for you to use. If true, the name is * available. If false, the name has already been taken or invalid and cannot * be used. - * + * * @member {string} [reason] Gets the reason that a storage account name could * not be used. The Reason element is only returned if NameAvailable is false. * Possible values include: 'AccountNameInvalid', 'AlreadyExists' - * + * * @member {string} [message] Gets an error message explaining the Reason value * in more detail. - * + * */ export interface CheckNameAvailabilityResult { nameAvailable?: boolean; @@ -56,15 +56,15 @@ export interface CheckNameAvailabilityResult { * Initializes a new instance of the Resource class. * @constructor * @member {string} [id] Resource Id - * + * * @member {string} [name] Resource name - * + * * @member {string} [type] Resource type - * + * * @member {string} location Resource location - * + * * @member {object} [tags] Resource tags - * + * */ export interface Resource extends BaseResource { id?: string; @@ -83,7 +83,7 @@ export interface Resource extends BaseResource { * @member {string} [accountType] Gets or sets the account type. Possible * values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', * 'Standard_RAGRS', 'Premium_LRS' - * + * */ export interface StorageAccountCreateParameters extends Resource { accountType?: string; @@ -91,32 +91,28 @@ export interface StorageAccountCreateParameters extends Resource { /** * @class - * Initializes a new instance of the Endpoints class. + * Initializes a new instance of the Bar class. * @constructor * The URIs that are used to perform a retrieval of a public blob, queue or * table object. * - * @member {string} [blob] Gets the blob endpoint. - * - * @member {string} [queue] Gets the queue endpoint. - * - * @member {string} [table] Gets the table endpoint. - * - * @member {object} [dummyEndPoint] Dummy EndPoint - * - * @member {object} [fooPoint] Foo point - * - * @member {object} [fooPoint.barPoint] Bar point - * - * @member {object} [fooPoint.barPoint.recursivePoint] Recursive Endpoints - * + * @member {object} [recursivePoint] Recursive Endpoints + * + * @member {string} [recursivePoint.blob] Gets the blob endpoint. + * + * @member {string} [recursivePoint.queue] Gets the queue endpoint. + * + * @member {string} [recursivePoint.table] Gets the table endpoint. + * + * @member {object} [recursivePoint.dummyEndPoint] Dummy EndPoint + * + * @member {object} [recursivePoint.fooPoint] Foo point + * + * @member {object} [recursivePoint.fooPoint.barPoint] Bar point + * */ -export interface Endpoints { - blob?: string; - queue?: string; - table?: string; - dummyEndPoint?: Endpoints; - fooPoint?: Foo; +export interface Bar { + recursivePoint?: Endpoints; } /** @@ -127,19 +123,19 @@ export interface Endpoints { * table object. * * @member {object} [barPoint] Bar point - * + * * @member {object} [barPoint.recursivePoint] Recursive Endpoints - * + * * @member {string} [barPoint.recursivePoint.blob] Gets the blob endpoint. - * + * * @member {string} [barPoint.recursivePoint.queue] Gets the queue endpoint. - * + * * @member {string} [barPoint.recursivePoint.table] Gets the table endpoint. - * + * * @member {object} [barPoint.recursivePoint.dummyEndPoint] Dummy EndPoint - * + * * @member {object} [barPoint.recursivePoint.fooPoint] Foo point - * + * */ export interface Foo { barPoint?: Bar; @@ -147,28 +143,32 @@ export interface Foo { /** * @class - * Initializes a new instance of the Bar class. + * Initializes a new instance of the Endpoints class. * @constructor * The URIs that are used to perform a retrieval of a public blob, queue or * table object. * - * @member {object} [recursivePoint] Recursive Endpoints - * - * @member {string} [recursivePoint.blob] Gets the blob endpoint. - * - * @member {string} [recursivePoint.queue] Gets the queue endpoint. - * - * @member {string} [recursivePoint.table] Gets the table endpoint. - * - * @member {object} [recursivePoint.dummyEndPoint] Dummy EndPoint - * - * @member {object} [recursivePoint.fooPoint] Foo point - * - * @member {object} [recursivePoint.fooPoint.barPoint] Bar point - * + * @member {string} [blob] Gets the blob endpoint. + * + * @member {string} [queue] Gets the queue endpoint. + * + * @member {string} [table] Gets the table endpoint. + * + * @member {object} [dummyEndPoint] Dummy EndPoint + * + * @member {object} [fooPoint] Foo point + * + * @member {object} [fooPoint.barPoint] Bar point + * + * @member {object} [fooPoint.barPoint.recursivePoint] Recursive Endpoints + * */ -export interface Bar { - recursivePoint?: Endpoints; +export interface Endpoints { + blob?: string; + queue?: string; + table?: string; + dummyEndPoint?: Endpoints; + fooPoint?: Foo; } /** @@ -180,10 +180,10 @@ export interface Bar { * * @member {string} [name] Gets or sets the custom domain name. Name is the * CNAME source. - * + * * @member {boolean} [useSubDomain] Indicates whether indirect CName validation * is enabled. Default value is false. This should only be set on updates - * + * */ export interface CustomDomain { name?: string; @@ -199,85 +199,85 @@ export interface CustomDomain { * @member {string} [provisioningState] Gets the status of the storage account * at the time the operation was called. Possible values include: 'Creating', * 'ResolvingDNS', 'Succeeded' - * + * * @member {string} [accountType] Gets the type of the storage account. * Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', * 'Standard_RAGRS', 'Premium_LRS' - * + * * @member {object} [primaryEndpoints] Gets the URLs that are used to perform a * retrieval of a public blob, queue or table object.Note that StandardZRS and * PremiumLRS accounts only return the blob endpoint. - * + * * @member {string} [primaryEndpoints.blob] Gets the blob endpoint. - * + * * @member {string} [primaryEndpoints.queue] Gets the queue endpoint. - * + * * @member {string} [primaryEndpoints.table] Gets the table endpoint. - * + * * @member {object} [primaryEndpoints.dummyEndPoint] Dummy EndPoint - * + * * @member {object} [primaryEndpoints.fooPoint] Foo point - * + * * @member {object} [primaryEndpoints.fooPoint.barPoint] Bar point - * + * * @member {object} [primaryEndpoints.fooPoint.barPoint.recursivePoint] * Recursive Endpoints - * + * * @member {string} [primaryLocation] Gets the location of the primary for the * storage account. - * + * * @member {string} [statusOfPrimary] Gets the status indicating whether the * primary location of the storage account is available or unavailable. * Possible values include: 'Available', 'Unavailable' - * + * * @member {date} [lastGeoFailoverTime] Gets the timestamp of the most recent * instance of a failover to the secondary location. Only the most recent * timestamp is retained. This element is not returned if there has never been * a failover instance. Only available if the accountType is StandardGRS or * StandardRAGRS. - * + * * @member {string} [secondaryLocation] Gets the location of the geo replicated * secondary for the storage account. Only available if the accountType is * StandardGRS or StandardRAGRS. - * + * * @member {string} [statusOfSecondary] Gets the status indicating whether the * secondary location of the storage account is available or unavailable. Only * available if the accountType is StandardGRS or StandardRAGRS. Possible * values include: 'Available', 'Unavailable' - * + * * @member {date} [creationTime] Gets the creation date and time of the storage * account in UTC. - * + * * @member {object} [customDomain] Gets the user assigned custom domain * assigned to this storage account. - * + * * @member {string} [customDomain.name] Gets or sets the custom domain name. * Name is the CNAME source. - * + * * @member {boolean} [customDomain.useSubDomain] Indicates whether indirect * CName validation is enabled. Default value is false. This should only be set * on updates - * + * * @member {object} [secondaryEndpoints] Gets the URLs that are used to perform * a retrieval of a public blob, queue or table object from the secondary * location of the storage account. Only available if the accountType is * StandardRAGRS. - * + * * @member {string} [secondaryEndpoints.blob] Gets the blob endpoint. - * + * * @member {string} [secondaryEndpoints.queue] Gets the queue endpoint. - * + * * @member {string} [secondaryEndpoints.table] Gets the table endpoint. - * + * * @member {object} [secondaryEndpoints.dummyEndPoint] Dummy EndPoint - * + * * @member {object} [secondaryEndpoints.fooPoint] Foo point - * + * * @member {object} [secondaryEndpoints.fooPoint.barPoint] Bar point - * + * * @member {object} [secondaryEndpoints.fooPoint.barPoint.recursivePoint] * Recursive Endpoints - * + * */ export interface StorageAccount extends Resource { provisioningState?: string; @@ -300,9 +300,9 @@ export interface StorageAccount extends Resource { * The access keys for the storage account. * * @member {string} [key1] Gets the value of key 1. - * + * * @member {string} [key2] Gets the value of key 2. - * + * */ export interface StorageAccountKeys { key1?: string; @@ -317,10 +317,10 @@ export interface StorageAccountKeys { * * @member {array} [value] Gets the list of storage accounts and their * properties. - * + * * @member {string} [nextLink] Gets the link to the next set of results. * Currently this will always be empty as the API does not support pagination. - * + * */ export interface StorageAccountListResult { value?: StorageAccount[]; @@ -338,19 +338,19 @@ export interface StorageAccountListResult { * types, and other account types cannot be changed to StandardZRS or * PremiumLRS. Possible values include: 'Standard_LRS', 'Standard_ZRS', * 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @member {object} [customDomain] User domain assigned to the storage account. * Name is the CNAME source. Only one custom domain is supported per storage * account at this time. To clear the existing custom domain, use an empty * string for the custom domain name property. - * + * * @member {string} [customDomain.name] Gets or sets the custom domain name. * Name is the CNAME source. - * + * * @member {boolean} [customDomain.useSubDomain] Indicates whether indirect * CName validation is enabled. Default value is false. This should only be set * on updates - * + * */ export interface StorageAccountUpdateParameters extends Resource { accountType?: string; @@ -362,7 +362,7 @@ export interface StorageAccountUpdateParameters extends Resource { * Initializes a new instance of the StorageAccountRegenerateKeyParameters class. * @constructor * @member {string} [keyName] Possible values include: 'key1', 'key2' - * + * */ export interface StorageAccountRegenerateKeyParameters { keyName?: string; @@ -375,10 +375,10 @@ export interface StorageAccountRegenerateKeyParameters { * The Usage Names. * * @member {string} [value] Gets a string describing the resource name. - * + * * @member {string} [localizedValue] Gets a localized string describing the * resource name. - * + * */ export interface UsageName { value?: string; @@ -394,20 +394,20 @@ export interface UsageName { * @member {string} [unit] Gets the unit of measurement. Possible values * include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', * 'BytesPerSecond' - * + * * @member {number} [currentValue] Gets the current count of the allocated * resources in the subscription. - * + * * @member {number} [limit] Gets the maximum count of the resources that can be * allocated in the subscription. - * + * * @member {object} [name] Gets the name of the type of usage. - * + * * @member {string} [name.value] Gets a string describing the resource name. - * + * * @member {string} [name.localizedValue] Gets a localized string describing * the resource name. - * + * */ export interface Usage { unit?: string; @@ -423,7 +423,7 @@ export interface Usage { * The List Usages operation response. * * @member {array} [value] Gets or sets the list Storage Resource Usages. - * + * */ export interface UsageListResult { value?: Usage[]; @@ -434,12 +434,30 @@ export interface UsageListResult { * Initializes a new instance of the SubResource class. * @constructor * @member {string} [id] Resource Id - * + * */ export interface SubResource extends BaseResource { id?: string; } +/** + * @class + * Initializes a new instance of the StorageAccountListResult class. + * @constructor + * The list storage accounts operation response. + * + * @member {array} [value] Gets the list of storage accounts and their + * properties. + * + * @member {string} [nextLink] Gets the link to the next set of results. + * Currently this will always be empty as the API does not support pagination. + * + */ +export interface StorageAccountListResult { + value?: StorageAccount[]; + nextLink?: string; +} + /** * @class @@ -449,7 +467,7 @@ export interface SubResource extends BaseResource { * * @member {string} [nextLink] Gets the link to the next set of results. * Currently this will always be empty as the API does not support pagination. - * + * */ export interface StorageAccountListResult extends Array { nextLink?: string; diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/index.js index 3c267c7d8c..d5a5ec2365 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -22,9 +22,9 @@ exports.StorageAccountCheckNameAvailabilityParameters = require('./storageAccoun exports.CheckNameAvailabilityResult = require('./checkNameAvailabilityResult'); exports.Resource = require('./resource'); exports.StorageAccountCreateParameters = require('./storageAccountCreateParameters'); -exports.Endpoints = require('./endpoints'); -exports.Foo = require('./foo'); exports.Bar = require('./bar'); +exports.Foo = require('./foo'); +exports.Endpoints = require('./endpoints'); exports.CustomDomain = require('./customDomain'); exports.StorageAccount = require('./storageAccount'); exports.StorageAccountKeys = require('./storageAccountKeys'); @@ -35,3 +35,4 @@ exports.UsageName = require('./usageName'); exports.Usage = require('./usage'); exports.UsageListResult = require('./usageListResult'); exports.SubResource = require('./subResource'); +exports.StorageAccountListResult = require('./storageAccountListResult'); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/resource.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/resource.js index 13827d365a..58e06ee1ef 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/resource.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/resource.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,15 +19,15 @@ var util = require('util'); * Initializes a new instance of the Resource class. * @constructor * @member {string} [id] Resource Id - * + * * @member {string} [name] Resource name - * + * * @member {string} [type] Resource type - * + * * @member {string} location Resource location - * + * * @member {object} [tags] Resource tags - * + * */ function Resource() { Resource['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccount.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccount.js index e51947cfca..237b3fbe71 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccount.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccount.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -23,85 +23,85 @@ var util = require('util'); * @member {string} [provisioningState] Gets the status of the storage account * at the time the operation was called. Possible values include: 'Creating', * 'ResolvingDNS', 'Succeeded' - * + * * @member {string} [accountType] Gets the type of the storage account. * Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', * 'Standard_RAGRS', 'Premium_LRS' - * + * * @member {object} [primaryEndpoints] Gets the URLs that are used to perform a * retrieval of a public blob, queue or table object.Note that StandardZRS and * PremiumLRS accounts only return the blob endpoint. - * + * * @member {string} [primaryEndpoints.blob] Gets the blob endpoint. - * + * * @member {string} [primaryEndpoints.queue] Gets the queue endpoint. - * + * * @member {string} [primaryEndpoints.table] Gets the table endpoint. - * + * * @member {object} [primaryEndpoints.dummyEndPoint] Dummy EndPoint - * + * * @member {object} [primaryEndpoints.fooPoint] Foo point - * + * * @member {object} [primaryEndpoints.fooPoint.barPoint] Bar point - * + * * @member {object} [primaryEndpoints.fooPoint.barPoint.recursivePoint] * Recursive Endpoints - * + * * @member {string} [primaryLocation] Gets the location of the primary for the * storage account. - * + * * @member {string} [statusOfPrimary] Gets the status indicating whether the * primary location of the storage account is available or unavailable. * Possible values include: 'Available', 'Unavailable' - * + * * @member {date} [lastGeoFailoverTime] Gets the timestamp of the most recent * instance of a failover to the secondary location. Only the most recent * timestamp is retained. This element is not returned if there has never been * a failover instance. Only available if the accountType is StandardGRS or * StandardRAGRS. - * + * * @member {string} [secondaryLocation] Gets the location of the geo replicated * secondary for the storage account. Only available if the accountType is * StandardGRS or StandardRAGRS. - * + * * @member {string} [statusOfSecondary] Gets the status indicating whether the * secondary location of the storage account is available or unavailable. Only * available if the accountType is StandardGRS or StandardRAGRS. Possible * values include: 'Available', 'Unavailable' - * + * * @member {date} [creationTime] Gets the creation date and time of the storage * account in UTC. - * + * * @member {object} [customDomain] Gets the user assigned custom domain * assigned to this storage account. - * + * * @member {string} [customDomain.name] Gets or sets the custom domain name. * Name is the CNAME source. - * + * * @member {boolean} [customDomain.useSubDomain] Indicates whether indirect * CName validation is enabled. Default value is false. This should only be set * on updates - * + * * @member {object} [secondaryEndpoints] Gets the URLs that are used to perform * a retrieval of a public blob, queue or table object from the secondary * location of the storage account. Only available if the accountType is * StandardRAGRS. - * + * * @member {string} [secondaryEndpoints.blob] Gets the blob endpoint. - * + * * @member {string} [secondaryEndpoints.queue] Gets the queue endpoint. - * + * * @member {string} [secondaryEndpoints.table] Gets the table endpoint. - * + * * @member {object} [secondaryEndpoints.dummyEndPoint] Dummy EndPoint - * + * * @member {object} [secondaryEndpoints.fooPoint] Foo point - * + * * @member {object} [secondaryEndpoints.fooPoint.barPoint] Bar point - * + * * @member {object} [secondaryEndpoints.fooPoint.barPoint.recursivePoint] * Recursive Endpoints - * + * */ function StorageAccount() { StorageAccount['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountCheckNameAvailabilityParameters.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountCheckNameAvailabilityParameters.js index 7242d2cfb2..8b7478d929 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountCheckNameAvailabilityParameters.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountCheckNameAvailabilityParameters.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the StorageAccountCheckNameAvailabilityParameters class. * @constructor * @member {string} name - * + * * @member {string} [type] Default value: 'Microsoft.Storage/storageAccounts' . - * + * */ function StorageAccountCheckNameAvailabilityParameters() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountCreateParameters.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountCreateParameters.js index 591dec7d72..84f1244286 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountCreateParameters.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountCreateParameters.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -23,7 +23,7 @@ var util = require('util'); * @member {string} [accountType] Gets or sets the account type. Possible * values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', * 'Standard_RAGRS', 'Premium_LRS' - * + * */ function StorageAccountCreateParameters() { StorageAccountCreateParameters['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountKeys.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountKeys.js index 37d8bd63bd..72f39ab291 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountKeys.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountKeys.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,9 +17,9 @@ * The access keys for the storage account. * * @member {string} [key1] Gets the value of key 1. - * + * * @member {string} [key2] Gets the value of key 2. - * + * */ function StorageAccountKeys() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountListResult.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountListResult.js index b7bc2942b4..7e3bdd3dff 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountListResult.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountListResult.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -20,7 +20,7 @@ var util = require('util'); * * @member {string} [nextLink] Gets the link to the next set of results. * Currently this will always be empty as the API does not support pagination. - * + * */ function StorageAccountListResult() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountRegenerateKeyParameters.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountRegenerateKeyParameters.js index a3f6b4728d..f579be674d 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountRegenerateKeyParameters.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountRegenerateKeyParameters.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the StorageAccountRegenerateKeyParameters class. * @constructor * @member {string} [keyName] Possible values include: 'key1', 'key2' - * + * */ function StorageAccountRegenerateKeyParameters() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountUpdateParameters.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountUpdateParameters.js index bdbcdac803..d58f29586d 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountUpdateParameters.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/storageAccountUpdateParameters.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -25,19 +25,19 @@ var util = require('util'); * types, and other account types cannot be changed to StandardZRS or * PremiumLRS. Possible values include: 'Standard_LRS', 'Standard_ZRS', * 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @member {object} [customDomain] User domain assigned to the storage account. * Name is the CNAME source. Only one custom domain is supported per storage * account at this time. To clear the existing custom domain, use an empty * string for the custom domain name property. - * + * * @member {string} [customDomain.name] Gets or sets the custom domain name. * Name is the CNAME source. - * + * * @member {boolean} [customDomain.useSubDomain] Indicates whether indirect * CName validation is enabled. Default value is false. This should only be set * on updates - * + * */ function StorageAccountUpdateParameters() { StorageAccountUpdateParameters['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/subResource.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/subResource.js index 3dbc65e400..6c2708d82b 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/subResource.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/subResource.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the SubResource class. * @constructor * @member {string} [id] Resource Id - * + * */ function SubResource() { SubResource['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/usage.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/usage.js index bfce6ee21a..40a3891093 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/usage.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/usage.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -21,20 +21,20 @@ var models = require('./index'); * @member {string} [unit] Gets the unit of measurement. Possible values * include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', * 'BytesPerSecond' - * + * * @member {number} [currentValue] Gets the current count of the allocated * resources in the subscription. - * + * * @member {number} [limit] Gets the maximum count of the resources that can be * allocated in the subscription. - * + * * @member {object} [name] Gets the name of the type of usage. - * + * * @member {string} [name.value] Gets a string describing the resource name. - * + * * @member {string} [name.localizedValue] Gets a localized string describing * the resource name. - * + * */ function Usage() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/usageListResult.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/usageListResult.js index 4b963c8596..fd9d3af615 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/usageListResult.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/usageListResult.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -21,7 +21,7 @@ var util = require('util'); * The List Usages operation response. * * @member {array} [value] Gets or sets the list Storage Resource Usages. - * + * */ function UsageListResult() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/usageName.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/usageName.js index 940b0dfb91..870fe0e09d 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/usageName.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/models/usageName.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,10 +17,10 @@ * The Usage Names. * * @member {string} [value] Gets a string describing the resource name. - * + * * @member {string} [localizedValue] Gets a localized string describing the * resource name. - * + * */ function UsageName() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/index.d.ts index c424706b83..5cd61bd83c 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -26,16 +26,16 @@ export interface StorageAccounts { * @param {object} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {string} accountName.name - * + * * @param {string} [accountName.type] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -51,27 +51,27 @@ export interface StorageAccounts { * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} parameters The parameters to provide for the created * account. - * + * * @param {string} [parameters.accountType] Gets or sets the account type. * Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', * 'Standard_RAGRS', 'Premium_LRS' - * + * * @param {string} parameters.location Resource location - * + * * @param {object} [parameters.tags] Resource tags - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -83,16 +83,16 @@ export interface StorageAccounts { * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -106,16 +106,16 @@ export interface StorageAccounts { * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -135,41 +135,41 @@ export interface StorageAccounts { * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} parameters The parameters to update on the account. Note * that only one property can be changed at a time using this API. - * + * * @param {string} [parameters.accountType] Gets or sets the account type. Note * that StandardZRS and PremiumLRS accounts cannot be changed to other account * types, and other account types cannot be changed to StandardZRS or * PremiumLRS. Possible values include: 'Standard_LRS', 'Standard_ZRS', * 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @param {object} [parameters.customDomain] User domain assigned to the * storage account. Name is the CNAME source. Only one custom domain is * supported per storage account at this time. To clear the existing custom * domain, use an empty string for the custom domain name property. - * + * * @param {string} [parameters.customDomain.name] Gets or sets the custom * domain name. Name is the CNAME source. - * + * * @param {boolean} [parameters.customDomain.useSubDomain] Indicates whether * indirect CName validation is enabled. Default value is false. This should * only be set on updates - * + * * @param {string} parameters.location Resource location - * + * * @param {object} [parameters.tags] Resource tags - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -181,14 +181,14 @@ export interface StorageAccounts { * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {string} accountName The name of the storage account. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -200,10 +200,10 @@ export interface StorageAccounts { * storage keys are not returned; use the ListKeys operation for this. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -217,12 +217,12 @@ export interface StorageAccounts { * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -234,18 +234,18 @@ export interface StorageAccounts { * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.keyName] Possible values include: 'key1', 'key2' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -261,27 +261,27 @@ export interface StorageAccounts { * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} parameters The parameters to provide for the created * account. - * + * * @param {string} [parameters.accountType] Gets or sets the account type. * Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', * 'Standard_RAGRS', 'Premium_LRS' - * + * * @param {string} parameters.location Resource location - * + * * @param {object} [parameters.tags] Resource tags - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -302,10 +302,10 @@ export interface UsageOperations { * subscription. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/index.js index c634fc6a6f..a1391aa547 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/storageAccounts.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/storageAccounts.js index 6a20a31af9..d694875369 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/storageAccounts.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/storageAccounts.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -35,16 +35,16 @@ function StorageAccounts(client) { * @param {object} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {string} accountName.name - * + * * @param {string} [accountName.type] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -126,7 +126,7 @@ StorageAccounts.prototype.checkNameAvailability = function (accountName, options requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(accountName, {depth: null}))); return callback(serializationError); } @@ -156,7 +156,7 @@ StorageAccounts.prototype.checkNameAvailability = function (accountName, options error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -197,27 +197,27 @@ StorageAccounts.prototype.checkNameAvailability = function (accountName, options * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} parameters The parameters to provide for the created * account. - * + * * @param {string} [parameters.accountType] Gets or sets the account type. * Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', * 'Standard_RAGRS', 'Premium_LRS' - * + * * @param {string} parameters.location Resource location - * + * * @param {object} [parameters.tags] Resource tags - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -286,16 +286,16 @@ StorageAccounts.prototype.create = function (resourceGroupName, accountName, par * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -393,7 +393,7 @@ StorageAccounts.prototype.deleteMethod = function (resourceGroupName, accountNam error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -414,16 +414,16 @@ StorageAccounts.prototype.deleteMethod = function (resourceGroupName, accountNam * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -525,7 +525,7 @@ StorageAccounts.prototype.getProperties = function (resourceGroupName, accountNa error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -569,41 +569,41 @@ StorageAccounts.prototype.getProperties = function (resourceGroupName, accountNa * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} parameters The parameters to update on the account. Note * that only one property can be changed at a time using this API. - * + * * @param {string} [parameters.accountType] Gets or sets the account type. Note * that StandardZRS and PremiumLRS accounts cannot be changed to other account * types, and other account types cannot be changed to StandardZRS or * PremiumLRS. Possible values include: 'Standard_LRS', 'Standard_ZRS', * 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' - * + * * @param {object} [parameters.customDomain] User domain assigned to the * storage account. Name is the CNAME source. Only one custom domain is * supported per storage account at this time. To clear the existing custom * domain, use an empty string for the custom domain name property. - * + * * @param {string} [parameters.customDomain.name] Gets or sets the custom * domain name. Name is the CNAME source. - * + * * @param {boolean} [parameters.customDomain.useSubDomain] Indicates whether * indirect CName validation is enabled. Default value is false. This should * only be set on updates - * + * * @param {string} parameters.location Resource location - * + * * @param {object} [parameters.tags] Resource tags - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -692,7 +692,7 @@ StorageAccounts.prototype.update = function (resourceGroupName, accountName, par requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(parameters, {depth: null}))); return callback(serializationError); } @@ -722,7 +722,7 @@ StorageAccounts.prototype.update = function (resourceGroupName, accountName, par error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -758,14 +758,14 @@ StorageAccounts.prototype.update = function (resourceGroupName, accountName, par * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {string} accountName The name of the storage account. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -867,7 +867,7 @@ StorageAccounts.prototype.listKeys = function (resourceGroupName, accountName, o error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -903,10 +903,10 @@ StorageAccounts.prototype.listKeys = function (resourceGroupName, accountName, o * storage keys are not returned; use the ListKeys operation for this. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1001,7 +1001,7 @@ StorageAccounts.prototype.list = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1039,12 +1039,12 @@ StorageAccounts.prototype.list = function (options, callback) { * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1143,7 +1143,7 @@ StorageAccounts.prototype.listByResourceGroup = function (resourceGroupName, opt error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1179,18 +1179,18 @@ StorageAccounts.prototype.listByResourceGroup = function (resourceGroupName, opt * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.keyName] Possible values include: 'key1', 'key2' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1288,7 +1288,7 @@ StorageAccounts.prototype.regenerateKey = function (resourceGroupName, accountNa requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(regenerateKeyParameter, {depth: null}))); return callback(serializationError); } @@ -1318,7 +1318,7 @@ StorageAccounts.prototype.regenerateKey = function (resourceGroupName, accountNa error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1358,27 +1358,27 @@ StorageAccounts.prototype.regenerateKey = function (resourceGroupName, accountNa * * @param {string} resourceGroupName The name of the resource group within the * user’s subscription. - * + * * @param {string} accountName The name of the storage account within the * specified resource group. Storage account names must be between 3 and 24 * characters in length and use numbers and lower-case letters only. - * + * * @param {object} parameters The parameters to provide for the created * account. - * + * * @param {string} [parameters.accountType] Gets or sets the account type. * Possible values include: 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', * 'Standard_RAGRS', 'Premium_LRS' - * + * * @param {string} parameters.location Resource location - * + * * @param {object} [parameters.tags] Resource tags - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1467,7 +1467,7 @@ StorageAccounts.prototype.beginCreate = function (resourceGroupName, accountName requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(parameters, {depth: null}))); return callback(serializationError); } @@ -1497,7 +1497,7 @@ StorageAccounts.prototype.beginCreate = function (resourceGroupName, accountName error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/usageOperations.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/usageOperations.js index dac4e960af..5ed032deba 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/usageOperations.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/operations/usageOperations.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -34,10 +34,10 @@ function UsageOperations(client) { * subscription. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -131,7 +131,7 @@ UsageOperations.prototype.list = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storageManagementClient.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storageManagementClient.d.ts index ce996eb453..2e7bfd7777 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storageManagementClient.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storageManagementClient.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storageManagementClient.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storageManagementClient.js index b3ac6ee734..c80bc3d5e4 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storageManagementClient.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/StorageManagementClient/storageManagementClient.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -73,16 +73,16 @@ function StorageManagementClient(credentials, subscriptionId, baseUri, options) this.credentials = credentials; this.subscriptionId = subscriptionId; - if(options.apiVersion !== null && options.apiVersion !== undefined) { + if(options.apiVersion !== null && options.apiVersion !== undefined) { this.apiVersion = options.apiVersion; } - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } - if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { + if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } this.storageAccounts = new operations.StorageAccounts(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftAzureTestUrl.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftAzureTestUrl.d.ts index bf75d297d9..593a8e538e 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftAzureTestUrl.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftAzureTestUrl.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftAzureTestUrl.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftAzureTestUrl.js index fb1fac054f..3fc759f7fd 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftAzureTestUrl.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/microsoftAzureTestUrl.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -73,16 +73,16 @@ function MicrosoftAzureTestUrl(credentials, subscriptionId, baseUri, options) { this.credentials = credentials; this.subscriptionId = subscriptionId; - if(options.apiVersion !== null && options.apiVersion !== undefined) { + if(options.apiVersion !== null && options.apiVersion !== undefined) { this.apiVersion = options.apiVersion; } - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } - if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { + if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } this.group = new operations.Group(this); diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/errorModel.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/errorModel.js index cce821b163..ab58eb4ee7 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [code] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/index.d.ts index 2dc4cffc6a..8d659275b1 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,9 +17,9 @@ exports.CloudError = msRestAzure.CloudError; * Initializes a new instance of the SampleResourceGroup class. * @constructor * @member {string} [name] resource group name 'testgroup101' - * + * * @member {string} [location] resource group location 'West US' - * + * */ export interface SampleResourceGroup { name?: string; @@ -31,9 +31,9 @@ export interface SampleResourceGroup { * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [code] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { code?: number; diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/index.js index 8c85f5a671..c0bdb79ad9 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/sampleResourceGroup.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/sampleResourceGroup.js index c2f16239d1..c3ea2cd1d7 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/sampleResourceGroup.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/models/sampleResourceGroup.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the SampleResourceGroup class. * @constructor * @member {string} [name] resource group name 'testgroup101' - * + * * @member {string} [location] resource group location 'West US' - * + * */ function SampleResourceGroup() { } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/operations/group.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/operations/group.js index 44d348a2fb..b9c61b0e66 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/operations/group.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/operations/group.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,12 +33,12 @@ function Group(client) { * Provides a resouce group with name 'testgroup101' and location 'West US'. * * @param {string} resourceGroupName Resource Group name 'testgroup101'. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -137,7 +137,7 @@ Group.prototype.getSampleResourceGroup = function (resourceGroupName, options, c error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/operations/index.d.ts index f335a61a17..104840d66e 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,12 +24,12 @@ export interface Group { * Provides a resouce group with name 'testgroup101' and location 'West US'. * * @param {string} resourceGroupName Resource Group name 'testgroup101'. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/operations/index.js b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/operations/index.js index 403ccc3c77..ac21720590 100644 --- a/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/autoRestSwaggerBATArrayService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/autoRestSwaggerBATArrayService.d.ts index f6a34d724d..717992a2df 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/autoRestSwaggerBATArrayService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/autoRestSwaggerBATArrayService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/autoRestSwaggerBATArrayService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/autoRestSwaggerBATArrayService.js index 93d5a0dbfe..7bead8bc31 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/autoRestSwaggerBATArrayService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/autoRestSwaggerBATArrayService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/index.d.ts index ddc43d368f..f3ce291137 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the Product class. * @constructor * @member {number} [integer] - * + * * @member {string} [string] - * + * */ export interface Product { integer?: number; @@ -28,9 +28,9 @@ export interface Product { * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/index.js index 565671f253..d8b3c72c61 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/product.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/product.js index 10ec5b7061..6c34c4c13d 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/product.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/models/product.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the Product class. * @constructor * @member {number} [integer] - * + * * @member {string} [string] - * + * */ function Product() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/operations/arrayModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/operations/arrayModel.js index 52d12ab3b5..e9759671db 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/operations/arrayModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/operations/arrayModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function ArrayModel(client) { * Get null array value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -104,7 +104,7 @@ ArrayModel.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -152,10 +152,10 @@ ArrayModel.prototype.getNull = function (options, callback) { * Get invalid array [1, 2, 3 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -223,7 +223,7 @@ ArrayModel.prototype.getInvalid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -271,10 +271,10 @@ ArrayModel.prototype.getInvalid = function (options, callback) { * Get empty array value [] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -342,7 +342,7 @@ ArrayModel.prototype.getEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -390,12 +390,12 @@ ArrayModel.prototype.getEmpty = function (options, callback) { * Set array value empty [] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -472,7 +472,7 @@ ArrayModel.prototype.putEmpty = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -503,7 +503,7 @@ ArrayModel.prototype.putEmpty = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -521,10 +521,10 @@ ArrayModel.prototype.putEmpty = function (arrayBody, options, callback) { * Get boolean array value [true, false, false, true] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -592,7 +592,7 @@ ArrayModel.prototype.getBooleanTfft = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -640,12 +640,12 @@ ArrayModel.prototype.getBooleanTfft = function (options, callback) { * Set array value empty [true, false, false, true] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -722,7 +722,7 @@ ArrayModel.prototype.putBooleanTfft = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -753,7 +753,7 @@ ArrayModel.prototype.putBooleanTfft = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -771,10 +771,10 @@ ArrayModel.prototype.putBooleanTfft = function (arrayBody, options, callback) { * Get boolean array value [true, null, false] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -842,7 +842,7 @@ ArrayModel.prototype.getBooleanInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -890,10 +890,10 @@ ArrayModel.prototype.getBooleanInvalidNull = function (options, callback) { * Get boolean array value [true, 'boolean', false] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -961,7 +961,7 @@ ArrayModel.prototype.getBooleanInvalidString = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1009,10 +1009,10 @@ ArrayModel.prototype.getBooleanInvalidString = function (options, callback) { * Get integer array value [1, -1, 3, 300] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1080,7 +1080,7 @@ ArrayModel.prototype.getIntegerValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1128,12 +1128,12 @@ ArrayModel.prototype.getIntegerValid = function (options, callback) { * Set array value empty [1, -1, 3, 300] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1210,7 +1210,7 @@ ArrayModel.prototype.putIntegerValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -1241,7 +1241,7 @@ ArrayModel.prototype.putIntegerValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1259,10 +1259,10 @@ ArrayModel.prototype.putIntegerValid = function (arrayBody, options, callback) { * Get integer array value [1, null, 0] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1330,7 +1330,7 @@ ArrayModel.prototype.getIntInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1378,10 +1378,10 @@ ArrayModel.prototype.getIntInvalidNull = function (options, callback) { * Get integer array value [1, 'integer', 0] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1449,7 +1449,7 @@ ArrayModel.prototype.getIntInvalidString = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1497,10 +1497,10 @@ ArrayModel.prototype.getIntInvalidString = function (options, callback) { * Get integer array value [1, -1, 3, 300] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1568,7 +1568,7 @@ ArrayModel.prototype.getLongValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1616,12 +1616,12 @@ ArrayModel.prototype.getLongValid = function (options, callback) { * Set array value empty [1, -1, 3, 300] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1698,7 +1698,7 @@ ArrayModel.prototype.putLongValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -1729,7 +1729,7 @@ ArrayModel.prototype.putLongValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1747,10 +1747,10 @@ ArrayModel.prototype.putLongValid = function (arrayBody, options, callback) { * Get long array value [1, null, 0] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1818,7 +1818,7 @@ ArrayModel.prototype.getLongInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1866,10 +1866,10 @@ ArrayModel.prototype.getLongInvalidNull = function (options, callback) { * Get long array value [1, 'integer', 0] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1937,7 +1937,7 @@ ArrayModel.prototype.getLongInvalidString = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1985,10 +1985,10 @@ ArrayModel.prototype.getLongInvalidString = function (options, callback) { * Get float array value [0, -0.01, 1.2e20] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2056,7 +2056,7 @@ ArrayModel.prototype.getFloatValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2104,12 +2104,12 @@ ArrayModel.prototype.getFloatValid = function (options, callback) { * Set array value [0, -0.01, 1.2e20] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2186,7 +2186,7 @@ ArrayModel.prototype.putFloatValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -2217,7 +2217,7 @@ ArrayModel.prototype.putFloatValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2235,10 +2235,10 @@ ArrayModel.prototype.putFloatValid = function (arrayBody, options, callback) { * Get float array value [0.0, null, -1.2e20] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2306,7 +2306,7 @@ ArrayModel.prototype.getFloatInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2354,10 +2354,10 @@ ArrayModel.prototype.getFloatInvalidNull = function (options, callback) { * Get boolean array value [1.0, 'number', 0.0] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2425,7 +2425,7 @@ ArrayModel.prototype.getFloatInvalidString = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2473,10 +2473,10 @@ ArrayModel.prototype.getFloatInvalidString = function (options, callback) { * Get float array value [0, -0.01, 1.2e20] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2544,7 +2544,7 @@ ArrayModel.prototype.getDoubleValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2592,12 +2592,12 @@ ArrayModel.prototype.getDoubleValid = function (options, callback) { * Set array value [0, -0.01, 1.2e20] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2674,7 +2674,7 @@ ArrayModel.prototype.putDoubleValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -2705,7 +2705,7 @@ ArrayModel.prototype.putDoubleValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2723,10 +2723,10 @@ ArrayModel.prototype.putDoubleValid = function (arrayBody, options, callback) { * Get float array value [0.0, null, -1.2e20] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2794,7 +2794,7 @@ ArrayModel.prototype.getDoubleInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2842,10 +2842,10 @@ ArrayModel.prototype.getDoubleInvalidNull = function (options, callback) { * Get boolean array value [1.0, 'number', 0.0] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2913,7 +2913,7 @@ ArrayModel.prototype.getDoubleInvalidString = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2961,10 +2961,10 @@ ArrayModel.prototype.getDoubleInvalidString = function (options, callback) { * Get string array value ['foo1', 'foo2', 'foo3'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3032,7 +3032,7 @@ ArrayModel.prototype.getStringValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3080,12 +3080,12 @@ ArrayModel.prototype.getStringValid = function (options, callback) { * Set array value ['foo1', 'foo2', 'foo3'] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3162,7 +3162,7 @@ ArrayModel.prototype.putStringValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -3193,7 +3193,7 @@ ArrayModel.prototype.putStringValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3211,10 +3211,10 @@ ArrayModel.prototype.putStringValid = function (arrayBody, options, callback) { * Get string array value ['foo', null, 'foo2'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3282,7 +3282,7 @@ ArrayModel.prototype.getStringWithNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3330,10 +3330,10 @@ ArrayModel.prototype.getStringWithNull = function (options, callback) { * Get string array value ['foo', 123, 'foo2'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3401,7 +3401,7 @@ ArrayModel.prototype.getStringWithInvalid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3451,10 +3451,10 @@ ArrayModel.prototype.getStringWithInvalid = function (options, callback) { * 'f42f6aa1-a5bc-4ddf-907e-5f915de43205'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3522,7 +3522,7 @@ ArrayModel.prototype.getUuidValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3572,12 +3572,12 @@ ArrayModel.prototype.getUuidValid = function (options, callback) { * 'f42f6aa1-a5bc-4ddf-907e-5f915de43205'] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3654,7 +3654,7 @@ ArrayModel.prototype.putUuidValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -3685,7 +3685,7 @@ ArrayModel.prototype.putUuidValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3703,10 +3703,10 @@ ArrayModel.prototype.putUuidValid = function (arrayBody, options, callback) { * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3774,7 +3774,7 @@ ArrayModel.prototype.getUuidInvalidChars = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3822,10 +3822,10 @@ ArrayModel.prototype.getUuidInvalidChars = function (options, callback) { * Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3893,7 +3893,7 @@ ArrayModel.prototype.getDateValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3941,12 +3941,12 @@ ArrayModel.prototype.getDateValid = function (options, callback) { * Set array value ['2000-12-01', '1980-01-02', '1492-10-12'] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3974,7 +3974,7 @@ ArrayModel.prototype.putDateValid = function (arrayBody, options, callback) { throw new Error('arrayBody cannot be null or undefined and it must be of type array.'); } for (var i = 0; i < arrayBody.length; i++) { - if (arrayBody[i] && !(arrayBody[i] instanceof Date || + if (arrayBody[i] && !(arrayBody[i] instanceof Date || (typeof arrayBody[i].valueOf() === 'string' && !isNaN(Date.parse(arrayBody[i]))))) { throw new Error('arrayBody[i] must be of type date.'); } @@ -4024,7 +4024,7 @@ ArrayModel.prototype.putDateValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -4055,7 +4055,7 @@ ArrayModel.prototype.putDateValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4073,10 +4073,10 @@ ArrayModel.prototype.putDateValid = function (arrayBody, options, callback) { * Get date array value ['2012-01-01', null, '1776-07-04'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4144,7 +4144,7 @@ ArrayModel.prototype.getDateInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4192,10 +4192,10 @@ ArrayModel.prototype.getDateInvalidNull = function (options, callback) { * Get date array value ['2011-03-22', 'date'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4263,7 +4263,7 @@ ArrayModel.prototype.getDateInvalidChars = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4312,10 +4312,10 @@ ArrayModel.prototype.getDateInvalidChars = function (options, callback) { * '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4383,7 +4383,7 @@ ArrayModel.prototype.getDateTimeValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4432,12 +4432,12 @@ ArrayModel.prototype.getDateTimeValid = function (options, callback) { * '1492-10-12T10:15:01-08:00'] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4465,7 +4465,7 @@ ArrayModel.prototype.putDateTimeValid = function (arrayBody, options, callback) throw new Error('arrayBody cannot be null or undefined and it must be of type array.'); } for (var i = 0; i < arrayBody.length; i++) { - if (arrayBody[i] && !(arrayBody[i] instanceof Date || + if (arrayBody[i] && !(arrayBody[i] instanceof Date || (typeof arrayBody[i].valueOf() === 'string' && !isNaN(Date.parse(arrayBody[i]))))) { throw new Error('arrayBody[i] must be of type date.'); } @@ -4515,7 +4515,7 @@ ArrayModel.prototype.putDateTimeValid = function (arrayBody, options, callback) requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -4546,7 +4546,7 @@ ArrayModel.prototype.putDateTimeValid = function (arrayBody, options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4564,10 +4564,10 @@ ArrayModel.prototype.putDateTimeValid = function (arrayBody, options, callback) * Get date array value ['2000-12-01t00:00:01z', null] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4635,7 +4635,7 @@ ArrayModel.prototype.getDateTimeInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4683,10 +4683,10 @@ ArrayModel.prototype.getDateTimeInvalidNull = function (options, callback) { * Get date array value ['2000-12-01t00:00:01z', 'date-time'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4754,7 +4754,7 @@ ArrayModel.prototype.getDateTimeInvalidChars = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4803,10 +4803,10 @@ ArrayModel.prototype.getDateTimeInvalidChars = function (options, callback) { * 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4874,7 +4874,7 @@ ArrayModel.prototype.getDateTimeRfc1123Valid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4923,12 +4923,12 @@ ArrayModel.prototype.getDateTimeRfc1123Valid = function (options, callback) { * 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT'] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4956,7 +4956,7 @@ ArrayModel.prototype.putDateTimeRfc1123Valid = function (arrayBody, options, cal throw new Error('arrayBody cannot be null or undefined and it must be of type array.'); } for (var i = 0; i < arrayBody.length; i++) { - if (arrayBody[i] && !(arrayBody[i] instanceof Date || + if (arrayBody[i] && !(arrayBody[i] instanceof Date || (typeof arrayBody[i].valueOf() === 'string' && !isNaN(Date.parse(arrayBody[i]))))) { throw new Error('arrayBody[i] must be of type date.'); } @@ -5006,7 +5006,7 @@ ArrayModel.prototype.putDateTimeRfc1123Valid = function (arrayBody, options, cal requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -5037,7 +5037,7 @@ ArrayModel.prototype.putDateTimeRfc1123Valid = function (arrayBody, options, cal error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5055,10 +5055,10 @@ ArrayModel.prototype.putDateTimeRfc1123Valid = function (arrayBody, options, cal * Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5126,7 +5126,7 @@ ArrayModel.prototype.getDurationValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5174,12 +5174,12 @@ ArrayModel.prototype.getDurationValid = function (options, callback) { * Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S'] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5256,7 +5256,7 @@ ArrayModel.prototype.putDurationValid = function (arrayBody, options, callback) requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -5287,7 +5287,7 @@ ArrayModel.prototype.putDurationValid = function (arrayBody, options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5306,10 +5306,10 @@ ArrayModel.prototype.putDurationValid = function (arrayBody, options, callback) * with each item encoded in base64 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5377,7 +5377,7 @@ ArrayModel.prototype.getByteValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5426,12 +5426,12 @@ ArrayModel.prototype.getByteValid = function (options, callback) { * each elementencoded in base 64 * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5508,7 +5508,7 @@ ArrayModel.prototype.putByteValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -5539,7 +5539,7 @@ ArrayModel.prototype.putByteValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5558,10 +5558,10 @@ ArrayModel.prototype.putByteValid = function (arrayBody, options, callback) { * encoded * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5629,7 +5629,7 @@ ArrayModel.prototype.getByteInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5678,10 +5678,10 @@ ArrayModel.prototype.getByteInvalidNull = function (options, callback) { * 'Lorem ipsum'] with the items base64url encoded * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5749,7 +5749,7 @@ ArrayModel.prototype.getBase64Url = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5797,10 +5797,10 @@ ArrayModel.prototype.getBase64Url = function (options, callback) { * Get array of complex type null value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5868,7 +5868,7 @@ ArrayModel.prototype.getComplexNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5917,10 +5917,10 @@ ArrayModel.prototype.getComplexNull = function (options, callback) { * Get empty array of complex type [] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5988,7 +5988,7 @@ ArrayModel.prototype.getComplexEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6038,10 +6038,10 @@ ArrayModel.prototype.getComplexEmpty = function (options, callback) { * null, {'integer': 5, 'string': '6'}] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6109,7 +6109,7 @@ ArrayModel.prototype.getComplexItemNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6159,10 +6159,10 @@ ArrayModel.prototype.getComplexItemNull = function (options, callback) { * {'integer': 5, 'string': '6'}] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6230,7 +6230,7 @@ ArrayModel.prototype.getComplexItemEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6280,10 +6280,10 @@ ArrayModel.prototype.getComplexItemEmpty = function (options, callback) { * 'string': '4'}, {'integer': 5, 'string': '6'}] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6351,7 +6351,7 @@ ArrayModel.prototype.getComplexValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6401,12 +6401,12 @@ ArrayModel.prototype.getComplexValid = function (options, callback) { * {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6471,7 +6471,7 @@ ArrayModel.prototype.putComplexValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -6502,7 +6502,7 @@ ArrayModel.prototype.putComplexValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6520,10 +6520,10 @@ ArrayModel.prototype.putComplexValid = function (arrayBody, options, callback) { * Get a null array * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6591,7 +6591,7 @@ ArrayModel.prototype.getArrayNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6646,10 +6646,10 @@ ArrayModel.prototype.getArrayNull = function (options, callback) { * Get an empty array [] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6717,7 +6717,7 @@ ArrayModel.prototype.getArrayEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6772,10 +6772,10 @@ ArrayModel.prototype.getArrayEmpty = function (options, callback) { * Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6843,7 +6843,7 @@ ArrayModel.prototype.getArrayItemNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6898,10 +6898,10 @@ ArrayModel.prototype.getArrayItemNull = function (options, callback) { * Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6969,7 +6969,7 @@ ArrayModel.prototype.getArrayItemEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7025,10 +7025,10 @@ ArrayModel.prototype.getArrayItemEmpty = function (options, callback) { * '8', '9']] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7096,7 +7096,7 @@ ArrayModel.prototype.getArrayValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7152,12 +7152,12 @@ ArrayModel.prototype.getArrayValid = function (options, callback) { * '8', '9']] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7245,7 +7245,7 @@ ArrayModel.prototype.putArrayValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -7276,7 +7276,7 @@ ArrayModel.prototype.putArrayValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7294,10 +7294,10 @@ ArrayModel.prototype.putArrayValid = function (arrayBody, options, callback) { * Get an array of Dictionaries with value null * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7365,7 +7365,7 @@ ArrayModel.prototype.getDictionaryNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7420,10 +7420,10 @@ ArrayModel.prototype.getDictionaryNull = function (options, callback) { * Get an array of Dictionaries of type with value [] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7491,7 +7491,7 @@ ArrayModel.prototype.getDictionaryEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7548,10 +7548,10 @@ ArrayModel.prototype.getDictionaryEmpty = function (options, callback) { * 'nine'}] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7619,7 +7619,7 @@ ArrayModel.prototype.getDictionaryItemNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7676,10 +7676,10 @@ ArrayModel.prototype.getDictionaryItemNull = function (options, callback) { * 'nine'}] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7747,7 +7747,7 @@ ArrayModel.prototype.getDictionaryItemEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7804,10 +7804,10 @@ ArrayModel.prototype.getDictionaryItemEmpty = function (options, callback) { * {'7': 'seven', '8': 'eight', '9': 'nine'}] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7875,7 +7875,7 @@ ArrayModel.prototype.getDictionaryValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7932,12 +7932,12 @@ ArrayModel.prototype.getDictionaryValid = function (options, callback) { * {'7': 'seven', '8': 'eight', '9': 'nine'}] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -8025,7 +8025,7 @@ ArrayModel.prototype.putDictionaryValid = function (arrayBody, options, callback requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -8056,7 +8056,7 @@ ArrayModel.prototype.putDictionaryValid = function (arrayBody, options, callback error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/operations/index.d.ts index fd3717d799..bac0ebfdc4 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -25,10 +25,10 @@ export interface ArrayModel { * Get null array value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -39,10 +39,10 @@ export interface ArrayModel { * Get invalid array [1, 2, 3 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -53,10 +53,10 @@ export interface ArrayModel { * Get empty array value [] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -67,12 +67,12 @@ export interface ArrayModel { * Set array value empty [] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -83,10 +83,10 @@ export interface ArrayModel { * Get boolean array value [true, false, false, true] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -97,12 +97,12 @@ export interface ArrayModel { * Set array value empty [true, false, false, true] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -113,10 +113,10 @@ export interface ArrayModel { * Get boolean array value [true, null, false] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -127,10 +127,10 @@ export interface ArrayModel { * Get boolean array value [true, 'boolean', false] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -141,10 +141,10 @@ export interface ArrayModel { * Get integer array value [1, -1, 3, 300] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -155,12 +155,12 @@ export interface ArrayModel { * Set array value empty [1, -1, 3, 300] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -171,10 +171,10 @@ export interface ArrayModel { * Get integer array value [1, null, 0] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -185,10 +185,10 @@ export interface ArrayModel { * Get integer array value [1, 'integer', 0] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -199,10 +199,10 @@ export interface ArrayModel { * Get integer array value [1, -1, 3, 300] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -213,12 +213,12 @@ export interface ArrayModel { * Set array value empty [1, -1, 3, 300] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -229,10 +229,10 @@ export interface ArrayModel { * Get long array value [1, null, 0] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -243,10 +243,10 @@ export interface ArrayModel { * Get long array value [1, 'integer', 0] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -257,10 +257,10 @@ export interface ArrayModel { * Get float array value [0, -0.01, 1.2e20] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -271,12 +271,12 @@ export interface ArrayModel { * Set array value [0, -0.01, 1.2e20] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -287,10 +287,10 @@ export interface ArrayModel { * Get float array value [0.0, null, -1.2e20] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -301,10 +301,10 @@ export interface ArrayModel { * Get boolean array value [1.0, 'number', 0.0] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -315,10 +315,10 @@ export interface ArrayModel { * Get float array value [0, -0.01, 1.2e20] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -329,12 +329,12 @@ export interface ArrayModel { * Set array value [0, -0.01, 1.2e20] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -345,10 +345,10 @@ export interface ArrayModel { * Get float array value [0.0, null, -1.2e20] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -359,10 +359,10 @@ export interface ArrayModel { * Get boolean array value [1.0, 'number', 0.0] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -373,10 +373,10 @@ export interface ArrayModel { * Get string array value ['foo1', 'foo2', 'foo3'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -387,12 +387,12 @@ export interface ArrayModel { * Set array value ['foo1', 'foo2', 'foo3'] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -403,10 +403,10 @@ export interface ArrayModel { * Get string array value ['foo', null, 'foo2'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -417,10 +417,10 @@ export interface ArrayModel { * Get string array value ['foo', 123, 'foo2'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -433,10 +433,10 @@ export interface ArrayModel { * 'f42f6aa1-a5bc-4ddf-907e-5f915de43205'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -449,12 +449,12 @@ export interface ArrayModel { * 'f42f6aa1-a5bc-4ddf-907e-5f915de43205'] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -465,10 +465,10 @@ export interface ArrayModel { * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -479,10 +479,10 @@ export interface ArrayModel { * Get integer array value ['2000-12-01', '1980-01-02', '1492-10-12'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -493,12 +493,12 @@ export interface ArrayModel { * Set array value ['2000-12-01', '1980-01-02', '1492-10-12'] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -509,10 +509,10 @@ export interface ArrayModel { * Get date array value ['2012-01-01', null, '1776-07-04'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -523,10 +523,10 @@ export interface ArrayModel { * Get date array value ['2011-03-22', 'date'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -538,10 +538,10 @@ export interface ArrayModel { * '1980-01-02T00:11:35+01:00', '1492-10-12T10:15:01-08:00'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -553,12 +553,12 @@ export interface ArrayModel { * '1492-10-12T10:15:01-08:00'] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -569,10 +569,10 @@ export interface ArrayModel { * Get date array value ['2000-12-01t00:00:01z', null] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -583,10 +583,10 @@ export interface ArrayModel { * Get date array value ['2000-12-01t00:00:01z', 'date-time'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -598,10 +598,10 @@ export interface ArrayModel { * 1980 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -613,12 +613,12 @@ export interface ArrayModel { * 00:11:35 GMT', 'Wed, 12 Oct 1492 10:15:01 GMT'] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -629,10 +629,10 @@ export interface ArrayModel { * Get duration array value ['P123DT22H14M12.011S', 'P5DT1H0M0S'] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -643,12 +643,12 @@ export interface ArrayModel { * Set array value ['P123DT22H14M12.011S', 'P5DT1H0M0S'] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -660,10 +660,10 @@ export interface ArrayModel { * with each item encoded in base64 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -675,12 +675,12 @@ export interface ArrayModel { * each elementencoded in base 64 * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -692,10 +692,10 @@ export interface ArrayModel { * encoded * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -707,10 +707,10 @@ export interface ArrayModel { * 'Lorem ipsum'] with the items base64url encoded * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -721,10 +721,10 @@ export interface ArrayModel { * Get array of complex type null value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -735,10 +735,10 @@ export interface ArrayModel { * Get empty array of complex type [] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -750,10 +750,10 @@ export interface ArrayModel { * null, {'integer': 5, 'string': '6'}] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -765,10 +765,10 @@ export interface ArrayModel { * {'integer': 5, 'string': '6'}] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -780,10 +780,10 @@ export interface ArrayModel { * 'string': '4'}, {'integer': 5, 'string': '6'}] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -795,12 +795,12 @@ export interface ArrayModel { * {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -811,10 +811,10 @@ export interface ArrayModel { * Get a null array * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -825,10 +825,10 @@ export interface ArrayModel { * Get an empty array [] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -839,10 +839,10 @@ export interface ArrayModel { * Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -853,10 +853,10 @@ export interface ArrayModel { * Get an array of array of strings [['1', '2', '3'], [], ['7', '8', '9']] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -868,10 +868,10 @@ export interface ArrayModel { * '8', '9']] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -883,12 +883,12 @@ export interface ArrayModel { * '8', '9']] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -899,10 +899,10 @@ export interface ArrayModel { * Get an array of Dictionaries with value null * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -913,10 +913,10 @@ export interface ArrayModel { * Get an array of Dictionaries of type with value [] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -929,10 +929,10 @@ export interface ArrayModel { * 'nine'}] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -945,10 +945,10 @@ export interface ArrayModel { * 'nine'}] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -961,10 +961,10 @@ export interface ArrayModel { * {'7': 'seven', '8': 'eight', '9': 'nine'}] * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -977,12 +977,12 @@ export interface ArrayModel { * {'7': 'seven', '8': 'eight', '9': 'nine'}] * * @param {array} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/operations/index.js index 847d20e072..367125e9e3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyArray/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/autoRestBoolTestService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/autoRestBoolTestService.d.ts index a2b3343239..8cfda69f93 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/autoRestBoolTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/autoRestBoolTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/autoRestBoolTestService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/autoRestBoolTestService.js index 7e2dd6e33f..28a92920b2 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/autoRestBoolTestService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/autoRestBoolTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/operations/bool.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/operations/bool.js index e24695c478..f1fb3454e9 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/operations/bool.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/operations/bool.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function Bool(client) { * Get true Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -103,7 +103,7 @@ Bool.prototype.getTrue = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -144,12 +144,12 @@ Bool.prototype.getTrue = function (options, callback) { * Set Boolean value true * * @param {boolean} boolBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -214,7 +214,7 @@ Bool.prototype.putTrue = function (boolBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(boolBody, {depth: null}))); return callback(serializationError); } @@ -245,7 +245,7 @@ Bool.prototype.putTrue = function (boolBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -263,10 +263,10 @@ Bool.prototype.putTrue = function (boolBody, options, callback) { * Get false Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -334,7 +334,7 @@ Bool.prototype.getFalse = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -375,12 +375,12 @@ Bool.prototype.getFalse = function (options, callback) { * Set Boolean value false * * @param {boolean} boolBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -445,7 +445,7 @@ Bool.prototype.putFalse = function (boolBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(boolBody, {depth: null}))); return callback(serializationError); } @@ -476,7 +476,7 @@ Bool.prototype.putFalse = function (boolBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -494,10 +494,10 @@ Bool.prototype.putFalse = function (boolBody, options, callback) { * Get null Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -565,7 +565,7 @@ Bool.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -606,10 +606,10 @@ Bool.prototype.getNull = function (options, callback) { * Get invalid Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -677,7 +677,7 @@ Bool.prototype.getInvalid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/operations/index.d.ts index ee748db327..1f6630cdfc 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,10 +24,10 @@ export interface Bool { * Get true Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -38,12 +38,12 @@ export interface Bool { * Set Boolean value true * * @param {boolean} boolBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -54,10 +54,10 @@ export interface Bool { * Get false Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -68,12 +68,12 @@ export interface Bool { * Set Boolean value false * * @param {boolean} boolBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -84,10 +84,10 @@ export interface Bool { * Get null Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -98,10 +98,10 @@ export interface Bool { * Get invalid Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/operations/index.js index f08d6e0f66..38fa852ec3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyBoolean/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/autoRestSwaggerBATByteService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/autoRestSwaggerBATByteService.d.ts index 9abbbc26e8..b949767af6 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/autoRestSwaggerBATByteService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/autoRestSwaggerBATByteService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/autoRestSwaggerBATByteService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/autoRestSwaggerBATByteService.js index a0c9902ceb..0bc7ac4991 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/autoRestSwaggerBATByteService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/autoRestSwaggerBATByteService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/operations/byteModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/operations/byteModel.js index 79f9568458..4d5cdcd5a5 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/operations/byteModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/operations/byteModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function ByteModel(client) { * Get null byte value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -103,7 +103,7 @@ ByteModel.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -144,10 +144,10 @@ ByteModel.prototype.getNull = function (options, callback) { * Get empty byte value '' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -215,7 +215,7 @@ ByteModel.prototype.getEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -256,10 +256,10 @@ ByteModel.prototype.getEmpty = function (options, callback) { * Get non-ascii byte string hex(FF FE FD FC FB FA F9 F8 F7 F6) * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -327,7 +327,7 @@ ByteModel.prototype.getNonAscii = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -369,12 +369,12 @@ ByteModel.prototype.getNonAscii = function (options, callback) { * * @param {buffer} byteBody Base64-encoded non-ascii byte string hex(FF FE FD * FC FB FA F9 F8 F7 F6) - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -439,7 +439,7 @@ ByteModel.prototype.putNonAscii = function (byteBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(byteBody, {depth: null}))); return callback(serializationError); } @@ -470,7 +470,7 @@ ByteModel.prototype.putNonAscii = function (byteBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -488,10 +488,10 @@ ByteModel.prototype.putNonAscii = function (byteBody, options, callback) { * Get invalid byte value ':::SWAGGER::::' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -559,7 +559,7 @@ ByteModel.prototype.getInvalid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/operations/index.d.ts index b3447c54bd..375b4ea3ae 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,10 +24,10 @@ export interface ByteModel { * Get null byte value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -38,10 +38,10 @@ export interface ByteModel { * Get empty byte value '' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -52,10 +52,10 @@ export interface ByteModel { * Get non-ascii byte string hex(FF FE FD FC FB FA F9 F8 F7 F6) * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -67,12 +67,12 @@ export interface ByteModel { * * @param {buffer} byteBody Base64-encoded non-ascii byte string hex(FF FE FD * FC FB FA F9 F8 F7 F6) - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -83,10 +83,10 @@ export interface ByteModel { * Get invalid byte value ':::SWAGGER::::' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/operations/index.js index 1e30b9ea66..ca6742f318 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyByte/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/autoRestComplexTestService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/autoRestComplexTestService.d.ts index 6de9115104..e9eaccfb8d 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/autoRestComplexTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/autoRestComplexTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/autoRestComplexTestService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/autoRestComplexTestService.js index a6419f5305..29696b6841 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/autoRestComplexTestService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/autoRestComplexTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/arrayWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/arrayWrapper.js index 313008a6a3..9535fa3848 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/arrayWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/arrayWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,7 +17,7 @@ var util = require('util'); * Initializes a new instance of the ArrayWrapper class. * @constructor * @member {array} [arrayProperty] - * + * */ function ArrayWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/basic.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/basic.js index 981c65a70c..c53d4fda19 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/basic.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/basic.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,15 +15,15 @@ * Initializes a new instance of the Basic class. * @constructor * @member {number} [id] Basic Id - * + * * @member {string} [name] Name property with a very * long description that * does not fit on a single line * and a line break. - * + * * @member {string} [color] Possible values include: 'cyan', 'Magenta', * 'YELLOW', 'blacK' - * + * */ function Basic() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/booleanWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/booleanWrapper.js index ea931716e6..a55f4d69b9 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/booleanWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/booleanWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the BooleanWrapper class. * @constructor * @member {boolean} [fieldTrue] - * + * * @member {boolean} [fieldFalse] - * + * */ function BooleanWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/byteWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/byteWrapper.js index f39f81c6e4..04a0b12015 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/byteWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/byteWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the ByteWrapper class. * @constructor * @member {buffer} [field] - * + * */ function ByteWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/cat.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/cat.js index c3530c4ac8..fd6cc2b83b 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/cat.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/cat.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,9 +19,9 @@ var util = require('util'); * Initializes a new instance of the Cat class. * @constructor * @member {string} [color] - * + * * @member {array} [hates] - * + * */ function Cat() { Cat['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/cookiecuttershark.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/cookiecuttershark.js index 8f6e44d948..12b5babb9c 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/cookiecuttershark.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/cookiecuttershark.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/dateWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/dateWrapper.js index 8488857a98..09cdf6ed78 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/dateWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/dateWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the DateWrapper class. * @constructor * @member {date} [field] - * + * * @member {date} [leap] - * + * */ function DateWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/datetimeWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/datetimeWrapper.js index 5b64d72f08..866833ecde 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/datetimeWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/datetimeWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the DatetimeWrapper class. * @constructor * @member {date} [field] - * + * * @member {date} [now] - * + * */ function DatetimeWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/datetimerfc1123Wrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/datetimerfc1123Wrapper.js index fd6e1cd9ad..6b5b57337f 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/datetimerfc1123Wrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/datetimerfc1123Wrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the Datetimerfc1123Wrapper class. * @constructor * @member {date} [field] - * + * * @member {date} [now] - * + * */ function Datetimerfc1123Wrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/dictionaryWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/dictionaryWrapper.js index ab1841ea1d..bdf7679c0a 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/dictionaryWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/dictionaryWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the DictionaryWrapper class. * @constructor * @member {object} [defaultProgram] - * + * */ function DictionaryWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/dog.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/dog.js index a47364438b..5c431006e3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/dog.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/dog.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the Dog class. * @constructor * @member {string} [food] - * + * */ function Dog() { Dog['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/doubleWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/doubleWrapper.js index 5f259eb5bd..1adc89e12e 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/doubleWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/doubleWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,10 +15,10 @@ * Initializes a new instance of the DoubleWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} * [field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose] - * + * */ function DoubleWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/durationWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/durationWrapper.js index 05c4a93c4a..bc541aabf0 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/durationWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/durationWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the DurationWrapper class. * @constructor * @member {moment.duration} [field] - * + * */ function DurationWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/fish.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/fish.js index a3293cecab..8ad575c13d 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/fish.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/fish.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,13 +19,13 @@ var util = require('util'); * Initializes a new instance of the Fish class. * @constructor * @member {string} [species] - * + * * @member {number} length - * + * * @member {array} [siblings] - * + * * @member {string} fishtype Polymorphic Discriminator - * + * */ function Fish() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/floatWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/floatWrapper.js index c334044dea..38ff248fd2 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/floatWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/floatWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the FloatWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} [field2] - * + * */ function FloatWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/goblinshark.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/goblinshark.js index 7de237bd4b..ef27632afd 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/goblinshark.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/goblinshark.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the Goblinshark class. * @constructor * @member {number} [jawsize] - * + * */ function Goblinshark() { Goblinshark['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/index.d.ts index 21c9289c45..bb19f06d05 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; @@ -28,15 +28,15 @@ export interface ErrorModel { * Initializes a new instance of the Basic class. * @constructor * @member {number} [id] Basic Id - * + * * @member {string} [name] Name property with a very * long description that * does not fit on a single line * and a line break. - * + * * @member {string} [color] Possible values include: 'cyan', 'Magenta', * 'YELLOW', 'blacK' - * + * */ export interface Basic { id?: number; @@ -49,9 +49,9 @@ export interface Basic { * Initializes a new instance of the Pet class. * @constructor * @member {number} [id] - * + * * @member {string} [name] - * + * */ export interface Pet { id?: number; @@ -60,27 +60,27 @@ export interface Pet { /** * @class - * Initializes a new instance of the Cat class. + * Initializes a new instance of the Dog class. * @constructor - * @member {string} [color] - * - * @member {array} [hates] - * + * @member {string} [food] + * */ -export interface Cat extends Pet { - color?: string; - hates?: Dog[]; +export interface Dog extends Pet { + food?: string; } /** * @class - * Initializes a new instance of the Dog class. + * Initializes a new instance of the Cat class. * @constructor - * @member {string} [food] - * + * @member {string} [color] + * + * @member {array} [hates] + * */ -export interface Dog extends Pet { - food?: string; +export interface Cat extends Pet { + color?: string; + hates?: Dog[]; } /** @@ -88,7 +88,7 @@ export interface Dog extends Pet { * Initializes a new instance of the Siamese class. * @constructor * @member {string} [breed] - * + * */ export interface Siamese extends Cat { breed?: string; @@ -99,13 +99,13 @@ export interface Siamese extends Cat { * Initializes a new instance of the Fish class. * @constructor * @member {string} [species] - * + * * @member {number} length - * + * * @member {array} [siblings] - * + * * @member {string} fishtype Polymorphic Discriminator - * + * */ export interface Fish { species?: string; @@ -119,9 +119,9 @@ export interface Fish { * Initializes a new instance of the Salmon class. * @constructor * @member {string} [location] - * + * * @member {boolean} [iswild] - * + * */ export interface Salmon extends Fish { location?: string; @@ -133,9 +133,9 @@ export interface Salmon extends Fish { * Initializes a new instance of the Shark class. * @constructor * @member {number} [age] - * + * * @member {date} birthday - * + * */ export interface Shark extends Fish { age?: number; @@ -147,7 +147,7 @@ export interface Shark extends Fish { * Initializes a new instance of the Sawshark class. * @constructor * @member {buffer} [picture] - * + * */ export interface Sawshark extends Shark { picture?: Buffer; @@ -158,7 +158,7 @@ export interface Sawshark extends Shark { * Initializes a new instance of the Goblinshark class. * @constructor * @member {number} [jawsize] - * + * */ export interface Goblinshark extends Shark { jawsize?: number; @@ -177,9 +177,9 @@ export interface Cookiecuttershark extends Shark { * Initializes a new instance of the IntWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} [field2] - * + * */ export interface IntWrapper { field1?: number; @@ -191,9 +191,9 @@ export interface IntWrapper { * Initializes a new instance of the LongWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} [field2] - * + * */ export interface LongWrapper { field1?: number; @@ -205,9 +205,9 @@ export interface LongWrapper { * Initializes a new instance of the FloatWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} [field2] - * + * */ export interface FloatWrapper { field1?: number; @@ -219,10 +219,10 @@ export interface FloatWrapper { * Initializes a new instance of the DoubleWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} * [field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose] - * + * */ export interface DoubleWrapper { field1?: number; @@ -234,9 +234,9 @@ export interface DoubleWrapper { * Initializes a new instance of the BooleanWrapper class. * @constructor * @member {boolean} [fieldTrue] - * + * * @member {boolean} [fieldFalse] - * + * */ export interface BooleanWrapper { fieldTrue?: boolean; @@ -248,11 +248,11 @@ export interface BooleanWrapper { * Initializes a new instance of the StringWrapper class. * @constructor * @member {string} [field] - * + * * @member {string} [empty] - * + * * @member {string} [nullProperty] - * + * */ export interface StringWrapper { field?: string; @@ -265,9 +265,9 @@ export interface StringWrapper { * Initializes a new instance of the DateWrapper class. * @constructor * @member {date} [field] - * + * * @member {date} [leap] - * + * */ export interface DateWrapper { field?: Date; @@ -279,9 +279,9 @@ export interface DateWrapper { * Initializes a new instance of the DatetimeWrapper class. * @constructor * @member {date} [field] - * + * * @member {date} [now] - * + * */ export interface DatetimeWrapper { field?: Date; @@ -293,9 +293,9 @@ export interface DatetimeWrapper { * Initializes a new instance of the Datetimerfc1123Wrapper class. * @constructor * @member {date} [field] - * + * * @member {date} [now] - * + * */ export interface Datetimerfc1123Wrapper { field?: Date; @@ -307,7 +307,7 @@ export interface Datetimerfc1123Wrapper { * Initializes a new instance of the DurationWrapper class. * @constructor * @member {moment.duration} [field] - * + * */ export interface DurationWrapper { field?: moment.Duration; @@ -318,7 +318,7 @@ export interface DurationWrapper { * Initializes a new instance of the ByteWrapper class. * @constructor * @member {buffer} [field] - * + * */ export interface ByteWrapper { field?: Buffer; @@ -329,7 +329,7 @@ export interface ByteWrapper { * Initializes a new instance of the ArrayWrapper class. * @constructor * @member {array} [arrayProperty] - * + * */ export interface ArrayWrapper { arrayProperty?: string[]; @@ -340,7 +340,7 @@ export interface ArrayWrapper { * Initializes a new instance of the DictionaryWrapper class. * @constructor * @member {object} [defaultProgram] - * + * */ export interface DictionaryWrapper { defaultProgram?: { [propertyName: string]: string }; @@ -351,9 +351,9 @@ export interface DictionaryWrapper { * Initializes a new instance of the ReadonlyObj class. * @constructor * @member {string} [id] - * + * * @member {number} [size] - * + * */ export interface ReadonlyObj { id?: string; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/index.js index 04236ebdd7..07f20f627b 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,8 +17,8 @@ exports.ErrorModel = require('./errorModel'); exports.Basic = require('./basic'); exports.Pet = require('./pet'); -exports.Cat = require('./cat'); exports.Dog = require('./dog'); +exports.Cat = require('./cat'); exports.Siamese = require('./siamese'); exports.Fish = require('./fish'); exports.Salmon = require('./salmon'); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/intWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/intWrapper.js index a72efcd188..14bf3b59e7 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/intWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/intWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the IntWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} [field2] - * + * */ function IntWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/longWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/longWrapper.js index b314f11a86..ae9bb45f3b 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/longWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/longWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the LongWrapper class. * @constructor * @member {number} [field1] - * + * * @member {number} [field2] - * + * */ function LongWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/pet.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/pet.js index 3fd621f05c..3de90f91cf 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/pet.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/pet.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the Pet class. * @constructor * @member {number} [id] - * + * * @member {string} [name] - * + * */ function Pet() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/readonlyObj.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/readonlyObj.js index 00604d6a3c..0d1732625d 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/readonlyObj.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/readonlyObj.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ReadonlyObj class. * @constructor * @member {string} [id] - * + * * @member {number} [size] - * + * */ function ReadonlyObj() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/salmon.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/salmon.js index 8772d6eb83..b64564da4e 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/salmon.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/salmon.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,9 +19,9 @@ var util = require('util'); * Initializes a new instance of the Salmon class. * @constructor * @member {string} [location] - * + * * @member {boolean} [iswild] - * + * */ function Salmon() { Salmon['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/sawshark.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/sawshark.js index 06bac75eec..2e5ddeaba3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/sawshark.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/sawshark.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the Sawshark class. * @constructor * @member {buffer} [picture] - * + * */ function Sawshark() { Sawshark['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/shark.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/shark.js index e9fc9da095..a0ad9502ad 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/shark.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/shark.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,9 +19,9 @@ var util = require('util'); * Initializes a new instance of the Shark class. * @constructor * @member {number} [age] - * + * * @member {date} birthday - * + * */ function Shark() { Shark['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/siamese.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/siamese.js index 54eee4629a..34430228d7 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/siamese.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/siamese.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the Siamese class. * @constructor * @member {string} [breed] - * + * */ function Siamese() { Siamese['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/stringWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/stringWrapper.js index b435027854..7ce943ddfd 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/stringWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/models/stringWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,11 +15,11 @@ * Initializes a new instance of the StringWrapper class. * @constructor * @member {string} [field] - * + * * @member {string} [empty] - * + * * @member {string} [nullProperty] - * + * */ function StringWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/arrayModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/arrayModel.js index a62f5d2d34..0c37f03356 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/arrayModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/arrayModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function ArrayModel(client) { * Get complex types with array property * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -104,7 +104,7 @@ ArrayModel.prototype.getValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -139,12 +139,12 @@ ArrayModel.prototype.getValid = function (options, callback) { * Put complex types with array property * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayProperty] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -213,7 +213,7 @@ ArrayModel.prototype.putValid = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -244,7 +244,7 @@ ArrayModel.prototype.putValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -262,10 +262,10 @@ ArrayModel.prototype.putValid = function (options, callback) { * Get complex types with array property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -334,7 +334,7 @@ ArrayModel.prototype.getEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -369,12 +369,12 @@ ArrayModel.prototype.getEmpty = function (options, callback) { * Put complex types with array property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayProperty] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -443,7 +443,7 @@ ArrayModel.prototype.putEmpty = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -474,7 +474,7 @@ ArrayModel.prototype.putEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -493,10 +493,10 @@ ArrayModel.prototype.putEmpty = function (options, callback) { * response payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -565,7 +565,7 @@ ArrayModel.prototype.getNotProvided = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/basicOperations.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/basicOperations.js index f41365cd4e..93ffbbf881 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/basicOperations.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/basicOperations.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function BasicOperations(client) { * Get complex type {id: 2, name: 'abc', color: 'YELLOW'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -104,7 +104,7 @@ BasicOperations.prototype.getValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -140,22 +140,22 @@ BasicOperations.prototype.getValid = function (options, callback) { * * @param {object} complexBody Please put {id: 2, name: 'abc', color: * 'Magenta'} - * + * * @param {number} [complexBody.id] Basic Id - * + * * @param {string} [complexBody.name] Name property with a very * long description that * does not fit on a single line * and a line break. - * + * * @param {string} [complexBody.color] Possible values include: 'cyan', * 'Magenta', 'YELLOW', 'blacK' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -219,7 +219,7 @@ BasicOperations.prototype.putValid = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -250,7 +250,7 @@ BasicOperations.prototype.putValid = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -268,10 +268,10 @@ BasicOperations.prototype.putValid = function (complexBody, options, callback) { * Get a basic complex type that is invalid for the local strong type * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -340,7 +340,7 @@ BasicOperations.prototype.getInvalid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -375,10 +375,10 @@ BasicOperations.prototype.getInvalid = function (options, callback) { * Get a basic complex type that is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -447,7 +447,7 @@ BasicOperations.prototype.getEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -482,10 +482,10 @@ BasicOperations.prototype.getEmpty = function (options, callback) { * Get a basic complex type whose properties are null * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -554,7 +554,7 @@ BasicOperations.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -589,10 +589,10 @@ BasicOperations.prototype.getNull = function (options, callback) { * Get a basic complex type while the server doesn't provide a response payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -661,7 +661,7 @@ BasicOperations.prototype.getNotProvided = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/dictionary.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/dictionary.js index 1a30ba4394..02437f241b 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/dictionary.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/dictionary.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function Dictionary(client) { * Get complex types with dictionary property * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -104,7 +104,7 @@ Dictionary.prototype.getValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -139,12 +139,12 @@ Dictionary.prototype.getValid = function (options, callback) { * Put complex types with dictionary property * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.defaultProgram] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -213,7 +213,7 @@ Dictionary.prototype.putValid = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -244,7 +244,7 @@ Dictionary.prototype.putValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -262,10 +262,10 @@ Dictionary.prototype.putValid = function (options, callback) { * Get complex types with dictionary property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -334,7 +334,7 @@ Dictionary.prototype.getEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -369,12 +369,12 @@ Dictionary.prototype.getEmpty = function (options, callback) { * Put complex types with dictionary property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.defaultProgram] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -443,7 +443,7 @@ Dictionary.prototype.putEmpty = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -474,7 +474,7 @@ Dictionary.prototype.putEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -492,10 +492,10 @@ Dictionary.prototype.putEmpty = function (options, callback) { * Get complex types with dictionary property which is null * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -564,7 +564,7 @@ Dictionary.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -600,10 +600,10 @@ Dictionary.prototype.getNull = function (options, callback) { * response payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -672,7 +672,7 @@ Dictionary.prototype.getNotProvided = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/index.d.ts index ff137c5ba8..821a6e555a 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -25,10 +25,10 @@ export interface BasicOperations { * Get complex type {id: 2, name: 'abc', color: 'YELLOW'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -40,22 +40,22 @@ export interface BasicOperations { * * @param {object} complexBody Please put {id: 2, name: 'abc', color: * 'Magenta'} - * + * * @param {number} [complexBody.id] Basic Id - * + * * @param {string} [complexBody.name] Name property with a very * long description that * does not fit on a single line * and a line break. - * + * * @param {string} [complexBody.color] Possible values include: 'cyan', * 'Magenta', 'YELLOW', 'blacK' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -66,10 +66,10 @@ export interface BasicOperations { * Get a basic complex type that is invalid for the local strong type * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -80,10 +80,10 @@ export interface BasicOperations { * Get a basic complex type that is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -94,10 +94,10 @@ export interface BasicOperations { * Get a basic complex type whose properties are null * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -108,10 +108,10 @@ export interface BasicOperations { * Get a basic complex type while the server doesn't provide a response payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -131,10 +131,10 @@ export interface Primitive { * Get complex types with integer properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -145,16 +145,16 @@ export interface Primitive { * Put complex types with integer properties * * @param {object} complexBody Please put -1 and 2 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} [complexBody.field2] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -165,10 +165,10 @@ export interface Primitive { * Get complex types with long properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -179,16 +179,16 @@ export interface Primitive { * Put complex types with long properties * * @param {object} complexBody Please put 1099511627775 and -999511627788 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} [complexBody.field2] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -199,10 +199,10 @@ export interface Primitive { * Get complex types with float properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -213,16 +213,16 @@ export interface Primitive { * Put complex types with float properties * * @param {object} complexBody Please put 1.05 and -0.003 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} [complexBody.field2] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -233,10 +233,10 @@ export interface Primitive { * Get complex types with double properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -248,17 +248,17 @@ export interface Primitive { * * @param {object} complexBody Please put 3e-100 and * -0.000000000000000000000000000000000000000000000000000000005 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} * [complexBody.field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -269,10 +269,10 @@ export interface Primitive { * Get complex types with bool properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -283,16 +283,16 @@ export interface Primitive { * Put complex types with bool properties * * @param {object} complexBody Please put true and false - * + * * @param {boolean} [complexBody.fieldTrue] - * + * * @param {boolean} [complexBody.fieldFalse] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -303,10 +303,10 @@ export interface Primitive { * Get complex types with string properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -317,18 +317,18 @@ export interface Primitive { * Put complex types with string properties * * @param {object} complexBody Please put 'goodrequest', '', and null - * + * * @param {string} [complexBody.field] - * + * * @param {string} [complexBody.empty] - * + * * @param {string} [complexBody.nullProperty] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -339,10 +339,10 @@ export interface Primitive { * Get complex types with date properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -353,16 +353,16 @@ export interface Primitive { * Put complex types with date properties * * @param {object} complexBody Please put '0001-01-01' and '2016-02-29' - * + * * @param {date} [complexBody.field] - * + * * @param {date} [complexBody.leap] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -373,10 +373,10 @@ export interface Primitive { * Get complex types with datetime properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -388,16 +388,16 @@ export interface Primitive { * * @param {object} complexBody Please put '0001-01-01T12:00:00-04:00' and * '2015-05-18T11:38:00-08:00' - * + * * @param {date} [complexBody.field] - * + * * @param {date} [complexBody.now] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -408,10 +408,10 @@ export interface Primitive { * Get complex types with datetimeRfc1123 properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -423,16 +423,16 @@ export interface Primitive { * * @param {object} complexBody Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and * 'Mon, 18 May 2015 11:38:00 GMT' - * + * * @param {date} [complexBody.field] - * + * * @param {date} [complexBody.now] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -443,10 +443,10 @@ export interface Primitive { * Get complex types with duration properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -457,12 +457,12 @@ export interface Primitive { * Put complex types with duration properties * * @param {object} [options] Optional Parameters. - * + * * @param {moment.duration} [options.field] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -473,10 +473,10 @@ export interface Primitive { * Get complex types with byte properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -487,12 +487,12 @@ export interface Primitive { * Put complex types with byte properties * * @param {object} [options] Optional Parameters. - * + * * @param {buffer} [options.field] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -512,10 +512,10 @@ export interface ArrayModel { * Get complex types with array property * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -526,12 +526,12 @@ export interface ArrayModel { * Put complex types with array property * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayProperty] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -542,10 +542,10 @@ export interface ArrayModel { * Get complex types with array property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -556,12 +556,12 @@ export interface ArrayModel { * Put complex types with array property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayProperty] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -573,10 +573,10 @@ export interface ArrayModel { * response payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -596,10 +596,10 @@ export interface Dictionary { * Get complex types with dictionary property * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -610,12 +610,12 @@ export interface Dictionary { * Put complex types with dictionary property * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.defaultProgram] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -626,10 +626,10 @@ export interface Dictionary { * Get complex types with dictionary property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -640,12 +640,12 @@ export interface Dictionary { * Put complex types with dictionary property which is empty * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.defaultProgram] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -656,10 +656,10 @@ export interface Dictionary { * Get complex types with dictionary property which is null * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -671,10 +671,10 @@ export interface Dictionary { * response payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -694,10 +694,10 @@ export interface Inheritance { * Get complex types that extend others * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -711,18 +711,18 @@ export interface Inheritance { * color=green, breed=persion, which hates 2 dogs, the 1st one named "Potato" * with id=1 and food="tomato", and the 2nd one named "Tomato" with id=-1 and * food="french fries". - * + * * @param {string} [complexBody.breed] - * + * * @param {string} [complexBody.color] - * + * * @param {array} [complexBody.hates] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -742,10 +742,10 @@ export interface Polymorphism { * Get complex types that are polymorphic * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -788,20 +788,20 @@ export interface Polymorphism { * } * ] * }; - * + * * @param {string} [complexBody.species] - * + * * @param {number} complexBody.length - * + * * @param {array} [complexBody.siblings] - * + * * @param {string} complexBody.fishtype Polymorphic Discriminator - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -839,20 +839,20 @@ export interface Polymorphism { * } * ] * } - * + * * @param {string} [complexBody.species] - * + * * @param {number} complexBody.length - * + * * @param {array} [complexBody.siblings] - * + * * @param {string} complexBody.fishtype Polymorphic Discriminator - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -872,10 +872,10 @@ export interface Polymorphicrecursive { * Get complex types that are polymorphic and have recursive references * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -938,20 +938,20 @@ export interface Polymorphicrecursive { * } * ] * } - * + * * @param {string} [complexBody.species] - * + * * @param {number} complexBody.length - * + * * @param {array} [complexBody.siblings] - * + * * @param {string} complexBody.fishtype Polymorphic Discriminator - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -971,10 +971,10 @@ export interface Readonlyproperty { * Get complex types that have readonly properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -985,12 +985,12 @@ export interface Readonlyproperty { * Put complex types that have readonly properties * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.size] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/index.js index 0af6a28ded..605228e758 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/inheritance.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/inheritance.js index c68d622c1e..aa80d2fb8b 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/inheritance.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/inheritance.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function Inheritance(client) { * Get complex types that extend others * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -104,7 +104,7 @@ Inheritance.prototype.getValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -142,18 +142,18 @@ Inheritance.prototype.getValid = function (options, callback) { * color=green, breed=persion, which hates 2 dogs, the 1st one named "Potato" * with id=1 and food="tomato", and the 2nd one named "Tomato" with id=-1 and * food="french fries". - * + * * @param {string} [complexBody.breed] - * + * * @param {string} [complexBody.color] - * + * * @param {array} [complexBody.hates] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -212,7 +212,7 @@ Inheritance.prototype.putValid = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -243,7 +243,7 @@ Inheritance.prototype.putValid = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/polymorphicrecursive.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/polymorphicrecursive.js index d7d3996ab3..461ddb9751 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/polymorphicrecursive.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/polymorphicrecursive.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function Polymorphicrecursive(client) { * Get complex types that are polymorphic and have recursive references * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -104,7 +104,7 @@ Polymorphicrecursive.prototype.getValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -191,20 +191,20 @@ Polymorphicrecursive.prototype.getValid = function (options, callback) { * } * ] * } - * + * * @param {string} [complexBody.species] - * + * * @param {number} complexBody.length - * + * * @param {array} [complexBody.siblings] - * + * * @param {string} complexBody.fishtype Polymorphic Discriminator - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -263,7 +263,7 @@ Polymorphicrecursive.prototype.putValid = function (complexBody, options, callba requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -294,7 +294,7 @@ Polymorphicrecursive.prototype.putValid = function (complexBody, options, callba error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/polymorphism.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/polymorphism.js index 8143a5e93f..7a7a9d5598 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/polymorphism.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/polymorphism.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function Polymorphism(client) { * Get complex types that are polymorphic * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -104,7 +104,7 @@ Polymorphism.prototype.getValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -171,20 +171,20 @@ Polymorphism.prototype.getValid = function (options, callback) { * } * ] * }; - * + * * @param {string} [complexBody.species] - * + * * @param {number} complexBody.length - * + * * @param {array} [complexBody.siblings] - * + * * @param {string} complexBody.fishtype Polymorphic Discriminator - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -243,7 +243,7 @@ Polymorphism.prototype.putValid = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -274,7 +274,7 @@ Polymorphism.prototype.putValid = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -319,20 +319,20 @@ Polymorphism.prototype.putValid = function (complexBody, options, callback) { * } * ] * } - * + * * @param {string} [complexBody.species] - * + * * @param {number} complexBody.length - * + * * @param {array} [complexBody.siblings] - * + * * @param {string} complexBody.fishtype Polymorphic Discriminator - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -391,7 +391,7 @@ Polymorphism.prototype.putValidMissingRequired = function (complexBody, options, requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -422,7 +422,7 @@ Polymorphism.prototype.putValidMissingRequired = function (complexBody, options, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/primitive.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/primitive.js index ab291609e5..0721a326e0 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/primitive.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/primitive.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function Primitive(client) { * Get complex types with integer properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -105,7 +105,7 @@ Primitive.prototype.getInt = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -140,16 +140,16 @@ Primitive.prototype.getInt = function (options, callback) { * Put complex types with integer properties * * @param {object} complexBody Please put -1 and 2 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} [complexBody.field2] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -208,7 +208,7 @@ Primitive.prototype.putInt = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -239,7 +239,7 @@ Primitive.prototype.putInt = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -257,10 +257,10 @@ Primitive.prototype.putInt = function (complexBody, options, callback) { * Get complex types with long properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -329,7 +329,7 @@ Primitive.prototype.getLong = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -364,16 +364,16 @@ Primitive.prototype.getLong = function (options, callback) { * Put complex types with long properties * * @param {object} complexBody Please put 1099511627775 and -999511627788 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} [complexBody.field2] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -432,7 +432,7 @@ Primitive.prototype.putLong = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -463,7 +463,7 @@ Primitive.prototype.putLong = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -481,10 +481,10 @@ Primitive.prototype.putLong = function (complexBody, options, callback) { * Get complex types with float properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -553,7 +553,7 @@ Primitive.prototype.getFloat = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -588,16 +588,16 @@ Primitive.prototype.getFloat = function (options, callback) { * Put complex types with float properties * * @param {object} complexBody Please put 1.05 and -0.003 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} [complexBody.field2] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -656,7 +656,7 @@ Primitive.prototype.putFloat = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -687,7 +687,7 @@ Primitive.prototype.putFloat = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -705,10 +705,10 @@ Primitive.prototype.putFloat = function (complexBody, options, callback) { * Get complex types with double properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -777,7 +777,7 @@ Primitive.prototype.getDouble = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -813,17 +813,17 @@ Primitive.prototype.getDouble = function (options, callback) { * * @param {object} complexBody Please put 3e-100 and * -0.000000000000000000000000000000000000000000000000000000005 - * + * * @param {number} [complexBody.field1] - * + * * @param {number} * [complexBody.field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -882,7 +882,7 @@ Primitive.prototype.putDouble = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -913,7 +913,7 @@ Primitive.prototype.putDouble = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -931,10 +931,10 @@ Primitive.prototype.putDouble = function (complexBody, options, callback) { * Get complex types with bool properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1003,7 +1003,7 @@ Primitive.prototype.getBool = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1038,16 +1038,16 @@ Primitive.prototype.getBool = function (options, callback) { * Put complex types with bool properties * * @param {object} complexBody Please put true and false - * + * * @param {boolean} [complexBody.fieldTrue] - * + * * @param {boolean} [complexBody.fieldFalse] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1106,7 +1106,7 @@ Primitive.prototype.putBool = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -1137,7 +1137,7 @@ Primitive.prototype.putBool = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1155,10 +1155,10 @@ Primitive.prototype.putBool = function (complexBody, options, callback) { * Get complex types with string properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1227,7 +1227,7 @@ Primitive.prototype.getString = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1262,18 +1262,18 @@ Primitive.prototype.getString = function (options, callback) { * Put complex types with string properties * * @param {object} complexBody Please put 'goodrequest', '', and null - * + * * @param {string} [complexBody.field] - * + * * @param {string} [complexBody.empty] - * + * * @param {string} [complexBody.nullProperty] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1332,7 +1332,7 @@ Primitive.prototype.putString = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -1363,7 +1363,7 @@ Primitive.prototype.putString = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1381,10 +1381,10 @@ Primitive.prototype.putString = function (complexBody, options, callback) { * Get complex types with date properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1453,7 +1453,7 @@ Primitive.prototype.getDate = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1488,16 +1488,16 @@ Primitive.prototype.getDate = function (options, callback) { * Put complex types with date properties * * @param {object} complexBody Please put '0001-01-01' and '2016-02-29' - * + * * @param {date} [complexBody.field] - * + * * @param {date} [complexBody.leap] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1556,7 +1556,7 @@ Primitive.prototype.putDate = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -1587,7 +1587,7 @@ Primitive.prototype.putDate = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1605,10 +1605,10 @@ Primitive.prototype.putDate = function (complexBody, options, callback) { * Get complex types with datetime properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1677,7 +1677,7 @@ Primitive.prototype.getDateTime = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1713,16 +1713,16 @@ Primitive.prototype.getDateTime = function (options, callback) { * * @param {object} complexBody Please put '0001-01-01T12:00:00-04:00' and * '2015-05-18T11:38:00-08:00' - * + * * @param {date} [complexBody.field] - * + * * @param {date} [complexBody.now] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1781,7 +1781,7 @@ Primitive.prototype.putDateTime = function (complexBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -1812,7 +1812,7 @@ Primitive.prototype.putDateTime = function (complexBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1830,10 +1830,10 @@ Primitive.prototype.putDateTime = function (complexBody, options, callback) { * Get complex types with datetimeRfc1123 properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1903,7 +1903,7 @@ Primitive.prototype.getDateTimeRfc1123 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1939,16 +1939,16 @@ Primitive.prototype.getDateTimeRfc1123 = function (options, callback) { * * @param {object} complexBody Please put 'Mon, 01 Jan 0001 12:00:00 GMT' and * 'Mon, 18 May 2015 11:38:00 GMT' - * + * * @param {date} [complexBody.field] - * + * * @param {date} [complexBody.now] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2007,7 +2007,7 @@ Primitive.prototype.putDateTimeRfc1123 = function (complexBody, options, callbac requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -2038,7 +2038,7 @@ Primitive.prototype.putDateTimeRfc1123 = function (complexBody, options, callbac error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2056,10 +2056,10 @@ Primitive.prototype.putDateTimeRfc1123 = function (complexBody, options, callbac * Get complex types with duration properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2128,7 +2128,7 @@ Primitive.prototype.getDuration = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2163,12 +2163,12 @@ Primitive.prototype.getDuration = function (options, callback) { * Put complex types with duration properties * * @param {object} [options] Optional Parameters. - * + * * @param {moment.duration} [options.field] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2233,7 +2233,7 @@ Primitive.prototype.putDuration = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -2264,7 +2264,7 @@ Primitive.prototype.putDuration = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2282,10 +2282,10 @@ Primitive.prototype.putDuration = function (options, callback) { * Get complex types with byte properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2354,7 +2354,7 @@ Primitive.prototype.getByte = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2389,12 +2389,12 @@ Primitive.prototype.getByte = function (options, callback) { * Put complex types with byte properties * * @param {object} [options] Optional Parameters. - * + * * @param {buffer} [options.field] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2459,7 +2459,7 @@ Primitive.prototype.putByte = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -2490,7 +2490,7 @@ Primitive.prototype.putByte = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/readonlyproperty.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/readonlyproperty.js index 04158be69c..f3b4d0e101 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/readonlyproperty.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyComplex/operations/readonlyproperty.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function Readonlyproperty(client) { * Get complex types that have readonly properties * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -104,7 +104,7 @@ Readonlyproperty.prototype.getValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -139,12 +139,12 @@ Readonlyproperty.prototype.getValid = function (options, callback) { * Put complex types that have readonly properties * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.size] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -213,7 +213,7 @@ Readonlyproperty.prototype.putValid = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(complexBody, {depth: null}))); return callback(serializationError); } @@ -244,7 +244,7 @@ Readonlyproperty.prototype.putValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/autoRestDateTestService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/autoRestDateTestService.d.ts index cc9df86462..0500818d8a 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/autoRestDateTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/autoRestDateTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/autoRestDateTestService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/autoRestDateTestService.js index ce287f68a1..b3e39f9a1a 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/autoRestDateTestService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/autoRestDateTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/operations/dateModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/operations/dateModel.js index 05b72385a9..484ba3392f 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/operations/dateModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/operations/dateModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function DateModel(client) { * Get null date value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -103,7 +103,7 @@ DateModel.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -144,10 +144,10 @@ DateModel.prototype.getNull = function (options, callback) { * Get invalid date value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -215,7 +215,7 @@ DateModel.prototype.getInvalidDate = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -256,10 +256,10 @@ DateModel.prototype.getInvalidDate = function (options, callback) { * Get overflow date value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -327,7 +327,7 @@ DateModel.prototype.getOverflowDate = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -368,10 +368,10 @@ DateModel.prototype.getOverflowDate = function (options, callback) { * Get underflow date value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -439,7 +439,7 @@ DateModel.prototype.getUnderflowDate = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -480,12 +480,12 @@ DateModel.prototype.getUnderflowDate = function (options, callback) { * Put max date value 9999-12-31 * * @param {date} dateBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -509,7 +509,7 @@ DateModel.prototype.putMaxDate = function (dateBody, options, callback) { } // Validate try { - if(!dateBody || !(dateBody instanceof Date || + if(!dateBody || !(dateBody instanceof Date || (typeof dateBody.valueOf() === 'string' && !isNaN(Date.parse(dateBody))))) { throw new Error('dateBody cannot be null or undefined and it must be of type date.'); } @@ -551,7 +551,7 @@ DateModel.prototype.putMaxDate = function (dateBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(dateBody, {depth: null}))); return callback(serializationError); } @@ -582,7 +582,7 @@ DateModel.prototype.putMaxDate = function (dateBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -600,10 +600,10 @@ DateModel.prototype.putMaxDate = function (dateBody, options, callback) { * Get max date value 9999-12-31 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -671,7 +671,7 @@ DateModel.prototype.getMaxDate = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -712,12 +712,12 @@ DateModel.prototype.getMaxDate = function (options, callback) { * Put min date value 0000-01-01 * * @param {date} dateBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -741,7 +741,7 @@ DateModel.prototype.putMinDate = function (dateBody, options, callback) { } // Validate try { - if(!dateBody || !(dateBody instanceof Date || + if(!dateBody || !(dateBody instanceof Date || (typeof dateBody.valueOf() === 'string' && !isNaN(Date.parse(dateBody))))) { throw new Error('dateBody cannot be null or undefined and it must be of type date.'); } @@ -783,7 +783,7 @@ DateModel.prototype.putMinDate = function (dateBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(dateBody, {depth: null}))); return callback(serializationError); } @@ -814,7 +814,7 @@ DateModel.prototype.putMinDate = function (dateBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -832,10 +832,10 @@ DateModel.prototype.putMinDate = function (dateBody, options, callback) { * Get min date value 0000-01-01 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -903,7 +903,7 @@ DateModel.prototype.getMinDate = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/operations/index.d.ts index 028e19e04d..8ee781a61e 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,10 +24,10 @@ export interface DateModel { * Get null date value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -38,10 +38,10 @@ export interface DateModel { * Get invalid date value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -52,10 +52,10 @@ export interface DateModel { * Get overflow date value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -66,10 +66,10 @@ export interface DateModel { * Get underflow date value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -80,12 +80,12 @@ export interface DateModel { * Put max date value 9999-12-31 * * @param {date} dateBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -96,10 +96,10 @@ export interface DateModel { * Get max date value 9999-12-31 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -110,12 +110,12 @@ export interface DateModel { * Put min date value 0000-01-01 * * @param {date} dateBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -126,10 +126,10 @@ export interface DateModel { * Get min date value 0000-01-01 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/operations/index.js index 783d370a9c..a9b6da7991 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDate/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/autoRestDateTimeTestService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/autoRestDateTimeTestService.d.ts index da5ac355d9..a820a4c57a 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/autoRestDateTimeTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/autoRestDateTimeTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/autoRestDateTimeTestService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/autoRestDateTimeTestService.js index dd6bf7290b..19e44f80a2 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/autoRestDateTimeTestService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/autoRestDateTimeTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/operations/datetime.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/operations/datetime.js index 77c802872f..66c5e62eed 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/operations/datetime.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/operations/datetime.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function Datetime(client) { * Get null datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -103,7 +103,7 @@ Datetime.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -144,10 +144,10 @@ Datetime.prototype.getNull = function (options, callback) { * Get invalid datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -215,7 +215,7 @@ Datetime.prototype.getInvalid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -256,10 +256,10 @@ Datetime.prototype.getInvalid = function (options, callback) { * Get overflow datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -327,7 +327,7 @@ Datetime.prototype.getOverflow = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -368,10 +368,10 @@ Datetime.prototype.getOverflow = function (options, callback) { * Get underflow datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -439,7 +439,7 @@ Datetime.prototype.getUnderflow = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -480,12 +480,12 @@ Datetime.prototype.getUnderflow = function (options, callback) { * Put max datetime value 9999-12-31T23:59:59.9999999Z * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -509,7 +509,7 @@ Datetime.prototype.putUtcMaxDateTime = function (datetimeBody, options, callback } // Validate try { - if(!datetimeBody || !(datetimeBody instanceof Date || + if(!datetimeBody || !(datetimeBody instanceof Date || (typeof datetimeBody.valueOf() === 'string' && !isNaN(Date.parse(datetimeBody))))) { throw new Error('datetimeBody cannot be null or undefined and it must be of type date.'); } @@ -551,7 +551,7 @@ Datetime.prototype.putUtcMaxDateTime = function (datetimeBody, options, callback requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(datetimeBody, {depth: null}))); return callback(serializationError); } @@ -582,7 +582,7 @@ Datetime.prototype.putUtcMaxDateTime = function (datetimeBody, options, callback error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -600,10 +600,10 @@ Datetime.prototype.putUtcMaxDateTime = function (datetimeBody, options, callback * Get max datetime value 9999-12-31t23:59:59.9999999z * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -671,7 +671,7 @@ Datetime.prototype.getUtcLowercaseMaxDateTime = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -712,10 +712,10 @@ Datetime.prototype.getUtcLowercaseMaxDateTime = function (options, callback) { * Get max datetime value 9999-12-31T23:59:59.9999999Z * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -783,7 +783,7 @@ Datetime.prototype.getUtcUppercaseMaxDateTime = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -825,12 +825,12 @@ Datetime.prototype.getUtcUppercaseMaxDateTime = function (options, callback) { * 9999-12-31t23:59:59.9999999+14:00 * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -854,7 +854,7 @@ Datetime.prototype.putLocalPositiveOffsetMaxDateTime = function (datetimeBody, o } // Validate try { - if(!datetimeBody || !(datetimeBody instanceof Date || + if(!datetimeBody || !(datetimeBody instanceof Date || (typeof datetimeBody.valueOf() === 'string' && !isNaN(Date.parse(datetimeBody))))) { throw new Error('datetimeBody cannot be null or undefined and it must be of type date.'); } @@ -896,7 +896,7 @@ Datetime.prototype.putLocalPositiveOffsetMaxDateTime = function (datetimeBody, o requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(datetimeBody, {depth: null}))); return callback(serializationError); } @@ -927,7 +927,7 @@ Datetime.prototype.putLocalPositiveOffsetMaxDateTime = function (datetimeBody, o error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -946,10 +946,10 @@ Datetime.prototype.putLocalPositiveOffsetMaxDateTime = function (datetimeBody, o * 9999-12-31t23:59:59.9999999+14:00 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1017,7 +1017,7 @@ Datetime.prototype.getLocalPositiveOffsetLowercaseMaxDateTime = function (option error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1059,10 +1059,10 @@ Datetime.prototype.getLocalPositiveOffsetLowercaseMaxDateTime = function (option * 9999-12-31T23:59:59.9999999+14:00 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1130,7 +1130,7 @@ Datetime.prototype.getLocalPositiveOffsetUppercaseMaxDateTime = function (option error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1172,12 +1172,12 @@ Datetime.prototype.getLocalPositiveOffsetUppercaseMaxDateTime = function (option * 9999-12-31t23:59:59.9999999-14:00 * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1201,7 +1201,7 @@ Datetime.prototype.putLocalNegativeOffsetMaxDateTime = function (datetimeBody, o } // Validate try { - if(!datetimeBody || !(datetimeBody instanceof Date || + if(!datetimeBody || !(datetimeBody instanceof Date || (typeof datetimeBody.valueOf() === 'string' && !isNaN(Date.parse(datetimeBody))))) { throw new Error('datetimeBody cannot be null or undefined and it must be of type date.'); } @@ -1243,7 +1243,7 @@ Datetime.prototype.putLocalNegativeOffsetMaxDateTime = function (datetimeBody, o requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(datetimeBody, {depth: null}))); return callback(serializationError); } @@ -1274,7 +1274,7 @@ Datetime.prototype.putLocalNegativeOffsetMaxDateTime = function (datetimeBody, o error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1293,10 +1293,10 @@ Datetime.prototype.putLocalNegativeOffsetMaxDateTime = function (datetimeBody, o * 9999-12-31T23:59:59.9999999-14:00 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1364,7 +1364,7 @@ Datetime.prototype.getLocalNegativeOffsetUppercaseMaxDateTime = function (option error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1406,10 +1406,10 @@ Datetime.prototype.getLocalNegativeOffsetUppercaseMaxDateTime = function (option * 9999-12-31t23:59:59.9999999-14:00 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1477,7 +1477,7 @@ Datetime.prototype.getLocalNegativeOffsetLowercaseMaxDateTime = function (option error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1518,12 +1518,12 @@ Datetime.prototype.getLocalNegativeOffsetLowercaseMaxDateTime = function (option * Put min datetime value 0001-01-01T00:00:00Z * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1547,7 +1547,7 @@ Datetime.prototype.putUtcMinDateTime = function (datetimeBody, options, callback } // Validate try { - if(!datetimeBody || !(datetimeBody instanceof Date || + if(!datetimeBody || !(datetimeBody instanceof Date || (typeof datetimeBody.valueOf() === 'string' && !isNaN(Date.parse(datetimeBody))))) { throw new Error('datetimeBody cannot be null or undefined and it must be of type date.'); } @@ -1589,7 +1589,7 @@ Datetime.prototype.putUtcMinDateTime = function (datetimeBody, options, callback requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(datetimeBody, {depth: null}))); return callback(serializationError); } @@ -1620,7 +1620,7 @@ Datetime.prototype.putUtcMinDateTime = function (datetimeBody, options, callback error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1638,10 +1638,10 @@ Datetime.prototype.putUtcMinDateTime = function (datetimeBody, options, callback * Get min datetime value 0001-01-01T00:00:00Z * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1709,7 +1709,7 @@ Datetime.prototype.getUtcMinDateTime = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1750,12 +1750,12 @@ Datetime.prototype.getUtcMinDateTime = function (options, callback) { * Put min datetime value 0001-01-01T00:00:00+14:00 * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1779,7 +1779,7 @@ Datetime.prototype.putLocalPositiveOffsetMinDateTime = function (datetimeBody, o } // Validate try { - if(!datetimeBody || !(datetimeBody instanceof Date || + if(!datetimeBody || !(datetimeBody instanceof Date || (typeof datetimeBody.valueOf() === 'string' && !isNaN(Date.parse(datetimeBody))))) { throw new Error('datetimeBody cannot be null or undefined and it must be of type date.'); } @@ -1821,7 +1821,7 @@ Datetime.prototype.putLocalPositiveOffsetMinDateTime = function (datetimeBody, o requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(datetimeBody, {depth: null}))); return callback(serializationError); } @@ -1852,7 +1852,7 @@ Datetime.prototype.putLocalPositiveOffsetMinDateTime = function (datetimeBody, o error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1870,10 +1870,10 @@ Datetime.prototype.putLocalPositiveOffsetMinDateTime = function (datetimeBody, o * Get min datetime value 0001-01-01T00:00:00+14:00 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1941,7 +1941,7 @@ Datetime.prototype.getLocalPositiveOffsetMinDateTime = function (options, callba error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1982,12 +1982,12 @@ Datetime.prototype.getLocalPositiveOffsetMinDateTime = function (options, callba * Put min datetime value 0001-01-01T00:00:00-14:00 * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2011,7 +2011,7 @@ Datetime.prototype.putLocalNegativeOffsetMinDateTime = function (datetimeBody, o } // Validate try { - if(!datetimeBody || !(datetimeBody instanceof Date || + if(!datetimeBody || !(datetimeBody instanceof Date || (typeof datetimeBody.valueOf() === 'string' && !isNaN(Date.parse(datetimeBody))))) { throw new Error('datetimeBody cannot be null or undefined and it must be of type date.'); } @@ -2053,7 +2053,7 @@ Datetime.prototype.putLocalNegativeOffsetMinDateTime = function (datetimeBody, o requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(datetimeBody, {depth: null}))); return callback(serializationError); } @@ -2084,7 +2084,7 @@ Datetime.prototype.putLocalNegativeOffsetMinDateTime = function (datetimeBody, o error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2102,10 +2102,10 @@ Datetime.prototype.putLocalNegativeOffsetMinDateTime = function (datetimeBody, o * Get min datetime value 0001-01-01T00:00:00-14:00 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2173,7 +2173,7 @@ Datetime.prototype.getLocalNegativeOffsetMinDateTime = function (options, callba error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/operations/index.d.ts index c9a21d9f13..4c064b8d2a 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,10 +24,10 @@ export interface Datetime { * Get null datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -38,10 +38,10 @@ export interface Datetime { * Get invalid datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -52,10 +52,10 @@ export interface Datetime { * Get overflow datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -66,10 +66,10 @@ export interface Datetime { * Get underflow datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -80,12 +80,12 @@ export interface Datetime { * Put max datetime value 9999-12-31T23:59:59.9999999Z * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -96,10 +96,10 @@ export interface Datetime { * Get max datetime value 9999-12-31t23:59:59.9999999z * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -110,10 +110,10 @@ export interface Datetime { * Get max datetime value 9999-12-31T23:59:59.9999999Z * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -125,12 +125,12 @@ export interface Datetime { * 9999-12-31t23:59:59.9999999+14:00 * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -142,10 +142,10 @@ export interface Datetime { * 9999-12-31t23:59:59.9999999+14:00 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -157,10 +157,10 @@ export interface Datetime { * 9999-12-31T23:59:59.9999999+14:00 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -172,12 +172,12 @@ export interface Datetime { * 9999-12-31t23:59:59.9999999-14:00 * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -189,10 +189,10 @@ export interface Datetime { * 9999-12-31T23:59:59.9999999-14:00 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -204,10 +204,10 @@ export interface Datetime { * 9999-12-31t23:59:59.9999999-14:00 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -218,12 +218,12 @@ export interface Datetime { * Put min datetime value 0001-01-01T00:00:00Z * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -234,10 +234,10 @@ export interface Datetime { * Get min datetime value 0001-01-01T00:00:00Z * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -248,12 +248,12 @@ export interface Datetime { * Put min datetime value 0001-01-01T00:00:00+14:00 * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -264,10 +264,10 @@ export interface Datetime { * Get min datetime value 0001-01-01T00:00:00+14:00 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -278,12 +278,12 @@ export interface Datetime { * Put min datetime value 0001-01-01T00:00:00-14:00 * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -294,10 +294,10 @@ export interface Datetime { * Get min datetime value 0001-01-01T00:00:00-14:00 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/operations/index.js index 0f44d808de..e63d5068c4 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTime/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autoRestRFC1123DateTimeTestService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autoRestRFC1123DateTimeTestService.d.ts index 9bac454b99..12f590498f 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autoRestRFC1123DateTimeTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autoRestRFC1123DateTimeTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autoRestRFC1123DateTimeTestService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autoRestRFC1123DateTimeTestService.js index 57619754cc..3ef0d62ee4 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autoRestRFC1123DateTimeTestService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/autoRestRFC1123DateTimeTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/operations/datetimerfc1123.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/operations/datetimerfc1123.js index ca891c0b45..4e0388956f 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/operations/datetimerfc1123.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/operations/datetimerfc1123.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function Datetimerfc1123(client) { * Get null datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -103,7 +103,7 @@ Datetimerfc1123.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -144,10 +144,10 @@ Datetimerfc1123.prototype.getNull = function (options, callback) { * Get invalid datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -215,7 +215,7 @@ Datetimerfc1123.prototype.getInvalid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -256,10 +256,10 @@ Datetimerfc1123.prototype.getInvalid = function (options, callback) { * Get overflow datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -327,7 +327,7 @@ Datetimerfc1123.prototype.getOverflow = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -368,10 +368,10 @@ Datetimerfc1123.prototype.getOverflow = function (options, callback) { * Get underflow datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -439,7 +439,7 @@ Datetimerfc1123.prototype.getUnderflow = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -480,12 +480,12 @@ Datetimerfc1123.prototype.getUnderflow = function (options, callback) { * Put max datetime value Fri, 31 Dec 9999 23:59:59 GMT * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -509,7 +509,7 @@ Datetimerfc1123.prototype.putUtcMaxDateTime = function (datetimeBody, options, c } // Validate try { - if(!datetimeBody || !(datetimeBody instanceof Date || + if(!datetimeBody || !(datetimeBody instanceof Date || (typeof datetimeBody.valueOf() === 'string' && !isNaN(Date.parse(datetimeBody))))) { throw new Error('datetimeBody cannot be null or undefined and it must be of type date.'); } @@ -551,7 +551,7 @@ Datetimerfc1123.prototype.putUtcMaxDateTime = function (datetimeBody, options, c requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(datetimeBody, {depth: null}))); return callback(serializationError); } @@ -582,7 +582,7 @@ Datetimerfc1123.prototype.putUtcMaxDateTime = function (datetimeBody, options, c error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -600,10 +600,10 @@ Datetimerfc1123.prototype.putUtcMaxDateTime = function (datetimeBody, options, c * Get max datetime value fri, 31 dec 9999 23:59:59 gmt * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -671,7 +671,7 @@ Datetimerfc1123.prototype.getUtcLowercaseMaxDateTime = function (options, callba error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -712,10 +712,10 @@ Datetimerfc1123.prototype.getUtcLowercaseMaxDateTime = function (options, callba * Get max datetime value FRI, 31 DEC 9999 23:59:59 GMT * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -783,7 +783,7 @@ Datetimerfc1123.prototype.getUtcUppercaseMaxDateTime = function (options, callba error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -824,12 +824,12 @@ Datetimerfc1123.prototype.getUtcUppercaseMaxDateTime = function (options, callba * Put min datetime value Mon, 1 Jan 0001 00:00:00 GMT * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -853,7 +853,7 @@ Datetimerfc1123.prototype.putUtcMinDateTime = function (datetimeBody, options, c } // Validate try { - if(!datetimeBody || !(datetimeBody instanceof Date || + if(!datetimeBody || !(datetimeBody instanceof Date || (typeof datetimeBody.valueOf() === 'string' && !isNaN(Date.parse(datetimeBody))))) { throw new Error('datetimeBody cannot be null or undefined and it must be of type date.'); } @@ -895,7 +895,7 @@ Datetimerfc1123.prototype.putUtcMinDateTime = function (datetimeBody, options, c requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(datetimeBody, {depth: null}))); return callback(serializationError); } @@ -926,7 +926,7 @@ Datetimerfc1123.prototype.putUtcMinDateTime = function (datetimeBody, options, c error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -944,10 +944,10 @@ Datetimerfc1123.prototype.putUtcMinDateTime = function (datetimeBody, options, c * Get min datetime value Mon, 1 Jan 0001 00:00:00 GMT * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1015,7 +1015,7 @@ Datetimerfc1123.prototype.getUtcMinDateTime = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/operations/index.d.ts index f98994d42d..c215e7de69 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,10 +24,10 @@ export interface Datetimerfc1123 { * Get null datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -38,10 +38,10 @@ export interface Datetimerfc1123 { * Get invalid datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -52,10 +52,10 @@ export interface Datetimerfc1123 { * Get overflow datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -66,10 +66,10 @@ export interface Datetimerfc1123 { * Get underflow datetime value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -80,12 +80,12 @@ export interface Datetimerfc1123 { * Put max datetime value Fri, 31 Dec 9999 23:59:59 GMT * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -96,10 +96,10 @@ export interface Datetimerfc1123 { * Get max datetime value fri, 31 dec 9999 23:59:59 gmt * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -110,10 +110,10 @@ export interface Datetimerfc1123 { * Get max datetime value FRI, 31 DEC 9999 23:59:59 GMT * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -124,12 +124,12 @@ export interface Datetimerfc1123 { * Put min datetime value Mon, 1 Jan 0001 00:00:00 GMT * * @param {date} datetimeBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -140,10 +140,10 @@ export interface Datetimerfc1123 { * Get min datetime value Mon, 1 Jan 0001 00:00:00 GMT * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/operations/index.js index 258ac77798..1db2a459f1 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/autoRestSwaggerBATdictionaryService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/autoRestSwaggerBATdictionaryService.d.ts index f1c65d7977..d28994b964 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/autoRestSwaggerBATdictionaryService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/autoRestSwaggerBATdictionaryService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/autoRestSwaggerBATdictionaryService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/autoRestSwaggerBATdictionaryService.js index 241db43ea9..fd904fad03 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/autoRestSwaggerBATdictionaryService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/autoRestSwaggerBATdictionaryService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/index.d.ts index bac176bdca..fad4fadc2b 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the Widget class. * @constructor * @member {number} [integer] - * + * * @member {string} [string] - * + * */ export interface Widget { integer?: number; @@ -28,9 +28,9 @@ export interface Widget { * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/index.js index b80eef6d2e..dbd41af6b9 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/widget.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/widget.js index ddbe97ae9e..73092faea5 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/widget.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/models/widget.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the Widget class. * @constructor * @member {number} [integer] - * + * * @member {string} [string] - * + * */ function Widget() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/operations/dictionary.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/operations/dictionary.js index 84695ea4fe..9da60da209 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/operations/dictionary.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/operations/dictionary.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function Dictionary(client) { * Get null dictionary value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -104,7 +104,7 @@ Dictionary.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -152,10 +152,10 @@ Dictionary.prototype.getNull = function (options, callback) { * Get empty dictionary value {} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -223,7 +223,7 @@ Dictionary.prototype.getEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -271,12 +271,12 @@ Dictionary.prototype.getEmpty = function (options, callback) { * Set dictionary value empty {} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -353,7 +353,7 @@ Dictionary.prototype.putEmpty = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -384,7 +384,7 @@ Dictionary.prototype.putEmpty = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -402,10 +402,10 @@ Dictionary.prototype.putEmpty = function (arrayBody, options, callback) { * Get Dictionary with null value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -473,7 +473,7 @@ Dictionary.prototype.getNullValue = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -521,10 +521,10 @@ Dictionary.prototype.getNullValue = function (options, callback) { * Get Dictionary with null key * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -592,7 +592,7 @@ Dictionary.prototype.getNullKey = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -640,10 +640,10 @@ Dictionary.prototype.getNullKey = function (options, callback) { * Get Dictionary with key as empty string * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -711,7 +711,7 @@ Dictionary.prototype.getEmptyStringKey = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -759,10 +759,10 @@ Dictionary.prototype.getEmptyStringKey = function (options, callback) { * Get invalid Dictionary value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -830,7 +830,7 @@ Dictionary.prototype.getInvalid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -878,10 +878,10 @@ Dictionary.prototype.getInvalid = function (options, callback) { * Get boolean dictionary value {"0": true, "1": false, "2": false, "3": true } * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -949,7 +949,7 @@ Dictionary.prototype.getBooleanTfft = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -997,12 +997,12 @@ Dictionary.prototype.getBooleanTfft = function (options, callback) { * Set dictionary value empty {"0": true, "1": false, "2": false, "3": true } * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1079,7 +1079,7 @@ Dictionary.prototype.putBooleanTfft = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -1110,7 +1110,7 @@ Dictionary.prototype.putBooleanTfft = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1128,10 +1128,10 @@ Dictionary.prototype.putBooleanTfft = function (arrayBody, options, callback) { * Get boolean dictionary value {"0": true, "1": null, "2": false } * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1199,7 +1199,7 @@ Dictionary.prototype.getBooleanInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1247,10 +1247,10 @@ Dictionary.prototype.getBooleanInvalidNull = function (options, callback) { * Get boolean dictionary value '{"0": true, "1": "boolean", "2": false}' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1318,7 +1318,7 @@ Dictionary.prototype.getBooleanInvalidString = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1366,10 +1366,10 @@ Dictionary.prototype.getBooleanInvalidString = function (options, callback) { * Get integer dictionary value {"0": 1, "1": -1, "2": 3, "3": 300} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1437,7 +1437,7 @@ Dictionary.prototype.getIntegerValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1485,12 +1485,12 @@ Dictionary.prototype.getIntegerValid = function (options, callback) { * Set dictionary value empty {"0": 1, "1": -1, "2": 3, "3": 300} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1567,7 +1567,7 @@ Dictionary.prototype.putIntegerValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -1598,7 +1598,7 @@ Dictionary.prototype.putIntegerValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1616,10 +1616,10 @@ Dictionary.prototype.putIntegerValid = function (arrayBody, options, callback) { * Get integer dictionary value {"0": 1, "1": null, "2": 0} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1687,7 +1687,7 @@ Dictionary.prototype.getIntInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1735,10 +1735,10 @@ Dictionary.prototype.getIntInvalidNull = function (options, callback) { * Get integer dictionary value {"0": 1, "1": "integer", "2": 0} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1806,7 +1806,7 @@ Dictionary.prototype.getIntInvalidString = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1854,10 +1854,10 @@ Dictionary.prototype.getIntInvalidString = function (options, callback) { * Get integer dictionary value {"0": 1, "1": -1, "2": 3, "3": 300} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1925,7 +1925,7 @@ Dictionary.prototype.getLongValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1973,12 +1973,12 @@ Dictionary.prototype.getLongValid = function (options, callback) { * Set dictionary value empty {"0": 1, "1": -1, "2": 3, "3": 300} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2055,7 +2055,7 @@ Dictionary.prototype.putLongValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -2086,7 +2086,7 @@ Dictionary.prototype.putLongValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2104,10 +2104,10 @@ Dictionary.prototype.putLongValid = function (arrayBody, options, callback) { * Get long dictionary value {"0": 1, "1": null, "2": 0} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2175,7 +2175,7 @@ Dictionary.prototype.getLongInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2223,10 +2223,10 @@ Dictionary.prototype.getLongInvalidNull = function (options, callback) { * Get long dictionary value {"0": 1, "1": "integer", "2": 0} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2294,7 +2294,7 @@ Dictionary.prototype.getLongInvalidString = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2342,10 +2342,10 @@ Dictionary.prototype.getLongInvalidString = function (options, callback) { * Get float dictionary value {"0": 0, "1": -0.01, "2": 1.2e20} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2413,7 +2413,7 @@ Dictionary.prototype.getFloatValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2461,12 +2461,12 @@ Dictionary.prototype.getFloatValid = function (options, callback) { * Set dictionary value {"0": 0, "1": -0.01, "2": 1.2e20} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2543,7 +2543,7 @@ Dictionary.prototype.putFloatValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -2574,7 +2574,7 @@ Dictionary.prototype.putFloatValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2592,10 +2592,10 @@ Dictionary.prototype.putFloatValid = function (arrayBody, options, callback) { * Get float dictionary value {"0": 0.0, "1": null, "2": 1.2e20} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2663,7 +2663,7 @@ Dictionary.prototype.getFloatInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2711,10 +2711,10 @@ Dictionary.prototype.getFloatInvalidNull = function (options, callback) { * Get boolean dictionary value {"0": 1.0, "1": "number", "2": 0.0} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2782,7 +2782,7 @@ Dictionary.prototype.getFloatInvalidString = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2830,10 +2830,10 @@ Dictionary.prototype.getFloatInvalidString = function (options, callback) { * Get float dictionary value {"0": 0, "1": -0.01, "2": 1.2e20} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2901,7 +2901,7 @@ Dictionary.prototype.getDoubleValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2949,12 +2949,12 @@ Dictionary.prototype.getDoubleValid = function (options, callback) { * Set dictionary value {"0": 0, "1": -0.01, "2": 1.2e20} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3031,7 +3031,7 @@ Dictionary.prototype.putDoubleValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -3062,7 +3062,7 @@ Dictionary.prototype.putDoubleValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3080,10 +3080,10 @@ Dictionary.prototype.putDoubleValid = function (arrayBody, options, callback) { * Get float dictionary value {"0": 0.0, "1": null, "2": 1.2e20} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3151,7 +3151,7 @@ Dictionary.prototype.getDoubleInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3199,10 +3199,10 @@ Dictionary.prototype.getDoubleInvalidNull = function (options, callback) { * Get boolean dictionary value {"0": 1.0, "1": "number", "2": 0.0} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3270,7 +3270,7 @@ Dictionary.prototype.getDoubleInvalidString = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3318,10 +3318,10 @@ Dictionary.prototype.getDoubleInvalidString = function (options, callback) { * Get string dictionary value {"0": "foo1", "1": "foo2", "2": "foo3"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3389,7 +3389,7 @@ Dictionary.prototype.getStringValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3437,12 +3437,12 @@ Dictionary.prototype.getStringValid = function (options, callback) { * Set dictionary value {"0": "foo1", "1": "foo2", "2": "foo3"} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3519,7 +3519,7 @@ Dictionary.prototype.putStringValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -3550,7 +3550,7 @@ Dictionary.prototype.putStringValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3568,10 +3568,10 @@ Dictionary.prototype.putStringValid = function (arrayBody, options, callback) { * Get string dictionary value {"0": "foo", "1": null, "2": "foo2"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3639,7 +3639,7 @@ Dictionary.prototype.getStringWithNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3687,10 +3687,10 @@ Dictionary.prototype.getStringWithNull = function (options, callback) { * Get string dictionary value {"0": "foo", "1": 123, "2": "foo2"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3758,7 +3758,7 @@ Dictionary.prototype.getStringWithInvalid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3807,10 +3807,10 @@ Dictionary.prototype.getStringWithInvalid = function (options, callback) { * "1492-10-12"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3878,7 +3878,7 @@ Dictionary.prototype.getDateValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3927,12 +3927,12 @@ Dictionary.prototype.getDateValid = function (options, callback) { * "1492-10-12"} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3960,7 +3960,7 @@ Dictionary.prototype.putDateValid = function (arrayBody, options, callback) { throw new Error('arrayBody cannot be null or undefined and it must be of type object.'); } for(var valueElement in arrayBody) { - if (arrayBody[valueElement] && !(arrayBody[valueElement] instanceof Date || + if (arrayBody[valueElement] && !(arrayBody[valueElement] instanceof Date || (typeof arrayBody[valueElement].valueOf() === 'string' && !isNaN(Date.parse(arrayBody[valueElement]))))) { throw new Error('arrayBody[valueElement] must be of type date.'); } @@ -4010,7 +4010,7 @@ Dictionary.prototype.putDateValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -4041,7 +4041,7 @@ Dictionary.prototype.putDateValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4059,10 +4059,10 @@ Dictionary.prototype.putDateValid = function (arrayBody, options, callback) { * Get date dictionary value {"0": "2012-01-01", "1": null, "2": "1776-07-04"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4130,7 +4130,7 @@ Dictionary.prototype.getDateInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4178,10 +4178,10 @@ Dictionary.prototype.getDateInvalidNull = function (options, callback) { * Get date dictionary value {"0": "2011-03-22", "1": "date"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4249,7 +4249,7 @@ Dictionary.prototype.getDateInvalidChars = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4298,10 +4298,10 @@ Dictionary.prototype.getDateInvalidChars = function (options, callback) { * "1980-01-02T00:11:35+01:00", "2": "1492-10-12T10:15:01-08:00"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4369,7 +4369,7 @@ Dictionary.prototype.getDateTimeValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4418,12 +4418,12 @@ Dictionary.prototype.getDateTimeValid = function (options, callback) { * "1980-01-02T00:11:35+01:00", "2": "1492-10-12T10:15:01-08:00"} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4451,7 +4451,7 @@ Dictionary.prototype.putDateTimeValid = function (arrayBody, options, callback) throw new Error('arrayBody cannot be null or undefined and it must be of type object.'); } for(var valueElement in arrayBody) { - if (arrayBody[valueElement] && !(arrayBody[valueElement] instanceof Date || + if (arrayBody[valueElement] && !(arrayBody[valueElement] instanceof Date || (typeof arrayBody[valueElement].valueOf() === 'string' && !isNaN(Date.parse(arrayBody[valueElement]))))) { throw new Error('arrayBody[valueElement] must be of type date.'); } @@ -4501,7 +4501,7 @@ Dictionary.prototype.putDateTimeValid = function (arrayBody, options, callback) requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -4532,7 +4532,7 @@ Dictionary.prototype.putDateTimeValid = function (arrayBody, options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4550,10 +4550,10 @@ Dictionary.prototype.putDateTimeValid = function (arrayBody, options, callback) * Get date dictionary value {"0": "2000-12-01t00:00:01z", "1": null} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4621,7 +4621,7 @@ Dictionary.prototype.getDateTimeInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4669,10 +4669,10 @@ Dictionary.prototype.getDateTimeInvalidNull = function (options, callback) { * Get date dictionary value {"0": "2000-12-01t00:00:01z", "1": "date-time"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4740,7 +4740,7 @@ Dictionary.prototype.getDateTimeInvalidChars = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4790,10 +4790,10 @@ Dictionary.prototype.getDateTimeInvalidChars = function (options, callback) { * GMT"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4861,7 +4861,7 @@ Dictionary.prototype.getDateTimeRfc1123Valid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -4910,12 +4910,12 @@ Dictionary.prototype.getDateTimeRfc1123Valid = function (options, callback) { * 02 Jan 1980 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -4943,7 +4943,7 @@ Dictionary.prototype.putDateTimeRfc1123Valid = function (arrayBody, options, cal throw new Error('arrayBody cannot be null or undefined and it must be of type object.'); } for(var valueElement in arrayBody) { - if (arrayBody[valueElement] && !(arrayBody[valueElement] instanceof Date || + if (arrayBody[valueElement] && !(arrayBody[valueElement] instanceof Date || (typeof arrayBody[valueElement].valueOf() === 'string' && !isNaN(Date.parse(arrayBody[valueElement]))))) { throw new Error('arrayBody[valueElement] must be of type date.'); } @@ -4993,7 +4993,7 @@ Dictionary.prototype.putDateTimeRfc1123Valid = function (arrayBody, options, cal requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -5024,7 +5024,7 @@ Dictionary.prototype.putDateTimeRfc1123Valid = function (arrayBody, options, cal error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5043,10 +5043,10 @@ Dictionary.prototype.putDateTimeRfc1123Valid = function (arrayBody, options, cal * "P5DT1H0M0S"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5114,7 +5114,7 @@ Dictionary.prototype.getDurationValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5162,12 +5162,12 @@ Dictionary.prototype.getDurationValid = function (options, callback) { * Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5244,7 +5244,7 @@ Dictionary.prototype.putDurationValid = function (arrayBody, options, callback) requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -5275,7 +5275,7 @@ Dictionary.prototype.putDurationValid = function (arrayBody, options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5294,10 +5294,10 @@ Dictionary.prototype.putDurationValid = function (arrayBody, options, callback) * hex (25, 29, 43)} with each item encoded in base64 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5365,7 +5365,7 @@ Dictionary.prototype.getByteValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5414,12 +5414,12 @@ Dictionary.prototype.getByteValid = function (options, callback) { * hex (25, 29, 43)} with each elementencoded in base 64 * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5496,7 +5496,7 @@ Dictionary.prototype.putByteValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -5527,7 +5527,7 @@ Dictionary.prototype.putByteValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5546,10 +5546,10 @@ Dictionary.prototype.putByteValid = function (arrayBody, options, callback) { * item base64 encoded * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5617,7 +5617,7 @@ Dictionary.prototype.getByteInvalidNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5666,10 +5666,10 @@ Dictionary.prototype.getByteInvalidNull = function (options, callback) { * base64url", "1": "test string", "2": "Lorem ipsum"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5737,7 +5737,7 @@ Dictionary.prototype.getBase64Url = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5785,10 +5785,10 @@ Dictionary.prototype.getBase64Url = function (options, callback) { * Get dictionary of complex type null value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5856,7 +5856,7 @@ Dictionary.prototype.getComplexNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -5905,10 +5905,10 @@ Dictionary.prototype.getComplexNull = function (options, callback) { * Get empty dictionary of complex type {} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -5976,7 +5976,7 @@ Dictionary.prototype.getComplexEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6026,10 +6026,10 @@ Dictionary.prototype.getComplexEmpty = function (options, callback) { * "2"}, "1": null, "2": {"integer": 5, "string": "6"}} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6097,7 +6097,7 @@ Dictionary.prototype.getComplexItemNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6147,10 +6147,10 @@ Dictionary.prototype.getComplexItemNull = function (options, callback) { * "string": "2"}, "1:" {}, "2": {"integer": 5, "string": "6"}} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6218,7 +6218,7 @@ Dictionary.prototype.getComplexItemEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6268,10 +6268,10 @@ Dictionary.prototype.getComplexItemEmpty = function (options, callback) { * "1": {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6339,7 +6339,7 @@ Dictionary.prototype.getComplexValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6390,12 +6390,12 @@ Dictionary.prototype.getComplexValid = function (options, callback) { * "6"}} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6460,7 +6460,7 @@ Dictionary.prototype.putComplexValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -6491,7 +6491,7 @@ Dictionary.prototype.putComplexValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6509,10 +6509,10 @@ Dictionary.prototype.putComplexValid = function (arrayBody, options, callback) { * Get a null array * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6580,7 +6580,7 @@ Dictionary.prototype.getArrayNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6635,10 +6635,10 @@ Dictionary.prototype.getArrayNull = function (options, callback) { * Get an empty dictionary {} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6706,7 +6706,7 @@ Dictionary.prototype.getArrayEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6762,10 +6762,10 @@ Dictionary.prototype.getArrayEmpty = function (options, callback) { * ["7", "8", "9"]} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6833,7 +6833,7 @@ Dictionary.prototype.getArrayItemNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -6889,10 +6889,10 @@ Dictionary.prototype.getArrayItemNull = function (options, callback) { * "8", "9"]} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -6960,7 +6960,7 @@ Dictionary.prototype.getArrayItemEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7016,10 +7016,10 @@ Dictionary.prototype.getArrayItemEmpty = function (options, callback) { * "6"], "2": ["7", "8", "9"]} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7087,7 +7087,7 @@ Dictionary.prototype.getArrayValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7143,12 +7143,12 @@ Dictionary.prototype.getArrayValid = function (options, callback) { * "6"], "2": ["7", "8", "9"]} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7236,7 +7236,7 @@ Dictionary.prototype.putArrayValid = function (arrayBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -7267,7 +7267,7 @@ Dictionary.prototype.putArrayValid = function (arrayBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7285,10 +7285,10 @@ Dictionary.prototype.putArrayValid = function (arrayBody, options, callback) { * Get an dictionaries of dictionaries with value null * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7356,7 +7356,7 @@ Dictionary.prototype.getDictionaryNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7411,10 +7411,10 @@ Dictionary.prototype.getDictionaryNull = function (options, callback) { * Get an dictionaries of dictionaries of type with value {} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7482,7 +7482,7 @@ Dictionary.prototype.getDictionaryEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7539,10 +7539,10 @@ Dictionary.prototype.getDictionaryEmpty = function (options, callback) { * "8": "eight", "9": "nine"}} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7610,7 +7610,7 @@ Dictionary.prototype.getDictionaryItemNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7667,10 +7667,10 @@ Dictionary.prototype.getDictionaryItemNull = function (options, callback) { * "8": "eight", "9": "nine"}} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7738,7 +7738,7 @@ Dictionary.prototype.getDictionaryItemEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7795,10 +7795,10 @@ Dictionary.prototype.getDictionaryItemEmpty = function (options, callback) { * "five", "6": "six"}, "2": {"7": "seven", "8": "eight", "9": "nine"}} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -7866,7 +7866,7 @@ Dictionary.prototype.getDictionaryValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -7923,12 +7923,12 @@ Dictionary.prototype.getDictionaryValid = function (options, callback) { * "five", "6": "six"}, "2": {"7": "seven", "8": "eight", "9": "nine"}} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -8016,7 +8016,7 @@ Dictionary.prototype.putDictionaryValid = function (arrayBody, options, callback requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(arrayBody, {depth: null}))); return callback(serializationError); } @@ -8047,7 +8047,7 @@ Dictionary.prototype.putDictionaryValid = function (arrayBody, options, callback error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/operations/index.d.ts index 6b41d473d0..dc00b7bac9 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -25,10 +25,10 @@ export interface Dictionary { * Get null dictionary value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -39,10 +39,10 @@ export interface Dictionary { * Get empty dictionary value {} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -53,12 +53,12 @@ export interface Dictionary { * Set dictionary value empty {} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -69,10 +69,10 @@ export interface Dictionary { * Get Dictionary with null value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -83,10 +83,10 @@ export interface Dictionary { * Get Dictionary with null key * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -97,10 +97,10 @@ export interface Dictionary { * Get Dictionary with key as empty string * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -111,10 +111,10 @@ export interface Dictionary { * Get invalid Dictionary value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -125,10 +125,10 @@ export interface Dictionary { * Get boolean dictionary value {"0": true, "1": false, "2": false, "3": true } * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -139,12 +139,12 @@ export interface Dictionary { * Set dictionary value empty {"0": true, "1": false, "2": false, "3": true } * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -155,10 +155,10 @@ export interface Dictionary { * Get boolean dictionary value {"0": true, "1": null, "2": false } * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -169,10 +169,10 @@ export interface Dictionary { * Get boolean dictionary value '{"0": true, "1": "boolean", "2": false}' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -183,10 +183,10 @@ export interface Dictionary { * Get integer dictionary value {"0": 1, "1": -1, "2": 3, "3": 300} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -197,12 +197,12 @@ export interface Dictionary { * Set dictionary value empty {"0": 1, "1": -1, "2": 3, "3": 300} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -213,10 +213,10 @@ export interface Dictionary { * Get integer dictionary value {"0": 1, "1": null, "2": 0} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -227,10 +227,10 @@ export interface Dictionary { * Get integer dictionary value {"0": 1, "1": "integer", "2": 0} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -241,10 +241,10 @@ export interface Dictionary { * Get integer dictionary value {"0": 1, "1": -1, "2": 3, "3": 300} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -255,12 +255,12 @@ export interface Dictionary { * Set dictionary value empty {"0": 1, "1": -1, "2": 3, "3": 300} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -271,10 +271,10 @@ export interface Dictionary { * Get long dictionary value {"0": 1, "1": null, "2": 0} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -285,10 +285,10 @@ export interface Dictionary { * Get long dictionary value {"0": 1, "1": "integer", "2": 0} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -299,10 +299,10 @@ export interface Dictionary { * Get float dictionary value {"0": 0, "1": -0.01, "2": 1.2e20} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -313,12 +313,12 @@ export interface Dictionary { * Set dictionary value {"0": 0, "1": -0.01, "2": 1.2e20} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -329,10 +329,10 @@ export interface Dictionary { * Get float dictionary value {"0": 0.0, "1": null, "2": 1.2e20} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -343,10 +343,10 @@ export interface Dictionary { * Get boolean dictionary value {"0": 1.0, "1": "number", "2": 0.0} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -357,10 +357,10 @@ export interface Dictionary { * Get float dictionary value {"0": 0, "1": -0.01, "2": 1.2e20} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -371,12 +371,12 @@ export interface Dictionary { * Set dictionary value {"0": 0, "1": -0.01, "2": 1.2e20} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -387,10 +387,10 @@ export interface Dictionary { * Get float dictionary value {"0": 0.0, "1": null, "2": 1.2e20} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -401,10 +401,10 @@ export interface Dictionary { * Get boolean dictionary value {"0": 1.0, "1": "number", "2": 0.0} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -415,10 +415,10 @@ export interface Dictionary { * Get string dictionary value {"0": "foo1", "1": "foo2", "2": "foo3"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -429,12 +429,12 @@ export interface Dictionary { * Set dictionary value {"0": "foo1", "1": "foo2", "2": "foo3"} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -445,10 +445,10 @@ export interface Dictionary { * Get string dictionary value {"0": "foo", "1": null, "2": "foo2"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -459,10 +459,10 @@ export interface Dictionary { * Get string dictionary value {"0": "foo", "1": 123, "2": "foo2"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -474,10 +474,10 @@ export interface Dictionary { * "1492-10-12"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -489,12 +489,12 @@ export interface Dictionary { * "1492-10-12"} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -505,10 +505,10 @@ export interface Dictionary { * Get date dictionary value {"0": "2012-01-01", "1": null, "2": "1776-07-04"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -519,10 +519,10 @@ export interface Dictionary { * Get date dictionary value {"0": "2011-03-22", "1": "date"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -534,10 +534,10 @@ export interface Dictionary { * "1980-01-02T00:11:35+01:00", "2": "1492-10-12T10:15:01-08:00"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -549,12 +549,12 @@ export interface Dictionary { * "1980-01-02T00:11:35+01:00", "2": "1492-10-12T10:15:01-08:00"} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -565,10 +565,10 @@ export interface Dictionary { * Get date dictionary value {"0": "2000-12-01t00:00:01z", "1": null} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -579,10 +579,10 @@ export interface Dictionary { * Get date dictionary value {"0": "2000-12-01t00:00:01z", "1": "date-time"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -595,10 +595,10 @@ export interface Dictionary { * GMT"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -610,12 +610,12 @@ export interface Dictionary { * 02 Jan 1980 00:11:35 GMT", "2": "Wed, 12 Oct 1492 10:15:01 GMT"} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -627,10 +627,10 @@ export interface Dictionary { * "P5DT1H0M0S"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -641,12 +641,12 @@ export interface Dictionary { * Set dictionary value {"0": "P123DT22H14M12.011S", "1": "P5DT1H0M0S"} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -658,10 +658,10 @@ export interface Dictionary { * hex (25, 29, 43)} with each item encoded in base64 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -673,12 +673,12 @@ export interface Dictionary { * hex (25, 29, 43)} with each elementencoded in base 64 * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -690,10 +690,10 @@ export interface Dictionary { * item base64 encoded * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -705,10 +705,10 @@ export interface Dictionary { * base64url", "1": "test string", "2": "Lorem ipsum"} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -719,10 +719,10 @@ export interface Dictionary { * Get dictionary of complex type null value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -733,10 +733,10 @@ export interface Dictionary { * Get empty dictionary of complex type {} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -748,10 +748,10 @@ export interface Dictionary { * "2"}, "1": null, "2": {"integer": 5, "string": "6"}} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -763,10 +763,10 @@ export interface Dictionary { * "string": "2"}, "1:" {}, "2": {"integer": 5, "string": "6"}} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -778,10 +778,10 @@ export interface Dictionary { * "1": {"integer": 3, "string": "4"}, "2": {"integer": 5, "string": "6"}} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -794,12 +794,12 @@ export interface Dictionary { * "6"}} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -810,10 +810,10 @@ export interface Dictionary { * Get a null array * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -824,10 +824,10 @@ export interface Dictionary { * Get an empty dictionary {} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -839,10 +839,10 @@ export interface Dictionary { * ["7", "8", "9"]} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -854,10 +854,10 @@ export interface Dictionary { * "8", "9"]} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -869,10 +869,10 @@ export interface Dictionary { * "6"], "2": ["7", "8", "9"]} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -884,12 +884,12 @@ export interface Dictionary { * "6"], "2": ["7", "8", "9"]} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -900,10 +900,10 @@ export interface Dictionary { * Get an dictionaries of dictionaries with value null * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -914,10 +914,10 @@ export interface Dictionary { * Get an dictionaries of dictionaries of type with value {} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -930,10 +930,10 @@ export interface Dictionary { * "8": "eight", "9": "nine"}} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -946,10 +946,10 @@ export interface Dictionary { * "8": "eight", "9": "nine"}} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -962,10 +962,10 @@ export interface Dictionary { * "five", "6": "six"}, "2": {"7": "seven", "8": "eight", "9": "nine"}} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -978,12 +978,12 @@ export interface Dictionary { * "five", "6": "six"}, "2": {"7": "seven", "8": "eight", "9": "nine"}} * * @param {object} arrayBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/operations/index.js index 4113734ec7..1b50686dc5 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDictionary/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/autoRestDurationTestService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/autoRestDurationTestService.d.ts index 2b8a1e09d9..a53eb4f77c 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/autoRestDurationTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/autoRestDurationTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/autoRestDurationTestService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/autoRestDurationTestService.js index c900ec7aa1..97dda2d4c9 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/autoRestDurationTestService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/autoRestDurationTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/operations/duration.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/operations/duration.js index 6a4ab9d265..9dc8fdae7b 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/operations/duration.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/operations/duration.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function Duration(client) { * Get null duration value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -104,7 +104,7 @@ Duration.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -145,12 +145,12 @@ Duration.prototype.getNull = function (options, callback) { * Put a positive duration value * * @param {moment.duration} durationBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -215,7 +215,7 @@ Duration.prototype.putPositiveDuration = function (durationBody, options, callba requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(durationBody, {depth: null}))); return callback(serializationError); } @@ -246,7 +246,7 @@ Duration.prototype.putPositiveDuration = function (durationBody, options, callba error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -264,10 +264,10 @@ Duration.prototype.putPositiveDuration = function (durationBody, options, callba * Get a positive duration value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -335,7 +335,7 @@ Duration.prototype.getPositiveDuration = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -376,10 +376,10 @@ Duration.prototype.getPositiveDuration = function (options, callback) { * Get an invalid duration value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -447,7 +447,7 @@ Duration.prototype.getInvalid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/operations/index.d.ts index d73fd9c743..311183fb0d 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -25,10 +25,10 @@ export interface Duration { * Get null duration value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -39,12 +39,12 @@ export interface Duration { * Put a positive duration value * * @param {moment.duration} durationBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -55,10 +55,10 @@ export interface Duration { * Get a positive duration value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -69,10 +69,10 @@ export interface Duration { * Get an invalid duration value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/operations/index.js index e2953aaa3c..c388e5da81 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyDuration/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/autoRestSwaggerBATFileService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/autoRestSwaggerBATFileService.d.ts index ae9b371c71..f717af3bf6 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/autoRestSwaggerBATFileService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/autoRestSwaggerBATFileService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/autoRestSwaggerBATFileService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/autoRestSwaggerBATFileService.js index 6629e9a6ea..4ef4e1a911 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/autoRestSwaggerBATFileService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/autoRestSwaggerBATFileService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/operations/files.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/operations/files.js index 1d19e75289..e22d1e1b36 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/operations/files.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/operations/files.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function Files(client) { * Get file * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -105,7 +105,7 @@ Files.prototype.getFile = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -122,10 +122,10 @@ Files.prototype.getFile = function (options, callback) { * Get a large file * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -195,7 +195,7 @@ Files.prototype.getFileLarge = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -212,10 +212,10 @@ Files.prototype.getFileLarge = function (options, callback) { * Get empty file * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -285,7 +285,7 @@ Files.prototype.getEmptyFile = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/operations/index.d.ts index 87a1d13b26..1c32fc3364 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -25,10 +25,10 @@ export interface Files { * Get file * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -39,10 +39,10 @@ export interface Files { * Get a large file * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -53,10 +53,10 @@ export interface Files { * Get empty file * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/operations/index.js index 3e60fccf59..44601479ad 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFile/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/autoRestSwaggerBATFormDataService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/autoRestSwaggerBATFormDataService.d.ts index 1b3da51b0b..3000e718e4 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/autoRestSwaggerBATFormDataService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/autoRestSwaggerBATFormDataService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/autoRestSwaggerBATFormDataService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/autoRestSwaggerBATFormDataService.js index 8c36a32cf4..0f60b5ad60 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/autoRestSwaggerBATFormDataService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/autoRestSwaggerBATFormDataService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/operations/formdata.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/operations/formdata.js index d724d7cdc8..5f43a61c5a 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/operations/formdata.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/operations/formdata.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,15 +32,15 @@ function Formdata(client) { * Upload file * * @param {object} fileContent File to upload. - * + * * @param {string} fileName File name to upload. Name has to be spelled exactly * as written here. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -92,10 +92,10 @@ Formdata.prototype.uploadFile = function (fileContent, fileName, options, callba } } httpRequest.headers['Content-Type'] = 'multipart/form-data'; - // Serialize Request - var formData = {}; + // Serialize Request + var formData = {}; if (fileContent !== undefined && fileContent !== null) { - formData['fileContent'] = fileContent; + formData['fileContent'] = fileContent; } if (fileName !== undefined && fileName !== null) { formData['fileName'] = fileName; @@ -129,7 +129,7 @@ Formdata.prototype.uploadFile = function (fileContent, fileName, options, callba error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -146,12 +146,12 @@ Formdata.prototype.uploadFile = function (fileContent, fileName, options, callba * Upload file * * @param {object} fileContent File to upload. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -200,7 +200,7 @@ Formdata.prototype.uploadFileViaBody = function (fileContent, options, callback) } } httpRequest.headers['Content-Type'] = 'application/octet-stream'; - // Serialize Request + // Serialize Request var requestContent = fileContent; httpRequest.body = requestContent; // Send Request @@ -231,7 +231,7 @@ Formdata.prototype.uploadFileViaBody = function (fileContent, options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/operations/index.d.ts index 2da6351cce..60bf22ee58 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -25,15 +25,15 @@ export interface Formdata { * Upload file * * @param {object} fileContent File to upload. - * + * * @param {string} fileName File name to upload. Name has to be spelled exactly * as written here. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -44,12 +44,12 @@ export interface Formdata { * Upload file * * @param {object} fileContent File to upload. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/operations/index.js index beb9a948dd..0ea02197e3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyFormData/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/autoRestIntegerTestService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/autoRestIntegerTestService.d.ts index ee58f3bace..74471ef446 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/autoRestIntegerTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/autoRestIntegerTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/autoRestIntegerTestService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/autoRestIntegerTestService.js index d71c281654..d8c9871a26 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/autoRestIntegerTestService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/autoRestIntegerTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/operations/index.d.ts index 6fddcb9d06..02d7b57abb 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,10 +24,10 @@ export interface IntModel { * Get null Int value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -38,10 +38,10 @@ export interface IntModel { * Get invalid Int value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -52,10 +52,10 @@ export interface IntModel { * Get overflow Int32 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -66,10 +66,10 @@ export interface IntModel { * Get underflow Int32 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -80,10 +80,10 @@ export interface IntModel { * Get overflow Int64 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -94,10 +94,10 @@ export interface IntModel { * Get underflow Int64 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -108,12 +108,12 @@ export interface IntModel { * Put max int32 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -124,12 +124,12 @@ export interface IntModel { * Put max int64 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -140,12 +140,12 @@ export interface IntModel { * Put min int32 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -156,12 +156,12 @@ export interface IntModel { * Put min int64 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -172,10 +172,10 @@ export interface IntModel { * Get datetime encoded as Unix time value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -186,12 +186,12 @@ export interface IntModel { * Put datetime encoded as Unix time * * @param {date} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -202,10 +202,10 @@ export interface IntModel { * Get invalid Unix time value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -216,10 +216,10 @@ export interface IntModel { * Get null Unix time value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/operations/index.js index b3be824368..2f7d519359 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/operations/intModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/operations/intModel.js index 9b880ac59d..a9dc4c75ae 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/operations/intModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyInteger/operations/intModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function IntModel(client) { * Get null Int value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -103,7 +103,7 @@ IntModel.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -144,10 +144,10 @@ IntModel.prototype.getNull = function (options, callback) { * Get invalid Int value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -215,7 +215,7 @@ IntModel.prototype.getInvalid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -256,10 +256,10 @@ IntModel.prototype.getInvalid = function (options, callback) { * Get overflow Int32 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -327,7 +327,7 @@ IntModel.prototype.getOverflowInt32 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -368,10 +368,10 @@ IntModel.prototype.getOverflowInt32 = function (options, callback) { * Get underflow Int32 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -439,7 +439,7 @@ IntModel.prototype.getUnderflowInt32 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -480,10 +480,10 @@ IntModel.prototype.getUnderflowInt32 = function (options, callback) { * Get overflow Int64 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -551,7 +551,7 @@ IntModel.prototype.getOverflowInt64 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -592,10 +592,10 @@ IntModel.prototype.getOverflowInt64 = function (options, callback) { * Get underflow Int64 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -663,7 +663,7 @@ IntModel.prototype.getUnderflowInt64 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -704,12 +704,12 @@ IntModel.prototype.getUnderflowInt64 = function (options, callback) { * Put max int32 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -774,7 +774,7 @@ IntModel.prototype.putMax32 = function (intBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(intBody, {depth: null}))); return callback(serializationError); } @@ -805,7 +805,7 @@ IntModel.prototype.putMax32 = function (intBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -823,12 +823,12 @@ IntModel.prototype.putMax32 = function (intBody, options, callback) { * Put max int64 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -893,7 +893,7 @@ IntModel.prototype.putMax64 = function (intBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(intBody, {depth: null}))); return callback(serializationError); } @@ -924,7 +924,7 @@ IntModel.prototype.putMax64 = function (intBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -942,12 +942,12 @@ IntModel.prototype.putMax64 = function (intBody, options, callback) { * Put min int32 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1012,7 +1012,7 @@ IntModel.prototype.putMin32 = function (intBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(intBody, {depth: null}))); return callback(serializationError); } @@ -1043,7 +1043,7 @@ IntModel.prototype.putMin32 = function (intBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1061,12 +1061,12 @@ IntModel.prototype.putMin32 = function (intBody, options, callback) { * Put min int64 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1131,7 +1131,7 @@ IntModel.prototype.putMin64 = function (intBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(intBody, {depth: null}))); return callback(serializationError); } @@ -1162,7 +1162,7 @@ IntModel.prototype.putMin64 = function (intBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1180,10 +1180,10 @@ IntModel.prototype.putMin64 = function (intBody, options, callback) { * Get datetime encoded as Unix time value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1251,7 +1251,7 @@ IntModel.prototype.getUnixTime = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1292,12 +1292,12 @@ IntModel.prototype.getUnixTime = function (options, callback) { * Put datetime encoded as Unix time * * @param {date} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1321,7 +1321,7 @@ IntModel.prototype.putUnixTimeDate = function (intBody, options, callback) { } // Validate try { - if(!intBody || !(intBody instanceof Date || + if(!intBody || !(intBody instanceof Date || (typeof intBody.valueOf() === 'string' && !isNaN(Date.parse(intBody))))) { throw new Error('intBody cannot be null or undefined and it must be of type date.'); } @@ -1363,7 +1363,7 @@ IntModel.prototype.putUnixTimeDate = function (intBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(intBody, {depth: null}))); return callback(serializationError); } @@ -1394,7 +1394,7 @@ IntModel.prototype.putUnixTimeDate = function (intBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1412,10 +1412,10 @@ IntModel.prototype.putUnixTimeDate = function (intBody, options, callback) { * Get invalid Unix time value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1483,7 +1483,7 @@ IntModel.prototype.getInvalidUnixTime = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1524,10 +1524,10 @@ IntModel.prototype.getInvalidUnixTime = function (options, callback) { * Get null Unix time value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1595,7 +1595,7 @@ IntModel.prototype.getNullUnixTime = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/autoRestNumberTestService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/autoRestNumberTestService.d.ts index de2802a4ad..942d3e426f 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/autoRestNumberTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/autoRestNumberTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/autoRestNumberTestService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/autoRestNumberTestService.js index 89a4512e77..6c62efa82a 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/autoRestNumberTestService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/autoRestNumberTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/operations/index.d.ts index 9c3a7a1ec8..8ade4949b4 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,10 +24,10 @@ export interface Number { * Get null Number value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -38,10 +38,10 @@ export interface Number { * Get invalid float Number value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -52,10 +52,10 @@ export interface Number { * Get invalid double Number value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -66,10 +66,10 @@ export interface Number { * Get invalid decimal Number value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -80,12 +80,12 @@ export interface Number { * Put big float value 3.402823e+20 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -96,10 +96,10 @@ export interface Number { * Get big float value 3.402823e+20 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -110,12 +110,12 @@ export interface Number { * Put big double value 2.5976931e+101 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -126,10 +126,10 @@ export interface Number { * Get big double value 2.5976931e+101 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -140,12 +140,12 @@ export interface Number { * Put big double value 99999999.99 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -156,10 +156,10 @@ export interface Number { * Get big double value 99999999.99 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -170,12 +170,12 @@ export interface Number { * Put big double value -99999999.99 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -186,10 +186,10 @@ export interface Number { * Get big double value -99999999.99 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -200,12 +200,12 @@ export interface Number { * Put big decimal value 2.5976931e+101 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -216,10 +216,10 @@ export interface Number { * Get big decimal value 2.5976931e+101 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -230,12 +230,12 @@ export interface Number { * Put big decimal value 99999999.99 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -246,10 +246,10 @@ export interface Number { * Get big decimal value 99999999.99 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -260,12 +260,12 @@ export interface Number { * Put big decimal value -99999999.99 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -276,10 +276,10 @@ export interface Number { * Get big decimal value -99999999.99 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -290,12 +290,12 @@ export interface Number { * Put small float value 3.402823e-20 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -306,10 +306,10 @@ export interface Number { * Get big double value 3.402823e-20 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -320,12 +320,12 @@ export interface Number { * Put small double value 2.5976931e-101 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -336,10 +336,10 @@ export interface Number { * Get big double value 2.5976931e-101 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -350,12 +350,12 @@ export interface Number { * Put small decimal value 2.5976931e-101 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -366,10 +366,10 @@ export interface Number { * Get small decimal value 2.5976931e-101 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/operations/index.js index 8f1b1e85c3..9aa80a75a6 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/operations/number.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/operations/number.js index 41f1c179ae..072d499aaa 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/operations/number.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyNumber/operations/number.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function Number(client) { * Get null Number value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -103,7 +103,7 @@ Number.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -144,10 +144,10 @@ Number.prototype.getNull = function (options, callback) { * Get invalid float Number value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -215,7 +215,7 @@ Number.prototype.getInvalidFloat = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -256,10 +256,10 @@ Number.prototype.getInvalidFloat = function (options, callback) { * Get invalid double Number value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -327,7 +327,7 @@ Number.prototype.getInvalidDouble = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -368,10 +368,10 @@ Number.prototype.getInvalidDouble = function (options, callback) { * Get invalid decimal Number value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -439,7 +439,7 @@ Number.prototype.getInvalidDecimal = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -480,12 +480,12 @@ Number.prototype.getInvalidDecimal = function (options, callback) { * Put big float value 3.402823e+20 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -550,7 +550,7 @@ Number.prototype.putBigFloat = function (numberBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(numberBody, {depth: null}))); return callback(serializationError); } @@ -581,7 +581,7 @@ Number.prototype.putBigFloat = function (numberBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -599,10 +599,10 @@ Number.prototype.putBigFloat = function (numberBody, options, callback) { * Get big float value 3.402823e+20 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -670,7 +670,7 @@ Number.prototype.getBigFloat = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -711,12 +711,12 @@ Number.prototype.getBigFloat = function (options, callback) { * Put big double value 2.5976931e+101 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -781,7 +781,7 @@ Number.prototype.putBigDouble = function (numberBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(numberBody, {depth: null}))); return callback(serializationError); } @@ -812,7 +812,7 @@ Number.prototype.putBigDouble = function (numberBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -830,10 +830,10 @@ Number.prototype.putBigDouble = function (numberBody, options, callback) { * Get big double value 2.5976931e+101 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -901,7 +901,7 @@ Number.prototype.getBigDouble = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -942,12 +942,12 @@ Number.prototype.getBigDouble = function (options, callback) { * Put big double value 99999999.99 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1012,7 +1012,7 @@ Number.prototype.putBigDoublePositiveDecimal = function (numberBody, options, ca requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(numberBody, {depth: null}))); return callback(serializationError); } @@ -1043,7 +1043,7 @@ Number.prototype.putBigDoublePositiveDecimal = function (numberBody, options, ca error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1061,10 +1061,10 @@ Number.prototype.putBigDoublePositiveDecimal = function (numberBody, options, ca * Get big double value 99999999.99 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1132,7 +1132,7 @@ Number.prototype.getBigDoublePositiveDecimal = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1173,12 +1173,12 @@ Number.prototype.getBigDoublePositiveDecimal = function (options, callback) { * Put big double value -99999999.99 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1243,7 +1243,7 @@ Number.prototype.putBigDoubleNegativeDecimal = function (numberBody, options, ca requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(numberBody, {depth: null}))); return callback(serializationError); } @@ -1274,7 +1274,7 @@ Number.prototype.putBigDoubleNegativeDecimal = function (numberBody, options, ca error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1292,10 +1292,10 @@ Number.prototype.putBigDoubleNegativeDecimal = function (numberBody, options, ca * Get big double value -99999999.99 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1363,7 +1363,7 @@ Number.prototype.getBigDoubleNegativeDecimal = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1404,12 +1404,12 @@ Number.prototype.getBigDoubleNegativeDecimal = function (options, callback) { * Put big decimal value 2.5976931e+101 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1474,7 +1474,7 @@ Number.prototype.putBigDecimal = function (numberBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(numberBody, {depth: null}))); return callback(serializationError); } @@ -1505,7 +1505,7 @@ Number.prototype.putBigDecimal = function (numberBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1523,10 +1523,10 @@ Number.prototype.putBigDecimal = function (numberBody, options, callback) { * Get big decimal value 2.5976931e+101 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1594,7 +1594,7 @@ Number.prototype.getBigDecimal = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1635,12 +1635,12 @@ Number.prototype.getBigDecimal = function (options, callback) { * Put big decimal value 99999999.99 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1705,7 +1705,7 @@ Number.prototype.putBigDecimalPositiveDecimal = function (numberBody, options, c requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(numberBody, {depth: null}))); return callback(serializationError); } @@ -1736,7 +1736,7 @@ Number.prototype.putBigDecimalPositiveDecimal = function (numberBody, options, c error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1754,10 +1754,10 @@ Number.prototype.putBigDecimalPositiveDecimal = function (numberBody, options, c * Get big decimal value 99999999.99 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1825,7 +1825,7 @@ Number.prototype.getBigDecimalPositiveDecimal = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1866,12 +1866,12 @@ Number.prototype.getBigDecimalPositiveDecimal = function (options, callback) { * Put big decimal value -99999999.99 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1936,7 +1936,7 @@ Number.prototype.putBigDecimalNegativeDecimal = function (numberBody, options, c requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(numberBody, {depth: null}))); return callback(serializationError); } @@ -1967,7 +1967,7 @@ Number.prototype.putBigDecimalNegativeDecimal = function (numberBody, options, c error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1985,10 +1985,10 @@ Number.prototype.putBigDecimalNegativeDecimal = function (numberBody, options, c * Get big decimal value -99999999.99 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2056,7 +2056,7 @@ Number.prototype.getBigDecimalNegativeDecimal = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2097,12 +2097,12 @@ Number.prototype.getBigDecimalNegativeDecimal = function (options, callback) { * Put small float value 3.402823e-20 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2167,7 +2167,7 @@ Number.prototype.putSmallFloat = function (numberBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(numberBody, {depth: null}))); return callback(serializationError); } @@ -2198,7 +2198,7 @@ Number.prototype.putSmallFloat = function (numberBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2216,10 +2216,10 @@ Number.prototype.putSmallFloat = function (numberBody, options, callback) { * Get big double value 3.402823e-20 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2287,7 +2287,7 @@ Number.prototype.getSmallFloat = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2328,12 +2328,12 @@ Number.prototype.getSmallFloat = function (options, callback) { * Put small double value 2.5976931e-101 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2398,7 +2398,7 @@ Number.prototype.putSmallDouble = function (numberBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(numberBody, {depth: null}))); return callback(serializationError); } @@ -2429,7 +2429,7 @@ Number.prototype.putSmallDouble = function (numberBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2447,10 +2447,10 @@ Number.prototype.putSmallDouble = function (numberBody, options, callback) { * Get big double value 2.5976931e-101 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2518,7 +2518,7 @@ Number.prototype.getSmallDouble = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2559,12 +2559,12 @@ Number.prototype.getSmallDouble = function (options, callback) { * Put small decimal value 2.5976931e-101 * * @param {number} numberBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2629,7 +2629,7 @@ Number.prototype.putSmallDecimal = function (numberBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(numberBody, {depth: null}))); return callback(serializationError); } @@ -2660,7 +2660,7 @@ Number.prototype.putSmallDecimal = function (numberBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2678,10 +2678,10 @@ Number.prototype.putSmallDecimal = function (numberBody, options, callback) { * Get small decimal value 2.5976931e-101 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2749,7 +2749,7 @@ Number.prototype.getSmallDecimal = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/autoRestSwaggerBATService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/autoRestSwaggerBATService.d.ts index 06e095d21d..bdeed9c807 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/autoRestSwaggerBATService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/autoRestSwaggerBATService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/autoRestSwaggerBATService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/autoRestSwaggerBATService.js index 21a57e340a..43e9a79945 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/autoRestSwaggerBATService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/autoRestSwaggerBATService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/index.d.ts index 14674b8f15..1f23683cb5 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; @@ -28,7 +28,7 @@ export interface ErrorModel { * Initializes a new instance of the RefColorConstant class. * @constructor * @member {string} [field1] Sample string. - * + * */ export interface RefColorConstant { field1?: string; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/index.js index 34f1a75112..35e1c19256 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/refColorConstant.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/refColorConstant.js index 2a2e9ac69c..c8296093b7 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/refColorConstant.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/models/refColorConstant.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the RefColorConstant class. * @constructor * @member {string} [field1] Sample string. - * + * */ function RefColorConstant() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/enumModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/enumModel.js index 808c385946..3143a20779 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/enumModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/enumModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,10 +33,10 @@ function EnumModel(client) { * 'blue_color'. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -106,7 +106,7 @@ EnumModel.prototype.getNotExpandable = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -150,12 +150,12 @@ EnumModel.prototype.getNotExpandable = function (options, callback) { * * @param {string} stringBody Possible values include: 'red color', * 'green-color', 'blue_color' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -226,7 +226,7 @@ EnumModel.prototype.putNotExpandable = function (stringBody, options, callback) requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(stringBody, {depth: null}))); return callback(serializationError); } @@ -257,7 +257,7 @@ EnumModel.prototype.putNotExpandable = function (stringBody, options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -276,10 +276,10 @@ EnumModel.prototype.putNotExpandable = function (stringBody, options, callback) * 'blue_color'. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -349,7 +349,7 @@ EnumModel.prototype.getReferenced = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -393,12 +393,12 @@ EnumModel.prototype.getReferenced = function (options, callback) { * * @param {string} enumStringBody Possible values include: 'red color', * 'green-color', 'blue_color' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -469,7 +469,7 @@ EnumModel.prototype.putReferenced = function (enumStringBody, options, callback) requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(enumStringBody, {depth: null}))); return callback(serializationError); } @@ -500,7 +500,7 @@ EnumModel.prototype.putReferenced = function (enumStringBody, options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -518,10 +518,10 @@ EnumModel.prototype.putReferenced = function (enumStringBody, options, callback) * Get value 'green-color' from the constant. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -590,7 +590,7 @@ EnumModel.prototype.getReferencedConstant = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -625,12 +625,12 @@ EnumModel.prototype.getReferencedConstant = function (options, callback) { * Sends value 'green-color' from a constant * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.field1] Sample string. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -699,7 +699,7 @@ EnumModel.prototype.putReferencedConstant = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(enumStringBody, {depth: null}))); return callback(serializationError); } @@ -730,7 +730,7 @@ EnumModel.prototype.putReferencedConstant = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/index.d.ts index f401e5f26f..1b4ea1a4a3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,10 +24,10 @@ export interface String { * Get null string value value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -38,12 +38,12 @@ export interface String { * Set string value null * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.stringBody] Possible values include: '' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -54,10 +54,10 @@ export interface String { * Get empty string value value '' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -68,12 +68,12 @@ export interface String { * Set string value empty '' * * @param {string} stringBody Possible values include: '' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -85,10 +85,10 @@ export interface String { * '啊齄丂狛狜隣郎隣兀﨩ˊ▇█〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€ ' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -101,12 +101,12 @@ export interface String { * * @param {string} stringBody Possible values include: * '啊齄丂狛狜隣郎隣兀﨩ˊ▇█〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€ ' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -119,10 +119,10 @@ export interface String { * their country' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -136,12 +136,12 @@ export interface String { * * @param {string} stringBody Possible values include: ' Now is the time for * all good men to come to the aid of their country ' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -152,10 +152,10 @@ export interface String { * Get String value when no string value is sent in response payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -166,10 +166,10 @@ export interface String { * Get value that is base64 encoded * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -180,10 +180,10 @@ export interface String { * Get value that is base64url encoded * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -194,12 +194,12 @@ export interface String { * Put value that is base64url encoded * * @param {buffer} stringBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -210,10 +210,10 @@ export interface String { * Get null value that is expected to be base64url encoded * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -234,10 +234,10 @@ export interface EnumModel { * 'blue_color'. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -250,12 +250,12 @@ export interface EnumModel { * * @param {string} stringBody Possible values include: 'red color', * 'green-color', 'blue_color' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -267,10 +267,10 @@ export interface EnumModel { * 'blue_color'. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -283,12 +283,12 @@ export interface EnumModel { * * @param {string} enumStringBody Possible values include: 'red color', * 'green-color', 'blue_color' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -299,10 +299,10 @@ export interface EnumModel { * Get value 'green-color' from the constant. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -313,12 +313,12 @@ export interface EnumModel { * Sends value 'green-color' from a constant * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.field1] Sample string. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/index.js index 950e987e91..7ad973396f 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/string.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/string.js index 67cc3e439f..44f8ef675a 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/string.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/BodyString/operations/string.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function String(client) { * Get null string value value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -103,7 +103,7 @@ String.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -144,12 +144,12 @@ String.prototype.getNull = function (options, callback) { * Set string value null * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.stringBody] Possible values include: '' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -215,7 +215,7 @@ String.prototype.putNull = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(stringBody, {depth: null}))); return callback(serializationError); } @@ -246,7 +246,7 @@ String.prototype.putNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -264,10 +264,10 @@ String.prototype.putNull = function (options, callback) { * Get empty string value value '' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -335,7 +335,7 @@ String.prototype.getEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -376,12 +376,12 @@ String.prototype.getEmpty = function (options, callback) { * Set string value empty '' * * @param {string} stringBody Possible values include: '' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -446,7 +446,7 @@ String.prototype.putEmpty = function (stringBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(stringBody, {depth: null}))); return callback(serializationError); } @@ -477,7 +477,7 @@ String.prototype.putEmpty = function (stringBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -496,10 +496,10 @@ String.prototype.putEmpty = function (stringBody, options, callback) { * '啊齄丂狛狜隣郎隣兀﨩ˊ▇█〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€ ' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -567,7 +567,7 @@ String.prototype.getMbcs = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -610,12 +610,12 @@ String.prototype.getMbcs = function (options, callback) { * * @param {string} stringBody Possible values include: * '啊齄丂狛狜隣郎隣兀﨩ˊ▇█〞〡¦℡㈱‐ー﹡﹢﹫、〓ⅰⅹ⒈€㈠㈩ⅠⅫ! ̄ぁんァヶΑ︴АЯаяāɡㄅㄩ─╋︵﹄︻︱︳︴ⅰⅹɑɡ〇〾⿻⺁䜣€ ' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -680,7 +680,7 @@ String.prototype.putMbcs = function (stringBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(stringBody, {depth: null}))); return callback(serializationError); } @@ -711,7 +711,7 @@ String.prototype.putMbcs = function (stringBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -731,10 +731,10 @@ String.prototype.putMbcs = function (stringBody, options, callback) { * their country' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -802,7 +802,7 @@ String.prototype.getWhitespace = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -846,12 +846,12 @@ String.prototype.getWhitespace = function (options, callback) { * * @param {string} stringBody Possible values include: ' Now is the time for * all good men to come to the aid of their country ' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -916,7 +916,7 @@ String.prototype.putWhitespace = function (stringBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(stringBody, {depth: null}))); return callback(serializationError); } @@ -947,7 +947,7 @@ String.prototype.putWhitespace = function (stringBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -965,10 +965,10 @@ String.prototype.putWhitespace = function (stringBody, options, callback) { * Get String value when no string value is sent in response payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1036,7 +1036,7 @@ String.prototype.getNotProvided = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1077,10 +1077,10 @@ String.prototype.getNotProvided = function (options, callback) { * Get value that is base64 encoded * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1148,7 +1148,7 @@ String.prototype.getBase64Encoded = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1189,10 +1189,10 @@ String.prototype.getBase64Encoded = function (options, callback) { * Get value that is base64url encoded * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1260,7 +1260,7 @@ String.prototype.getBase64UrlEncoded = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1301,12 +1301,12 @@ String.prototype.getBase64UrlEncoded = function (options, callback) { * Put value that is base64url encoded * * @param {buffer} stringBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1371,7 +1371,7 @@ String.prototype.putBase64UrlEncoded = function (stringBody, options, callback) requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(stringBody, {depth: null}))); return callback(serializationError); } @@ -1402,7 +1402,7 @@ String.prototype.putBase64UrlEncoded = function (stringBody, options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1420,10 +1420,10 @@ String.prototype.putBase64UrlEncoded = function (stringBody, options, callback) * Get null value that is expected to be base64url encoded * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1491,7 +1491,7 @@ String.prototype.getNullBase64UrlEncoded = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/complexModelClient.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/complexModelClient.d.ts index 72afc05a39..2fb337b570 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/complexModelClient.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/complexModelClient.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -43,12 +43,12 @@ declare class ComplexModelClient { * about each product, and lists the products in the proper display order. * * @param {string} resourceGroupName Resource Group ID. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -61,17 +61,17 @@ declare class ComplexModelClient { * Resets products. * * @param {string} subscriptionId Subscription ID. - * + * * @param {string} resourceGroupName Resource Group ID. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.productDictionaryOfArray] Dictionary of Array of * product - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -84,17 +84,17 @@ declare class ComplexModelClient { * Resets products. * * @param {string} subscriptionId Subscription ID. - * + * * @param {string} resourceGroupName Resource Group ID. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.productArrayOfDictionary] Array of dictionary of * products - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/complexModelClient.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/complexModelClient.js index d2e11bc2f5..46382c2848 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/complexModelClient.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/complexModelClient.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -64,12 +64,12 @@ util.inherits(ComplexModelClient, ServiceClient); * about each product, and lists the products in the proper display order. * * @param {string} resourceGroupName Resource Group ID. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -153,7 +153,7 @@ ComplexModelClient.prototype.list = function (resourceGroupName, options, callba error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -190,17 +190,17 @@ ComplexModelClient.prototype.list = function (resourceGroupName, options, callba * Resets products. * * @param {string} subscriptionId Subscription ID. - * + * * @param {string} resourceGroupName Resource Group ID. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.productDictionaryOfArray] Dictionary of Array of * product - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -276,7 +276,7 @@ ComplexModelClient.prototype.create = function (subscriptionId, resourceGroupNam requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -307,7 +307,7 @@ ComplexModelClient.prototype.create = function (subscriptionId, resourceGroupNam error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -344,17 +344,17 @@ ComplexModelClient.prototype.create = function (subscriptionId, resourceGroupNam * Resets products. * * @param {string} subscriptionId Subscription ID. - * + * * @param {string} resourceGroupName Resource Group ID. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.productArrayOfDictionary] Array of dictionary of * products - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -430,7 +430,7 @@ ComplexModelClient.prototype.update = function (subscriptionId, resourceGroupNam requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -461,7 +461,7 @@ ComplexModelClient.prototype.update = function (subscriptionId, resourceGroupNam error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogArray.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogArray.js index 32d675b5b6..3192873955 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogArray.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogArray.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the CatalogArray class. * @constructor * @member {array} [productArray] Array of products - * + * */ function CatalogArray() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogArrayOfDictionary.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogArrayOfDictionary.js index 13547a5dbb..6dcaa0afe6 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogArrayOfDictionary.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogArrayOfDictionary.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the CatalogArrayOfDictionary class. * @constructor * @member {array} [productArrayOfDictionary] Array of dictionary of products - * + * */ function CatalogArrayOfDictionary() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogDictionary.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogDictionary.js index ae49449111..99ed78b382 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogDictionary.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogDictionary.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,7 +17,7 @@ var models = require('./index'); * Initializes a new instance of the CatalogDictionary class. * @constructor * @member {object} [productDictionary] Dictionary of products - * + * */ function CatalogDictionary() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogDictionaryOfArray.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogDictionaryOfArray.js index 490cc6acc0..8d4da8edba 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogDictionaryOfArray.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/catalogDictionaryOfArray.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the CatalogDictionaryOfArray class. * @constructor * @member {object} [productDictionaryOfArray] Dictionary of Array of product - * + * */ function CatalogDictionaryOfArray() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/index.d.ts index 9f912f5ef5..fb6a13cef6 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -18,16 +18,16 @@ * @member {string} [productId] Unique identifier representing a specific * product for a given latitude & longitude. For example, uberX in San * Francisco will have a different product_id than uberX in Los Angeles. - * + * * @member {string} [description] Description of product. - * + * * @member {string} [displayName] Display name of product. - * + * * @member {string} [capacity] Capacity of product. For example, 4 people. * Default value: '100' . - * + * * @member {string} [image] Image URL representing the product. - * + * */ export interface Product { productId?: string; @@ -42,7 +42,7 @@ export interface Product { * Initializes a new instance of the CatalogDictionary class. * @constructor * @member {object} [productDictionary] Dictionary of products - * + * */ export interface CatalogDictionary { productDictionary?: { [propertyName: string]: Product }; @@ -53,7 +53,7 @@ export interface CatalogDictionary { * Initializes a new instance of the CatalogArray class. * @constructor * @member {array} [productArray] Array of products - * + * */ export interface CatalogArray { productArray?: Product[]; @@ -64,7 +64,7 @@ export interface CatalogArray { * Initializes a new instance of the CatalogArrayOfDictionary class. * @constructor * @member {array} [productArrayOfDictionary] Array of dictionary of products - * + * */ export interface CatalogArrayOfDictionary { productArrayOfDictionary?: { [propertyName: string]: Product }[]; @@ -75,7 +75,7 @@ export interface CatalogArrayOfDictionary { * Initializes a new instance of the CatalogDictionaryOfArray class. * @constructor * @member {object} [productDictionaryOfArray] Dictionary of Array of product - * + * */ export interface CatalogDictionaryOfArray { productDictionaryOfArray?: { [propertyName: string]: Product[] }; @@ -86,9 +86,9 @@ export interface CatalogDictionaryOfArray { * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/index.js index 3af2bb2f7d..8292bf8464 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/product.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/product.js index f6631895cd..bcf9a9e6bb 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/product.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ComplexModelClient/models/product.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,16 +19,16 @@ * @member {string} [productId] Unique identifier representing a specific * product for a given latitude & longitude. For example, uberX in San * Francisco will have a different product_id than uberX in Los Angeles. - * + * * @member {string} [description] Description of product. - * + * * @member {string} [displayName] Display name of product. - * + * * @member {string} [capacity] Capacity of product. For example, 4 people. * Default value: '100' . - * + * * @member {string} [image] Image URL representing the product. - * + * */ function Product() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/compositeBoolInt.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/compositeBoolInt.d.ts index b9d7151a2a..5c3c340008 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/compositeBoolInt.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/compositeBoolInt.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/compositeBoolInt.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/compositeBoolInt.js index 1f13b77d58..f4b2d2de55 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/compositeBoolInt.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/compositeBoolInt.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/bool.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/bool.js index 44ada8167a..56699f368a 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/bool.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/bool.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function Bool(client) { * Get true Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -103,7 +103,7 @@ Bool.prototype.getTrue = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -144,12 +144,12 @@ Bool.prototype.getTrue = function (options, callback) { * Set Boolean value true * * @param {boolean} boolBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -214,7 +214,7 @@ Bool.prototype.putTrue = function (boolBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(boolBody, {depth: null}))); return callback(serializationError); } @@ -245,7 +245,7 @@ Bool.prototype.putTrue = function (boolBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -263,10 +263,10 @@ Bool.prototype.putTrue = function (boolBody, options, callback) { * Get false Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -334,7 +334,7 @@ Bool.prototype.getFalse = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -375,12 +375,12 @@ Bool.prototype.getFalse = function (options, callback) { * Set Boolean value false * * @param {boolean} boolBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -445,7 +445,7 @@ Bool.prototype.putFalse = function (boolBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(boolBody, {depth: null}))); return callback(serializationError); } @@ -476,7 +476,7 @@ Bool.prototype.putFalse = function (boolBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -494,10 +494,10 @@ Bool.prototype.putFalse = function (boolBody, options, callback) { * Get null Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -565,7 +565,7 @@ Bool.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -606,10 +606,10 @@ Bool.prototype.getNull = function (options, callback) { * Get invalid Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -677,7 +677,7 @@ Bool.prototype.getInvalid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/index.d.ts index 507488a58f..031d3c6a39 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,10 +24,10 @@ export interface Bool { * Get true Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -38,12 +38,12 @@ export interface Bool { * Set Boolean value true * * @param {boolean} boolBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -54,10 +54,10 @@ export interface Bool { * Get false Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -68,12 +68,12 @@ export interface Bool { * Set Boolean value false * * @param {boolean} boolBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -84,10 +84,10 @@ export interface Bool { * Get null Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -98,10 +98,10 @@ export interface Bool { * Get invalid Boolean value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -121,10 +121,10 @@ export interface IntModel { * Get null Int value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -135,10 +135,10 @@ export interface IntModel { * Get invalid Int value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -149,10 +149,10 @@ export interface IntModel { * Get overflow Int32 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -163,10 +163,10 @@ export interface IntModel { * Get underflow Int32 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -177,10 +177,10 @@ export interface IntModel { * Get overflow Int64 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -191,10 +191,10 @@ export interface IntModel { * Get underflow Int64 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -205,12 +205,12 @@ export interface IntModel { * Put max int32 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -221,12 +221,12 @@ export interface IntModel { * Put max int64 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -237,12 +237,12 @@ export interface IntModel { * Put min int32 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -253,12 +253,12 @@ export interface IntModel { * Put min int64 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -269,10 +269,10 @@ export interface IntModel { * Get datetime encoded as Unix time value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -283,12 +283,12 @@ export interface IntModel { * Put datetime encoded as Unix time * * @param {date} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -299,10 +299,10 @@ export interface IntModel { * Get invalid Unix time value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -313,10 +313,10 @@ export interface IntModel { * Get null Unix time value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/index.js index 5931d2a9f4..b5ffae5bc3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/intModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/intModel.js index f474eeea6b..9f248fc550 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/intModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/operations/intModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function IntModel(client) { * Get null Int value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -103,7 +103,7 @@ IntModel.prototype.getNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -144,10 +144,10 @@ IntModel.prototype.getNull = function (options, callback) { * Get invalid Int value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -215,7 +215,7 @@ IntModel.prototype.getInvalid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -256,10 +256,10 @@ IntModel.prototype.getInvalid = function (options, callback) { * Get overflow Int32 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -327,7 +327,7 @@ IntModel.prototype.getOverflowInt32 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -368,10 +368,10 @@ IntModel.prototype.getOverflowInt32 = function (options, callback) { * Get underflow Int32 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -439,7 +439,7 @@ IntModel.prototype.getUnderflowInt32 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -480,10 +480,10 @@ IntModel.prototype.getUnderflowInt32 = function (options, callback) { * Get overflow Int64 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -551,7 +551,7 @@ IntModel.prototype.getOverflowInt64 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -592,10 +592,10 @@ IntModel.prototype.getOverflowInt64 = function (options, callback) { * Get underflow Int64 value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -663,7 +663,7 @@ IntModel.prototype.getUnderflowInt64 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -704,12 +704,12 @@ IntModel.prototype.getUnderflowInt64 = function (options, callback) { * Put max int32 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -774,7 +774,7 @@ IntModel.prototype.putMax32 = function (intBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(intBody, {depth: null}))); return callback(serializationError); } @@ -805,7 +805,7 @@ IntModel.prototype.putMax32 = function (intBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -823,12 +823,12 @@ IntModel.prototype.putMax32 = function (intBody, options, callback) { * Put max int64 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -893,7 +893,7 @@ IntModel.prototype.putMax64 = function (intBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(intBody, {depth: null}))); return callback(serializationError); } @@ -924,7 +924,7 @@ IntModel.prototype.putMax64 = function (intBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -942,12 +942,12 @@ IntModel.prototype.putMax64 = function (intBody, options, callback) { * Put min int32 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1012,7 +1012,7 @@ IntModel.prototype.putMin32 = function (intBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(intBody, {depth: null}))); return callback(serializationError); } @@ -1043,7 +1043,7 @@ IntModel.prototype.putMin32 = function (intBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1061,12 +1061,12 @@ IntModel.prototype.putMin32 = function (intBody, options, callback) { * Put min int64 value * * @param {number} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1131,7 +1131,7 @@ IntModel.prototype.putMin64 = function (intBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(intBody, {depth: null}))); return callback(serializationError); } @@ -1162,7 +1162,7 @@ IntModel.prototype.putMin64 = function (intBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1180,10 +1180,10 @@ IntModel.prototype.putMin64 = function (intBody, options, callback) { * Get datetime encoded as Unix time value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1251,7 +1251,7 @@ IntModel.prototype.getUnixTime = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1292,12 +1292,12 @@ IntModel.prototype.getUnixTime = function (options, callback) { * Put datetime encoded as Unix time * * @param {date} intBody - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1321,7 +1321,7 @@ IntModel.prototype.putUnixTimeDate = function (intBody, options, callback) { } // Validate try { - if(!intBody || !(intBody instanceof Date || + if(!intBody || !(intBody instanceof Date || (typeof intBody.valueOf() === 'string' && !isNaN(Date.parse(intBody))))) { throw new Error('intBody cannot be null or undefined and it must be of type date.'); } @@ -1363,7 +1363,7 @@ IntModel.prototype.putUnixTimeDate = function (intBody, options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(intBody, {depth: null}))); return callback(serializationError); } @@ -1394,7 +1394,7 @@ IntModel.prototype.putUnixTimeDate = function (intBody, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1412,10 +1412,10 @@ IntModel.prototype.putUnixTimeDate = function (intBody, options, callback) { * Get invalid Unix time value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1483,7 +1483,7 @@ IntModel.prototype.getInvalidUnixTime = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1524,10 +1524,10 @@ IntModel.prototype.getInvalidUnixTime = function (options, callback) { * Get null Unix time value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1595,7 +1595,7 @@ IntModel.prototype.getNullUnixTime = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.d.ts index 55373a0e96..cd6aa281d7 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.js index 84e01146a9..0c1c0756b6 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/autoRestParameterizedHostTestClient.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -46,7 +46,7 @@ function AutoRestParameterizedHostTestClient(options) { AutoRestParameterizedHostTestClient['super_'].call(this, null, options); this.baseUri = 'http://{accountName}{host}'; - if(options.host !== null && options.host !== undefined) { + if(options.host !== null && options.host !== undefined) { this.host = options.host; } this.paths = new operations.Paths(this); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.d.ts index 4080bdf952..aed671ca9b 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,12 +24,12 @@ export interface Paths { * Get a 200 to test a valid base uri * * @param {string} accountName Account Name - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.js index 412d88e676..68e5f84839 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/paths.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/paths.js index c771271a12..4ba3d576e0 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/paths.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUri/operations/paths.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,12 +32,12 @@ function Paths(client) { * Get a 200 to test a valid base uri * * @param {string} accountName Account Name - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -118,7 +118,7 @@ Paths.prototype.getEmpty = function (accountName, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autoRestParameterizedCustomHostTestClient.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autoRestParameterizedCustomHostTestClient.d.ts index 98c22ab85f..2428655fb6 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autoRestParameterizedCustomHostTestClient.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autoRestParameterizedCustomHostTestClient.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autoRestParameterizedCustomHostTestClient.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autoRestParameterizedCustomHostTestClient.js index 391f7b50de..e80945f1ba 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autoRestParameterizedCustomHostTestClient.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/autoRestParameterizedCustomHostTestClient.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -52,7 +52,7 @@ function AutoRestParameterizedCustomHostTestClient(subscriptionId, options) { this.baseUri = '{vault}{secret}{dnsSuffix}'; this.subscriptionId = subscriptionId; - if(options.dnsSuffix !== null && options.dnsSuffix !== undefined) { + if(options.dnsSuffix !== null && options.dnsSuffix !== undefined) { this.dnsSuffix = options.dnsSuffix; } this.paths = new operations.Paths(this); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/operations/index.d.ts index 3fa4ea5d9b..c7700ad08d 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,18 +24,18 @@ export interface Paths { * Get a 200 to test a valid base uri * * @param {string} vault The vault name, e.g. https://myvault - * + * * @param {string} secret Secret value. - * + * * @param {string} keyName The key name with value 'key1'. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.keyVersion] The key version. Default value 'v1'. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/operations/index.js index 412d88e676..68e5f84839 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/operations/paths.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/operations/paths.js index 7ce0e6b115..27aec61306 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/operations/paths.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/operations/paths.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,18 +32,18 @@ function Paths(client) { * Get a 200 to test a valid base uri * * @param {string} vault The vault name, e.g. https://myvault - * + * * @param {string} secret Secret value. - * + * * @param {string} keyName The key name with value 'key1'. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.keyVersion] The key version. Default value 'v1'. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -147,7 +147,7 @@ Paths.prototype.getEmpty = function (vault, secret, keyName, options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/autoRestSwaggerBATHeaderService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/autoRestSwaggerBATHeaderService.d.ts index 4762e4add1..89150889d6 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/autoRestSwaggerBATHeaderService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/autoRestSwaggerBATHeaderService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/autoRestSwaggerBATHeaderService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/autoRestSwaggerBATHeaderService.js index 3c43093d94..7eeca20e21 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/autoRestSwaggerBATHeaderService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/autoRestSwaggerBATHeaderService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/operations/header.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/operations/header.js index 90ad028570..99cfe23f8e 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/operations/header.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/operations/header.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -34,12 +34,12 @@ function Header(client) { * * @param {string} userAgent Send a post request with header value * "User-Agent": "overwrite" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -118,7 +118,7 @@ Header.prototype.paramExistingKey = function (userAgent, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -136,10 +136,10 @@ Header.prototype.paramExistingKey = function (userAgent, options, callback) { * Get a response with header value "User-Agent": "overwrite" * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -207,7 +207,7 @@ Header.prototype.responseExistingKey = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -226,12 +226,12 @@ Header.prototype.responseExistingKey = function (options, callback) { * * @param {string} contentType Send a post request with header value * "Content-Type": "text/html" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -310,7 +310,7 @@ Header.prototype.paramProtectedKey = function (contentType, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -328,10 +328,10 @@ Header.prototype.paramProtectedKey = function (contentType, options, callback) { * Get a response with header value "Content-Type": "text/html" * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -399,7 +399,7 @@ Header.prototype.responseProtectedKey = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -419,14 +419,14 @@ Header.prototype.responseProtectedKey = function (options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {number} value Send a post request with header values 1 or -2 - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -511,7 +511,7 @@ Header.prototype.paramInteger = function (scenario, value, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -530,12 +530,12 @@ Header.prototype.paramInteger = function (scenario, value, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -614,7 +614,7 @@ Header.prototype.responseInteger = function (scenario, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -634,14 +634,14 @@ Header.prototype.responseInteger = function (scenario, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {number} value Send a post request with header values 105 or -2 - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -726,7 +726,7 @@ Header.prototype.paramLong = function (scenario, value, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -745,12 +745,12 @@ Header.prototype.paramLong = function (scenario, value, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -829,7 +829,7 @@ Header.prototype.responseLong = function (scenario, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -849,14 +849,14 @@ Header.prototype.responseLong = function (scenario, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {number} value Send a post request with header values 0.07 or -3.0 - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -941,7 +941,7 @@ Header.prototype.paramFloat = function (scenario, value, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -960,12 +960,12 @@ Header.prototype.paramFloat = function (scenario, value, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1044,7 +1044,7 @@ Header.prototype.responseFloat = function (scenario, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1064,14 +1064,14 @@ Header.prototype.responseFloat = function (scenario, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {number} value Send a post request with header values 7e120 or -3.0 - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1156,7 +1156,7 @@ Header.prototype.paramDouble = function (scenario, value, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1175,12 +1175,12 @@ Header.prototype.paramDouble = function (scenario, value, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1259,7 +1259,7 @@ Header.prototype.responseDouble = function (scenario, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1279,14 +1279,14 @@ Header.prototype.responseDouble = function (scenario, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "true" or "false" - * + * * @param {boolean} value Send a post request with header values true or false - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1371,7 +1371,7 @@ Header.prototype.paramBool = function (scenario, value, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1390,12 +1390,12 @@ Header.prototype.paramBool = function (scenario, value, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "true" or "false" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1474,7 +1474,7 @@ Header.prototype.responseBool = function (scenario, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1495,15 +1495,15 @@ Header.prototype.responseBool = function (scenario, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "null" or "empty" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.value] Send a post request with header values "The * quick brown fox jumps over the lazy dog" or null or "" - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1589,7 +1589,7 @@ Header.prototype.paramString = function (scenario, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1609,12 +1609,12 @@ Header.prototype.paramString = function (scenario, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "null" or "empty" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1693,7 +1693,7 @@ Header.prototype.responseString = function (scenario, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1713,15 +1713,15 @@ Header.prototype.responseString = function (scenario, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "min" - * + * * @param {date} value Send a post request with header values "2010-01-01" or * "0001-01-01" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1748,7 +1748,7 @@ Header.prototype.paramDate = function (scenario, value, options, callback) { if (scenario === null || scenario === undefined || typeof scenario.valueOf() !== 'string') { throw new Error('scenario cannot be null or undefined and it must be of type string.'); } - if(!value || !(value instanceof Date || + if(!value || !(value instanceof Date || (typeof value.valueOf() === 'string' && !isNaN(Date.parse(value))))) { throw new Error('value cannot be null or undefined and it must be of type date.'); } @@ -1807,7 +1807,7 @@ Header.prototype.paramDate = function (scenario, value, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1826,12 +1826,12 @@ Header.prototype.paramDate = function (scenario, value, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "min" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1910,7 +1910,7 @@ Header.prototype.responseDate = function (scenario, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1930,15 +1930,15 @@ Header.prototype.responseDate = function (scenario, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "min" - * + * * @param {date} value Send a post request with header values * "2010-01-01T12:34:56Z" or "0001-01-01T00:00:00Z" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1965,7 +1965,7 @@ Header.prototype.paramDatetime = function (scenario, value, options, callback) { if (scenario === null || scenario === undefined || typeof scenario.valueOf() !== 'string') { throw new Error('scenario cannot be null or undefined and it must be of type string.'); } - if(!value || !(value instanceof Date || + if(!value || !(value instanceof Date || (typeof value.valueOf() === 'string' && !isNaN(Date.parse(value))))) { throw new Error('value cannot be null or undefined and it must be of type date.'); } @@ -2024,7 +2024,7 @@ Header.prototype.paramDatetime = function (scenario, value, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2044,12 +2044,12 @@ Header.prototype.paramDatetime = function (scenario, value, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "min" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2128,7 +2128,7 @@ Header.prototype.responseDatetime = function (scenario, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2149,15 +2149,15 @@ Header.prototype.responseDatetime = function (scenario, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "min" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {date} [options.value] Send a post request with header values "Wed, * 01 Jan 2010 12:34:56 GMT" or "Mon, 01 Jan 0001 00:00:00 GMT" - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2185,7 +2185,7 @@ Header.prototype.paramDatetimeRfc1123 = function (scenario, options, callback) { if (scenario === null || scenario === undefined || typeof scenario.valueOf() !== 'string') { throw new Error('scenario cannot be null or undefined and it must be of type string.'); } - if (value && !(value instanceof Date || + if (value && !(value instanceof Date || (typeof value.valueOf() === 'string' && !isNaN(Date.parse(value))))) { throw new Error('value must be of type date.'); } @@ -2244,7 +2244,7 @@ Header.prototype.paramDatetimeRfc1123 = function (scenario, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2264,12 +2264,12 @@ Header.prototype.paramDatetimeRfc1123 = function (scenario, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "min" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2348,7 +2348,7 @@ Header.prototype.responseDatetimeRfc1123 = function (scenario, options, callback error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2368,15 +2368,15 @@ Header.prototype.responseDatetimeRfc1123 = function (scenario, options, callback * * @param {string} scenario Send a post request with header values "scenario": * "valid" - * + * * @param {moment.duration} value Send a post request with header values * "P123DT22H14M12.011S" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2461,7 +2461,7 @@ Header.prototype.paramDuration = function (scenario, value, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2480,12 +2480,12 @@ Header.prototype.paramDuration = function (scenario, value, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "valid" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2564,7 +2564,7 @@ Header.prototype.responseDuration = function (scenario, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2584,14 +2584,14 @@ Header.prototype.responseDuration = function (scenario, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "valid" - * + * * @param {buffer} value Send a post request with header values "啊齄丂狛狜隣郎隣兀﨩" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2676,7 +2676,7 @@ Header.prototype.paramByte = function (scenario, value, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2695,12 +2695,12 @@ Header.prototype.paramByte = function (scenario, value, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "valid" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2779,7 +2779,7 @@ Header.prototype.responseByte = function (scenario, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2799,15 +2799,15 @@ Header.prototype.responseByte = function (scenario, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "null" or "empty" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.value] Send a post request with header values * 'GREY'. Possible values include: 'White', 'black', 'GREY' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2896,7 +2896,7 @@ Header.prototype.paramEnum = function (scenario, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2915,12 +2915,12 @@ Header.prototype.paramEnum = function (scenario, options, callback) { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "null" or "empty" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2999,7 +2999,7 @@ Header.prototype.responseEnum = function (scenario, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3018,10 +3018,10 @@ Header.prototype.responseEnum = function (scenario, options, callback) { * header of the request * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3089,7 +3089,7 @@ Header.prototype.customRequestId = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/operations/index.d.ts index a9106ff9bb..ba06f2c854 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -26,12 +26,12 @@ export interface Header { * * @param {string} userAgent Send a post request with header value * "User-Agent": "overwrite" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -42,10 +42,10 @@ export interface Header { * Get a response with header value "User-Agent": "overwrite" * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -57,12 +57,12 @@ export interface Header { * * @param {string} contentType Send a post request with header value * "Content-Type": "text/html" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -73,10 +73,10 @@ export interface Header { * Get a response with header value "Content-Type": "text/html" * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -89,14 +89,14 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {number} value Send a post request with header values 1 or -2 - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -108,12 +108,12 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -126,14 +126,14 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {number} value Send a post request with header values 105 or -2 - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -145,12 +145,12 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -163,14 +163,14 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {number} value Send a post request with header values 0.07 or -3.0 - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -182,12 +182,12 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -200,14 +200,14 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {number} value Send a post request with header values 7e120 or -3.0 - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -219,12 +219,12 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "positive" or "negative" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -237,14 +237,14 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "true" or "false" - * + * * @param {boolean} value Send a post request with header values true or false - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -256,12 +256,12 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "true" or "false" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -275,15 +275,15 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "null" or "empty" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.value] Send a post request with header values "The * quick brown fox jumps over the lazy dog" or null or "" - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -296,12 +296,12 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "null" or "empty" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -314,15 +314,15 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "min" - * + * * @param {date} value Send a post request with header values "2010-01-01" or * "0001-01-01" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -334,12 +334,12 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "min" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -352,15 +352,15 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "min" - * + * * @param {date} value Send a post request with header values * "2010-01-01T12:34:56Z" or "0001-01-01T00:00:00Z" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -373,12 +373,12 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "min" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -392,15 +392,15 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "min" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {date} [options.value] Send a post request with header values "Wed, * 01 Jan 2010 12:34:56 GMT" or "Mon, 01 Jan 0001 00:00:00 GMT" - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -413,12 +413,12 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "min" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -431,15 +431,15 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "valid" - * + * * @param {moment.duration} value Send a post request with header values * "P123DT22H14M12.011S" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -451,12 +451,12 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "valid" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -469,14 +469,14 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "valid" - * + * * @param {buffer} value Send a post request with header values "啊齄丂狛狜隣郎隣兀﨩" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -488,12 +488,12 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "valid" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -506,15 +506,15 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "null" or "empty" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.value] Send a post request with header values * 'GREY'. Possible values include: 'White', 'black', 'GREY' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -526,12 +526,12 @@ export interface Header { * * @param {string} scenario Send a post request with header values "scenario": * "valid" or "null" or "empty" - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -543,10 +543,10 @@ export interface Header { * header of the request * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/operations/index.js index 94d695ae2b..a0af708c09 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Header/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/autoRestHttpInfrastructureTestService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/autoRestHttpInfrastructureTestService.d.ts index 1d97bc8278..4f1e89c56d 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/autoRestHttpInfrastructureTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/autoRestHttpInfrastructureTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/autoRestHttpInfrastructureTestService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/autoRestHttpInfrastructureTestService.js index bfa866f135..e1f58ed0e4 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/autoRestHttpInfrastructureTestService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/autoRestHttpInfrastructureTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/a.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/a.js index e2f4cc27da..9aa886388c 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/a.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/a.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the A class. * @constructor * @member {string} [statusCode] - * + * */ function A() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/b.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/b.js index 9c5bffb5b5..43ac7ceb78 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/b.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/b.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,7 +19,7 @@ var util = require('util'); * Initializes a new instance of the B class. * @constructor * @member {string} [textStatusCode] - * + * */ function B() { B['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/c.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/c.js index bb7ada0935..9ab027fb44 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/c.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/c.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the C class. * @constructor * @member {string} [httpCode] - * + * */ function C() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/d.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/d.js index 5a5913866a..4457b9ac22 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/d.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/d.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the D class. * @constructor * @member {string} [httpStatusCode] - * + * */ function D() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/index.d.ts index 29c670015e..739a7e0190 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; @@ -28,7 +28,7 @@ export interface ErrorModel { * Initializes a new instance of the A class. * @constructor * @member {string} [statusCode] - * + * */ export interface A { statusCode?: string; @@ -39,7 +39,7 @@ export interface A { * Initializes a new instance of the B class. * @constructor * @member {string} [textStatusCode] - * + * */ export interface B extends A { textStatusCode?: string; @@ -50,7 +50,7 @@ export interface B extends A { * Initializes a new instance of the C class. * @constructor * @member {string} [httpCode] - * + * */ export interface C { httpCode?: string; @@ -61,7 +61,7 @@ export interface C { * Initializes a new instance of the D class. * @constructor * @member {string} [httpStatusCode] - * + * */ export interface D { httpStatusCode?: string; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/index.js index 86e9e0bf8b..bbe9342e00 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpClientFailure.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpClientFailure.js index c2dc8a3807..86b56b654b 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpClientFailure.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpClientFailure.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function HttpClientFailure(client) { * Return 400 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -104,7 +104,7 @@ HttpClientFailure.prototype.head400 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -136,10 +136,10 @@ HttpClientFailure.prototype.head400 = function (options, callback) { * Return 400 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -208,7 +208,7 @@ HttpClientFailure.prototype.get400 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -240,12 +240,12 @@ HttpClientFailure.prototype.get400 = function (options, callback) { * Return 400 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -312,7 +312,7 @@ HttpClientFailure.prototype.put400 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -343,7 +343,7 @@ HttpClientFailure.prototype.put400 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -375,12 +375,12 @@ HttpClientFailure.prototype.put400 = function (options, callback) { * Return 400 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -447,7 +447,7 @@ HttpClientFailure.prototype.patch400 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -478,7 +478,7 @@ HttpClientFailure.prototype.patch400 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -510,12 +510,12 @@ HttpClientFailure.prototype.patch400 = function (options, callback) { * Return 400 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -582,7 +582,7 @@ HttpClientFailure.prototype.post400 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -613,7 +613,7 @@ HttpClientFailure.prototype.post400 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -645,12 +645,12 @@ HttpClientFailure.prototype.post400 = function (options, callback) { * Return 400 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -717,7 +717,7 @@ HttpClientFailure.prototype.delete400 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -748,7 +748,7 @@ HttpClientFailure.prototype.delete400 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -780,10 +780,10 @@ HttpClientFailure.prototype.delete400 = function (options, callback) { * Return 401 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -852,7 +852,7 @@ HttpClientFailure.prototype.head401 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -884,10 +884,10 @@ HttpClientFailure.prototype.head401 = function (options, callback) { * Return 402 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -956,7 +956,7 @@ HttpClientFailure.prototype.get402 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -988,10 +988,10 @@ HttpClientFailure.prototype.get402 = function (options, callback) { * Return 403 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1060,7 +1060,7 @@ HttpClientFailure.prototype.get403 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1092,12 +1092,12 @@ HttpClientFailure.prototype.get403 = function (options, callback) { * Return 404 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1164,7 +1164,7 @@ HttpClientFailure.prototype.put404 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1195,7 +1195,7 @@ HttpClientFailure.prototype.put404 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1227,12 +1227,12 @@ HttpClientFailure.prototype.put404 = function (options, callback) { * Return 405 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1299,7 +1299,7 @@ HttpClientFailure.prototype.patch405 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1330,7 +1330,7 @@ HttpClientFailure.prototype.patch405 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1362,12 +1362,12 @@ HttpClientFailure.prototype.patch405 = function (options, callback) { * Return 406 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1434,7 +1434,7 @@ HttpClientFailure.prototype.post406 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1465,7 +1465,7 @@ HttpClientFailure.prototype.post406 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1497,12 +1497,12 @@ HttpClientFailure.prototype.post406 = function (options, callback) { * Return 407 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1569,7 +1569,7 @@ HttpClientFailure.prototype.delete407 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1600,7 +1600,7 @@ HttpClientFailure.prototype.delete407 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1632,12 +1632,12 @@ HttpClientFailure.prototype.delete407 = function (options, callback) { * Return 409 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1704,7 +1704,7 @@ HttpClientFailure.prototype.put409 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1735,7 +1735,7 @@ HttpClientFailure.prototype.put409 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1767,10 +1767,10 @@ HttpClientFailure.prototype.put409 = function (options, callback) { * Return 410 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1839,7 +1839,7 @@ HttpClientFailure.prototype.head410 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1871,10 +1871,10 @@ HttpClientFailure.prototype.head410 = function (options, callback) { * Return 411 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1943,7 +1943,7 @@ HttpClientFailure.prototype.get411 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1975,10 +1975,10 @@ HttpClientFailure.prototype.get411 = function (options, callback) { * Return 412 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2047,7 +2047,7 @@ HttpClientFailure.prototype.get412 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2079,12 +2079,12 @@ HttpClientFailure.prototype.get412 = function (options, callback) { * Return 413 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2151,7 +2151,7 @@ HttpClientFailure.prototype.put413 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -2182,7 +2182,7 @@ HttpClientFailure.prototype.put413 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2214,12 +2214,12 @@ HttpClientFailure.prototype.put413 = function (options, callback) { * Return 414 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2286,7 +2286,7 @@ HttpClientFailure.prototype.patch414 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -2317,7 +2317,7 @@ HttpClientFailure.prototype.patch414 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2349,12 +2349,12 @@ HttpClientFailure.prototype.patch414 = function (options, callback) { * Return 415 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2421,7 +2421,7 @@ HttpClientFailure.prototype.post415 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -2452,7 +2452,7 @@ HttpClientFailure.prototype.post415 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2484,10 +2484,10 @@ HttpClientFailure.prototype.post415 = function (options, callback) { * Return 416 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2556,7 +2556,7 @@ HttpClientFailure.prototype.get416 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2588,12 +2588,12 @@ HttpClientFailure.prototype.get416 = function (options, callback) { * Return 417 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2660,7 +2660,7 @@ HttpClientFailure.prototype.delete417 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -2691,7 +2691,7 @@ HttpClientFailure.prototype.delete417 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2723,10 +2723,10 @@ HttpClientFailure.prototype.delete417 = function (options, callback) { * Return 429 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2795,7 +2795,7 @@ HttpClientFailure.prototype.head429 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpFailure.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpFailure.js index f6f05ec11e..708226afaa 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpFailure.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpFailure.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function HttpFailure(client) { * Get empty error form server * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -103,7 +103,7 @@ HttpFailure.prototype.getEmptyError = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -144,10 +144,10 @@ HttpFailure.prototype.getEmptyError = function (options, callback) { * Get empty error form server * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -211,7 +211,7 @@ HttpFailure.prototype.getNoModelError = function (options, callback) { error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -252,10 +252,10 @@ HttpFailure.prototype.getNoModelError = function (options, callback) { * Get empty response from server * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -319,7 +319,7 @@ HttpFailure.prototype.getNoModelEmpty = function (options, callback) { error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpRedirects.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpRedirects.js index 13a9fc7d5a..3e4d44b026 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpRedirects.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpRedirects.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function HttpRedirects(client) { * Return 300 status code and redirect to /http/success/200 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -103,7 +103,7 @@ HttpRedirects.prototype.head300 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -121,10 +121,10 @@ HttpRedirects.prototype.head300 = function (options, callback) { * Return 300 status code and redirect to /http/success/200 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -192,7 +192,7 @@ HttpRedirects.prototype.get300 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -240,10 +240,10 @@ HttpRedirects.prototype.get300 = function (options, callback) { * Return 301 status code and redirect to /http/success/200 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -311,7 +311,7 @@ HttpRedirects.prototype.head301 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -329,10 +329,10 @@ HttpRedirects.prototype.head301 = function (options, callback) { * Return 301 status code and redirect to /http/success/200 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -400,7 +400,7 @@ HttpRedirects.prototype.get301 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -420,12 +420,12 @@ HttpRedirects.prototype.get301 = function (options, callback) { * for evaluation * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -491,7 +491,7 @@ HttpRedirects.prototype.put301 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -522,7 +522,7 @@ HttpRedirects.prototype.put301 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -540,10 +540,10 @@ HttpRedirects.prototype.put301 = function (options, callback) { * Return 302 status code and redirect to /http/success/200 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -611,7 +611,7 @@ HttpRedirects.prototype.head302 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -629,10 +629,10 @@ HttpRedirects.prototype.head302 = function (options, callback) { * Return 302 status code and redirect to /http/success/200 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -700,7 +700,7 @@ HttpRedirects.prototype.get302 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -720,12 +720,12 @@ HttpRedirects.prototype.get302 = function (options, callback) { * for evaluation * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -791,7 +791,7 @@ HttpRedirects.prototype.patch302 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -822,7 +822,7 @@ HttpRedirects.prototype.patch302 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -841,12 +841,12 @@ HttpRedirects.prototype.patch302 = function (options, callback) { * automatically redirected usign a get, ultimately returning a 200 status code * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -912,7 +912,7 @@ HttpRedirects.prototype.post303 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -943,7 +943,7 @@ HttpRedirects.prototype.post303 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -961,10 +961,10 @@ HttpRedirects.prototype.post303 = function (options, callback) { * Redirect with 307, resulting in a 200 success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1032,7 +1032,7 @@ HttpRedirects.prototype.head307 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1050,10 +1050,10 @@ HttpRedirects.prototype.head307 = function (options, callback) { * Redirect get with 307, resulting in a 200 success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1121,7 +1121,7 @@ HttpRedirects.prototype.get307 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1139,12 +1139,12 @@ HttpRedirects.prototype.get307 = function (options, callback) { * Put redirected with 307, resulting in a 200 after redirect * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1210,7 +1210,7 @@ HttpRedirects.prototype.put307 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1241,7 +1241,7 @@ HttpRedirects.prototype.put307 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1259,12 +1259,12 @@ HttpRedirects.prototype.put307 = function (options, callback) { * Patch redirected with 307, resulting in a 200 after redirect * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1330,7 +1330,7 @@ HttpRedirects.prototype.patch307 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1361,7 +1361,7 @@ HttpRedirects.prototype.patch307 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1379,12 +1379,12 @@ HttpRedirects.prototype.patch307 = function (options, callback) { * Post redirected with 307, resulting in a 200 after redirect * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1450,7 +1450,7 @@ HttpRedirects.prototype.post307 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1481,7 +1481,7 @@ HttpRedirects.prototype.post307 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1499,12 +1499,12 @@ HttpRedirects.prototype.post307 = function (options, callback) { * Delete redirected with 307, resulting in a 200 after redirect * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1570,7 +1570,7 @@ HttpRedirects.prototype.delete307 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1601,7 +1601,7 @@ HttpRedirects.prototype.delete307 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpRetry.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpRetry.js index 1d90e700c6..83f9de911a 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpRetry.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpRetry.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function HttpRetry(client) { * Return 408 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -103,7 +103,7 @@ HttpRetry.prototype.head408 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -121,12 +121,12 @@ HttpRetry.prototype.head408 = function (options, callback) { * Return 500 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -192,7 +192,7 @@ HttpRetry.prototype.put500 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -223,7 +223,7 @@ HttpRetry.prototype.put500 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -241,12 +241,12 @@ HttpRetry.prototype.put500 = function (options, callback) { * Return 500 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -312,7 +312,7 @@ HttpRetry.prototype.patch500 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -343,7 +343,7 @@ HttpRetry.prototype.patch500 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -361,10 +361,10 @@ HttpRetry.prototype.patch500 = function (options, callback) { * Return 502 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -432,7 +432,7 @@ HttpRetry.prototype.get502 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -450,12 +450,12 @@ HttpRetry.prototype.get502 = function (options, callback) { * Return 503 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -521,7 +521,7 @@ HttpRetry.prototype.post503 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -552,7 +552,7 @@ HttpRetry.prototype.post503 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -570,12 +570,12 @@ HttpRetry.prototype.post503 = function (options, callback) { * Return 503 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -641,7 +641,7 @@ HttpRetry.prototype.delete503 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -672,7 +672,7 @@ HttpRetry.prototype.delete503 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -690,12 +690,12 @@ HttpRetry.prototype.delete503 = function (options, callback) { * Return 504 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -761,7 +761,7 @@ HttpRetry.prototype.put504 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -792,7 +792,7 @@ HttpRetry.prototype.put504 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -810,12 +810,12 @@ HttpRetry.prototype.put504 = function (options, callback) { * Return 504 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -881,7 +881,7 @@ HttpRetry.prototype.patch504 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -912,7 +912,7 @@ HttpRetry.prototype.patch504 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpServerFailure.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpServerFailure.js index f55f7eea3d..f7bd71c476 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpServerFailure.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpServerFailure.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function HttpServerFailure(client) { * Return 501 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -104,7 +104,7 @@ HttpServerFailure.prototype.head501 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -136,10 +136,10 @@ HttpServerFailure.prototype.head501 = function (options, callback) { * Return 501 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -208,7 +208,7 @@ HttpServerFailure.prototype.get501 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -240,12 +240,12 @@ HttpServerFailure.prototype.get501 = function (options, callback) { * Return 505 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -312,7 +312,7 @@ HttpServerFailure.prototype.post505 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -343,7 +343,7 @@ HttpServerFailure.prototype.post505 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -375,12 +375,12 @@ HttpServerFailure.prototype.post505 = function (options, callback) { * Return 505 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -447,7 +447,7 @@ HttpServerFailure.prototype.delete505 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -478,7 +478,7 @@ HttpServerFailure.prototype.delete505 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpSuccess.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpSuccess.js index 6dbe2bd729..08235d8b16 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpSuccess.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/httpSuccess.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function HttpSuccess(client) { * Return 200 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -103,7 +103,7 @@ HttpSuccess.prototype.head200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -121,10 +121,10 @@ HttpSuccess.prototype.head200 = function (options, callback) { * Get 200 success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -192,7 +192,7 @@ HttpSuccess.prototype.get200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -233,12 +233,12 @@ HttpSuccess.prototype.get200 = function (options, callback) { * Put boolean value true returning 200 success * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -304,7 +304,7 @@ HttpSuccess.prototype.put200 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -335,7 +335,7 @@ HttpSuccess.prototype.put200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -353,12 +353,12 @@ HttpSuccess.prototype.put200 = function (options, callback) { * Patch true Boolean value in request returning 200 * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -424,7 +424,7 @@ HttpSuccess.prototype.patch200 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -455,7 +455,7 @@ HttpSuccess.prototype.patch200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -473,12 +473,12 @@ HttpSuccess.prototype.patch200 = function (options, callback) { * Post bollean value true in request that returns a 200 * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -544,7 +544,7 @@ HttpSuccess.prototype.post200 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -575,7 +575,7 @@ HttpSuccess.prototype.post200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -593,12 +593,12 @@ HttpSuccess.prototype.post200 = function (options, callback) { * Delete simple boolean value true returns 200 * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -664,7 +664,7 @@ HttpSuccess.prototype.delete200 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -695,7 +695,7 @@ HttpSuccess.prototype.delete200 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -713,12 +713,12 @@ HttpSuccess.prototype.delete200 = function (options, callback) { * Put true Boolean value in request returns 201 * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -784,7 +784,7 @@ HttpSuccess.prototype.put201 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -815,7 +815,7 @@ HttpSuccess.prototype.put201 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -833,12 +833,12 @@ HttpSuccess.prototype.put201 = function (options, callback) { * Post true Boolean value in request returns 201 (Created) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -904,7 +904,7 @@ HttpSuccess.prototype.post201 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -935,7 +935,7 @@ HttpSuccess.prototype.post201 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -953,12 +953,12 @@ HttpSuccess.prototype.post201 = function (options, callback) { * Put true Boolean value in request returns 202 (Accepted) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1024,7 +1024,7 @@ HttpSuccess.prototype.put202 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1055,7 +1055,7 @@ HttpSuccess.prototype.put202 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1073,12 +1073,12 @@ HttpSuccess.prototype.put202 = function (options, callback) { * Patch true Boolean value in request returns 202 * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1144,7 +1144,7 @@ HttpSuccess.prototype.patch202 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1175,7 +1175,7 @@ HttpSuccess.prototype.patch202 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1193,12 +1193,12 @@ HttpSuccess.prototype.patch202 = function (options, callback) { * Post true Boolean value in request returns 202 (Accepted) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1264,7 +1264,7 @@ HttpSuccess.prototype.post202 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1295,7 +1295,7 @@ HttpSuccess.prototype.post202 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1313,12 +1313,12 @@ HttpSuccess.prototype.post202 = function (options, callback) { * Delete true Boolean value in request returns 202 (accepted) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1384,7 +1384,7 @@ HttpSuccess.prototype.delete202 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1415,7 +1415,7 @@ HttpSuccess.prototype.delete202 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1433,10 +1433,10 @@ HttpSuccess.prototype.delete202 = function (options, callback) { * Return 204 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1504,7 +1504,7 @@ HttpSuccess.prototype.head204 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1522,12 +1522,12 @@ HttpSuccess.prototype.head204 = function (options, callback) { * Put true Boolean value in request returns 204 (no content) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1593,7 +1593,7 @@ HttpSuccess.prototype.put204 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1624,7 +1624,7 @@ HttpSuccess.prototype.put204 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1642,12 +1642,12 @@ HttpSuccess.prototype.put204 = function (options, callback) { * Patch true Boolean value in request returns 204 (no content) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1713,7 +1713,7 @@ HttpSuccess.prototype.patch204 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1744,7 +1744,7 @@ HttpSuccess.prototype.patch204 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1762,12 +1762,12 @@ HttpSuccess.prototype.patch204 = function (options, callback) { * Post true Boolean value in request returns 204 (no content) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1833,7 +1833,7 @@ HttpSuccess.prototype.post204 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1864,7 +1864,7 @@ HttpSuccess.prototype.post204 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1882,12 +1882,12 @@ HttpSuccess.prototype.post204 = function (options, callback) { * Delete true Boolean value in request returns 204 (no content) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1953,7 +1953,7 @@ HttpSuccess.prototype.delete204 = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(booleanValue, {depth: null}))); return callback(serializationError); } @@ -1984,7 +1984,7 @@ HttpSuccess.prototype.delete204 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2002,10 +2002,10 @@ HttpSuccess.prototype.delete204 = function (options, callback) { * Return 404 status code * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2073,7 +2073,7 @@ HttpSuccess.prototype.head404 = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/index.d.ts index 242a2b6b36..3b05dfdade 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,10 +24,10 @@ export interface HttpFailure { * Get empty error form server * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -38,10 +38,10 @@ export interface HttpFailure { * Get empty error form server * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -52,10 +52,10 @@ export interface HttpFailure { * Get empty response from server * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -75,10 +75,10 @@ export interface HttpSuccess { * Return 200 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -89,10 +89,10 @@ export interface HttpSuccess { * Get 200 success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -103,12 +103,12 @@ export interface HttpSuccess { * Put boolean value true returning 200 success * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -119,12 +119,12 @@ export interface HttpSuccess { * Patch true Boolean value in request returning 200 * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -135,12 +135,12 @@ export interface HttpSuccess { * Post bollean value true in request that returns a 200 * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -151,12 +151,12 @@ export interface HttpSuccess { * Delete simple boolean value true returns 200 * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -167,12 +167,12 @@ export interface HttpSuccess { * Put true Boolean value in request returns 201 * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -183,12 +183,12 @@ export interface HttpSuccess { * Post true Boolean value in request returns 201 (Created) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -199,12 +199,12 @@ export interface HttpSuccess { * Put true Boolean value in request returns 202 (Accepted) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -215,12 +215,12 @@ export interface HttpSuccess { * Patch true Boolean value in request returns 202 * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -231,12 +231,12 @@ export interface HttpSuccess { * Post true Boolean value in request returns 202 (Accepted) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -247,12 +247,12 @@ export interface HttpSuccess { * Delete true Boolean value in request returns 202 (accepted) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -263,10 +263,10 @@ export interface HttpSuccess { * Return 204 status code if successful * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -277,12 +277,12 @@ export interface HttpSuccess { * Put true Boolean value in request returns 204 (no content) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -293,12 +293,12 @@ export interface HttpSuccess { * Patch true Boolean value in request returns 204 (no content) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -309,12 +309,12 @@ export interface HttpSuccess { * Post true Boolean value in request returns 204 (no content) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -325,12 +325,12 @@ export interface HttpSuccess { * Delete true Boolean value in request returns 204 (no content) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -341,10 +341,10 @@ export interface HttpSuccess { * Return 404 status code * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -364,10 +364,10 @@ export interface HttpRedirects { * Return 300 status code and redirect to /http/success/200 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -378,10 +378,10 @@ export interface HttpRedirects { * Return 300 status code and redirect to /http/success/200 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -392,10 +392,10 @@ export interface HttpRedirects { * Return 301 status code and redirect to /http/success/200 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -406,10 +406,10 @@ export interface HttpRedirects { * Return 301 status code and redirect to /http/success/200 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -422,12 +422,12 @@ export interface HttpRedirects { * for evaluation * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -438,10 +438,10 @@ export interface HttpRedirects { * Return 302 status code and redirect to /http/success/200 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -452,10 +452,10 @@ export interface HttpRedirects { * Return 302 status code and redirect to /http/success/200 * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -468,12 +468,12 @@ export interface HttpRedirects { * for evaluation * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -485,12 +485,12 @@ export interface HttpRedirects { * automatically redirected usign a get, ultimately returning a 200 status code * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -501,10 +501,10 @@ export interface HttpRedirects { * Redirect with 307, resulting in a 200 success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -515,10 +515,10 @@ export interface HttpRedirects { * Redirect get with 307, resulting in a 200 success * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -529,12 +529,12 @@ export interface HttpRedirects { * Put redirected with 307, resulting in a 200 after redirect * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -545,12 +545,12 @@ export interface HttpRedirects { * Patch redirected with 307, resulting in a 200 after redirect * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -561,12 +561,12 @@ export interface HttpRedirects { * Post redirected with 307, resulting in a 200 after redirect * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -577,12 +577,12 @@ export interface HttpRedirects { * Delete redirected with 307, resulting in a 200 after redirect * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -602,10 +602,10 @@ export interface HttpClientFailure { * Return 400 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -616,10 +616,10 @@ export interface HttpClientFailure { * Return 400 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -630,12 +630,12 @@ export interface HttpClientFailure { * Return 400 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -646,12 +646,12 @@ export interface HttpClientFailure { * Return 400 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -662,12 +662,12 @@ export interface HttpClientFailure { * Return 400 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -678,12 +678,12 @@ export interface HttpClientFailure { * Return 400 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -694,10 +694,10 @@ export interface HttpClientFailure { * Return 401 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -708,10 +708,10 @@ export interface HttpClientFailure { * Return 402 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -722,10 +722,10 @@ export interface HttpClientFailure { * Return 403 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -736,12 +736,12 @@ export interface HttpClientFailure { * Return 404 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -752,12 +752,12 @@ export interface HttpClientFailure { * Return 405 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -768,12 +768,12 @@ export interface HttpClientFailure { * Return 406 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -784,12 +784,12 @@ export interface HttpClientFailure { * Return 407 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -800,12 +800,12 @@ export interface HttpClientFailure { * Return 409 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -816,10 +816,10 @@ export interface HttpClientFailure { * Return 410 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -830,10 +830,10 @@ export interface HttpClientFailure { * Return 411 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -844,10 +844,10 @@ export interface HttpClientFailure { * Return 412 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -858,12 +858,12 @@ export interface HttpClientFailure { * Return 413 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -874,12 +874,12 @@ export interface HttpClientFailure { * Return 414 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -890,12 +890,12 @@ export interface HttpClientFailure { * Return 415 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -906,10 +906,10 @@ export interface HttpClientFailure { * Return 416 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -920,12 +920,12 @@ export interface HttpClientFailure { * Return 417 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -936,10 +936,10 @@ export interface HttpClientFailure { * Return 429 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -959,10 +959,10 @@ export interface HttpServerFailure { * Return 501 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -973,10 +973,10 @@ export interface HttpServerFailure { * Return 501 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -987,12 +987,12 @@ export interface HttpServerFailure { * Return 505 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1003,12 +1003,12 @@ export interface HttpServerFailure { * Return 505 status code - should be represented in the client as an error * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1028,10 +1028,10 @@ export interface HttpRetry { * Return 408 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1042,12 +1042,12 @@ export interface HttpRetry { * Return 500 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1058,12 +1058,12 @@ export interface HttpRetry { * Return 500 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1074,10 +1074,10 @@ export interface HttpRetry { * Return 502 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1088,12 +1088,12 @@ export interface HttpRetry { * Return 503 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1104,12 +1104,12 @@ export interface HttpRetry { * Return 503 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1120,12 +1120,12 @@ export interface HttpRetry { * Return 504 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1136,12 +1136,12 @@ export interface HttpRetry { * Return 504 status code, then 200 after retry * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.booleanValue] Simple boolean value true - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1161,10 +1161,10 @@ export interface MultipleResponses { * Send a 200 response with valid payload: {'statusCode': '200'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1175,10 +1175,10 @@ export interface MultipleResponses { * Send a 204 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1189,10 +1189,10 @@ export interface MultipleResponses { * Send a 201 response with valid payload: {'statusCode': '201'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1203,10 +1203,10 @@ export interface MultipleResponses { * Send a 202 response with no payload: * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1218,10 +1218,10 @@ export interface MultipleResponses { * 'client error'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1232,10 +1232,10 @@ export interface MultipleResponses { * Send a 200 response with valid payload: {'statusCode': '200'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1247,10 +1247,10 @@ export interface MultipleResponses { * 'textStatusCode': 'Created'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1262,10 +1262,10 @@ export interface MultipleResponses { * error'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1276,10 +1276,10 @@ export interface MultipleResponses { * Send a 200 response with valid payload: {'statusCode': '200'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1290,10 +1290,10 @@ export interface MultipleResponses { * Send a 200 response with valid payload: {'httpCode': '201'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1304,10 +1304,10 @@ export interface MultipleResponses { * Send a 200 response with valid payload: {'httpStatusCode': '404'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1319,10 +1319,10 @@ export interface MultipleResponses { * error'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1333,10 +1333,10 @@ export interface MultipleResponses { * Send a 202 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1347,10 +1347,10 @@ export interface MultipleResponses { * Send a 204 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1362,10 +1362,10 @@ export interface MultipleResponses { * error'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1376,10 +1376,10 @@ export interface MultipleResponses { * Send a 202 response with an unexpected payload {'property': 'value'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1390,10 +1390,10 @@ export interface MultipleResponses { * Send a 204 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1404,10 +1404,10 @@ export interface MultipleResponses { * Send a 400 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1418,10 +1418,10 @@ export interface MultipleResponses { * Send a 400 response with an unexpected payload {'property': 'value'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1432,10 +1432,10 @@ export interface MultipleResponses { * Send a 200 response with valid payload: {'statusCode': '200'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1446,10 +1446,10 @@ export interface MultipleResponses { * Send a 200 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1460,10 +1460,10 @@ export interface MultipleResponses { * Send a 400 response with valid payload: {'statusCode': '400'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1474,10 +1474,10 @@ export interface MultipleResponses { * Send a 400 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1488,10 +1488,10 @@ export interface MultipleResponses { * Send a 200 response with invalid payload: {'statusCode': '200'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1502,10 +1502,10 @@ export interface MultipleResponses { * Send a 200 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1516,10 +1516,10 @@ export interface MultipleResponses { * Send a 400 response with valid payload: {'statusCode': '400'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1530,10 +1530,10 @@ export interface MultipleResponses { * Send a 400 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1545,10 +1545,10 @@ export interface MultipleResponses { * should return a null object of thde type for model A * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1559,10 +1559,10 @@ export interface MultipleResponses { * Send a 200 response with payload {'statusCode': '200'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1573,10 +1573,10 @@ export interface MultipleResponses { * Send a 200 response with invalid payload {'statusCodeInvalid': '200'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1588,10 +1588,10 @@ export interface MultipleResponses { * with no error model * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1602,10 +1602,10 @@ export interface MultipleResponses { * Send a 200 response with payload {'statusCode': '400'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1616,10 +1616,10 @@ export interface MultipleResponses { * Send a 200 response with invalid payload {'statusCodeInvalid': '400'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1630,10 +1630,10 @@ export interface MultipleResponses { * Send a 202 response with payload {'statusCode': '202'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/index.js index 393b22b0e0..0dff7990df 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/multipleResponses.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/multipleResponses.js index 7ad3b3fc74..04052e8e1f 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/multipleResponses.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Http/operations/multipleResponses.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function MultipleResponses(client) { * Send a 200 response with valid payload: {'statusCode': '200'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -104,7 +104,7 @@ MultipleResponses.prototype.get200Model204NoModelDefaultError200Valid = function error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -139,10 +139,10 @@ MultipleResponses.prototype.get200Model204NoModelDefaultError200Valid = function * Send a 204 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -211,7 +211,7 @@ MultipleResponses.prototype.get200Model204NoModelDefaultError204Valid = function error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -246,10 +246,10 @@ MultipleResponses.prototype.get200Model204NoModelDefaultError204Valid = function * Send a 201 response with valid payload: {'statusCode': '201'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -318,7 +318,7 @@ MultipleResponses.prototype.get200Model204NoModelDefaultError201Invalid = functi error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -353,10 +353,10 @@ MultipleResponses.prototype.get200Model204NoModelDefaultError201Invalid = functi * Send a 202 response with no payload: * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -425,7 +425,7 @@ MultipleResponses.prototype.get200Model204NoModelDefaultError202None = function error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -461,10 +461,10 @@ MultipleResponses.prototype.get200Model204NoModelDefaultError202None = function * 'client error'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -533,7 +533,7 @@ MultipleResponses.prototype.get200Model204NoModelDefaultError400Valid = function error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -568,10 +568,10 @@ MultipleResponses.prototype.get200Model204NoModelDefaultError400Valid = function * Send a 200 response with valid payload: {'statusCode': '200'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -640,7 +640,7 @@ MultipleResponses.prototype.get200Model201ModelDefaultError200Valid = function ( error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -693,10 +693,10 @@ MultipleResponses.prototype.get200Model201ModelDefaultError200Valid = function ( * 'textStatusCode': 'Created'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -765,7 +765,7 @@ MultipleResponses.prototype.get200Model201ModelDefaultError201Valid = function ( error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -818,10 +818,10 @@ MultipleResponses.prototype.get200Model201ModelDefaultError201Valid = function ( * error'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -890,7 +890,7 @@ MultipleResponses.prototype.get200Model201ModelDefaultError400Valid = function ( error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -942,10 +942,10 @@ MultipleResponses.prototype.get200Model201ModelDefaultError400Valid = function ( * Send a 200 response with valid payload: {'statusCode': '200'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1013,7 +1013,7 @@ MultipleResponses.prototype.get200ModelA201ModelC404ModelDDefaultError200Valid = error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1082,10 +1082,10 @@ MultipleResponses.prototype.get200ModelA201ModelC404ModelDDefaultError200Valid = * Send a 200 response with valid payload: {'httpCode': '201'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1153,7 +1153,7 @@ MultipleResponses.prototype.get200ModelA201ModelC404ModelDDefaultError201Valid = error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1222,10 +1222,10 @@ MultipleResponses.prototype.get200ModelA201ModelC404ModelDDefaultError201Valid = * Send a 200 response with valid payload: {'httpStatusCode': '404'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1293,7 +1293,7 @@ MultipleResponses.prototype.get200ModelA201ModelC404ModelDDefaultError404Valid = error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1363,10 +1363,10 @@ MultipleResponses.prototype.get200ModelA201ModelC404ModelDDefaultError404Valid = * error'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1434,7 +1434,7 @@ MultipleResponses.prototype.get200ModelA201ModelC404ModelDDefaultError400Valid = error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1503,10 +1503,10 @@ MultipleResponses.prototype.get200ModelA201ModelC404ModelDDefaultError400Valid = * Send a 202 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1574,7 +1574,7 @@ MultipleResponses.prototype.get202None204NoneDefaultError202None = function (opt error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1592,10 +1592,10 @@ MultipleResponses.prototype.get202None204NoneDefaultError202None = function (opt * Send a 204 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1663,7 +1663,7 @@ MultipleResponses.prototype.get202None204NoneDefaultError204None = function (opt error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1682,10 +1682,10 @@ MultipleResponses.prototype.get202None204NoneDefaultError204None = function (opt * error'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1753,7 +1753,7 @@ MultipleResponses.prototype.get202None204NoneDefaultError400Valid = function (op error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1771,10 +1771,10 @@ MultipleResponses.prototype.get202None204NoneDefaultError400Valid = function (op * Send a 202 response with an unexpected payload {'property': 'value'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1838,7 +1838,7 @@ MultipleResponses.prototype.get202None204NoneDefaultNone202Invalid = function (o error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1856,10 +1856,10 @@ MultipleResponses.prototype.get202None204NoneDefaultNone202Invalid = function (o * Send a 204 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1923,7 +1923,7 @@ MultipleResponses.prototype.get202None204NoneDefaultNone204None = function (opti error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1941,10 +1941,10 @@ MultipleResponses.prototype.get202None204NoneDefaultNone204None = function (opti * Send a 400 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2008,7 +2008,7 @@ MultipleResponses.prototype.get202None204NoneDefaultNone400None = function (opti error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2026,10 +2026,10 @@ MultipleResponses.prototype.get202None204NoneDefaultNone400None = function (opti * Send a 400 response with an unexpected payload {'property': 'value'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2093,7 +2093,7 @@ MultipleResponses.prototype.get202None204NoneDefaultNone400Invalid = function (o error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2111,10 +2111,10 @@ MultipleResponses.prototype.get202None204NoneDefaultNone400Invalid = function (o * Send a 200 response with valid payload: {'statusCode': '200'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2183,7 +2183,7 @@ MultipleResponses.prototype.getDefaultModelA200Valid = function (options, callba error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2215,10 +2215,10 @@ MultipleResponses.prototype.getDefaultModelA200Valid = function (options, callba * Send a 200 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2287,7 +2287,7 @@ MultipleResponses.prototype.getDefaultModelA200None = function (options, callbac error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2319,10 +2319,10 @@ MultipleResponses.prototype.getDefaultModelA200None = function (options, callbac * Send a 400 response with valid payload: {'statusCode': '400'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2391,7 +2391,7 @@ MultipleResponses.prototype.getDefaultModelA400Valid = function (options, callba error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2423,10 +2423,10 @@ MultipleResponses.prototype.getDefaultModelA400Valid = function (options, callba * Send a 400 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2495,7 +2495,7 @@ MultipleResponses.prototype.getDefaultModelA400None = function (options, callbac error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2527,10 +2527,10 @@ MultipleResponses.prototype.getDefaultModelA400None = function (options, callbac * Send a 200 response with invalid payload: {'statusCode': '200'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2594,7 +2594,7 @@ MultipleResponses.prototype.getDefaultNone200Invalid = function (options, callba error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2612,10 +2612,10 @@ MultipleResponses.prototype.getDefaultNone200Invalid = function (options, callba * Send a 200 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2679,7 +2679,7 @@ MultipleResponses.prototype.getDefaultNone200None = function (options, callback) error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2697,10 +2697,10 @@ MultipleResponses.prototype.getDefaultNone200None = function (options, callback) * Send a 400 response with valid payload: {'statusCode': '400'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2764,7 +2764,7 @@ MultipleResponses.prototype.getDefaultNone400Invalid = function (options, callba error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2782,10 +2782,10 @@ MultipleResponses.prototype.getDefaultNone400Invalid = function (options, callba * Send a 400 response with no payload * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2849,7 +2849,7 @@ MultipleResponses.prototype.getDefaultNone400None = function (options, callback) error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2868,10 +2868,10 @@ MultipleResponses.prototype.getDefaultNone400None = function (options, callback) * should return a null object of thde type for model A * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2936,7 +2936,7 @@ MultipleResponses.prototype.get200ModelA200None = function (options, callback) { error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2971,10 +2971,10 @@ MultipleResponses.prototype.get200ModelA200None = function (options, callback) { * Send a 200 response with payload {'statusCode': '200'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3039,7 +3039,7 @@ MultipleResponses.prototype.get200ModelA200Valid = function (options, callback) error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3074,10 +3074,10 @@ MultipleResponses.prototype.get200ModelA200Valid = function (options, callback) * Send a 200 response with invalid payload {'statusCodeInvalid': '200'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3142,7 +3142,7 @@ MultipleResponses.prototype.get200ModelA200Invalid = function (options, callback error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3178,10 +3178,10 @@ MultipleResponses.prototype.get200ModelA200Invalid = function (options, callback * with no error model * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3246,7 +3246,7 @@ MultipleResponses.prototype.get200ModelA400None = function (options, callback) { error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3281,10 +3281,10 @@ MultipleResponses.prototype.get200ModelA400None = function (options, callback) { * Send a 200 response with payload {'statusCode': '400'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3349,7 +3349,7 @@ MultipleResponses.prototype.get200ModelA400Valid = function (options, callback) error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3384,10 +3384,10 @@ MultipleResponses.prototype.get200ModelA400Valid = function (options, callback) * Send a 200 response with invalid payload {'statusCodeInvalid': '400'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3452,7 +3452,7 @@ MultipleResponses.prototype.get200ModelA400Invalid = function (options, callback error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3487,10 +3487,10 @@ MultipleResponses.prototype.get200ModelA400Invalid = function (options, callback * Send a 202 response with payload {'statusCode': '202'} * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3555,7 +3555,7 @@ MultipleResponses.prototype.get200ModelA202Valid = function (options, callback) error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/autoRestResourceFlatteningTestService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/autoRestResourceFlatteningTestService.d.ts index 7ef71775a5..b06095259f 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/autoRestResourceFlatteningTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/autoRestResourceFlatteningTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -35,12 +35,12 @@ declare class AutoRestResourceFlatteningTestService { * Put External Resource as an Array * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.resourceArray] External Resource as an Array to put - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -51,10 +51,10 @@ declare class AutoRestResourceFlatteningTestService { * Get External Resource as an Array * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -65,13 +65,13 @@ declare class AutoRestResourceFlatteningTestService { * Put External Resource as a Dictionary * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.resourceDictionary] External Resource as a * Dictionary to put - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -82,10 +82,10 @@ declare class AutoRestResourceFlatteningTestService { * Get External Resource as a Dictionary * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -96,32 +96,32 @@ declare class AutoRestResourceFlatteningTestService { * Put External Resource as a ResourceCollection * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.resourceComplexObject] External Resource as a * ResourceCollection to put - * + * * @param {object} [options.resourceComplexObject.productresource] - * + * * @param {string} [options.resourceComplexObject.productresource.pname] - * + * * @param {string} * [options.resourceComplexObject.productresource.flattenedProductType] - * + * * @param {string} * [options.resourceComplexObject.productresource.provisioningState] - * + * * @param {object} [options.resourceComplexObject.productresource.tags] - * + * * @param {string} [options.resourceComplexObject.productresource.location] * Resource Location - * + * * @param {array} [options.resourceComplexObject.arrayofresources] - * + * * @param {object} [options.resourceComplexObject.dictionaryofresources] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -132,10 +132,10 @@ declare class AutoRestResourceFlatteningTestService { * Get External Resource as a ResourceCollection * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -146,27 +146,27 @@ declare class AutoRestResourceFlatteningTestService { * Put Simple Product with client flattening true on the model * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.simpleBodyProduct] Simple body product to put - * + * * @param {string} options.simpleBodyProduct.maxProductDisplayName Display name * of product. - * + * * @param {string} [options.simpleBodyProduct.genericValue] Generic URL value. - * + * * @param {string} [options.simpleBodyProduct.odatavalue] URL value. - * + * * @param {string} options.simpleBodyProduct.productId Unique identifier * representing a specific product for a given latitude & longitude. For * example, uberX in San Francisco will have a different product_id than uberX * in Los Angeles. - * + * * @param {string} [options.simpleBodyProduct.description] Description of * product. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -179,20 +179,20 @@ declare class AutoRestResourceFlatteningTestService { * @param {string} productId Unique identifier representing a specific product * for a given latitude & longitude. For example, uberX in San Francisco will * have a different product_id than uberX in Los Angeles. - * + * * @param {string} maxProductDisplayName Display name of product. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.description] Description of product. - * + * * @param {string} [options.genericValue] Generic URL value. - * + * * @param {string} [options.odatavalue] URL value. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -204,29 +204,29 @@ declare class AutoRestResourceFlatteningTestService { * * @param {object} flattenParameterGroup Additional parameters for the * operation - * + * * @param {string} flattenParameterGroup.name Product name with value * 'groupproduct' - * + * * @param {string} flattenParameterGroup.productId Unique identifier * representing a specific product for a given latitude & longitude. For * example, uberX in San Francisco will have a different product_id than uberX * in Los Angeles. - * + * * @param {string} [flattenParameterGroup.description] Description of product. - * + * * @param {string} flattenParameterGroup.maxProductDisplayName Display name of * product. - * + * * @param {string} [flattenParameterGroup.genericValue] Generic URL value. - * + * * @param {string} [flattenParameterGroup.odatavalue] URL value. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/autoRestResourceFlatteningTestService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/autoRestResourceFlatteningTestService.js index b6f1264fee..e1120f2cc4 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/autoRestResourceFlatteningTestService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/autoRestResourceFlatteningTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -58,12 +58,12 @@ util.inherits(AutoRestResourceFlatteningTestService, ServiceClient); * Put External Resource as an Array * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.resourceArray] External Resource as an Array to put - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -129,7 +129,7 @@ AutoRestResourceFlatteningTestService.prototype.putArray = function (options, ca requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(resourceArray, {depth: null}))); return callback(serializationError); } @@ -160,7 +160,7 @@ AutoRestResourceFlatteningTestService.prototype.putArray = function (options, ca error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -178,10 +178,10 @@ AutoRestResourceFlatteningTestService.prototype.putArray = function (options, ca * Get External Resource as an Array * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -249,7 +249,7 @@ AutoRestResourceFlatteningTestService.prototype.getArray = function (options, ca error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -298,13 +298,13 @@ AutoRestResourceFlatteningTestService.prototype.getArray = function (options, ca * Put External Resource as a Dictionary * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.resourceDictionary] External Resource as a * Dictionary to put - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -370,7 +370,7 @@ AutoRestResourceFlatteningTestService.prototype.putDictionary = function (option requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(resourceDictionary, {depth: null}))); return callback(serializationError); } @@ -401,7 +401,7 @@ AutoRestResourceFlatteningTestService.prototype.putDictionary = function (option error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -419,10 +419,10 @@ AutoRestResourceFlatteningTestService.prototype.putDictionary = function (option * Get External Resource as a Dictionary * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -490,7 +490,7 @@ AutoRestResourceFlatteningTestService.prototype.getDictionary = function (option error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -539,32 +539,32 @@ AutoRestResourceFlatteningTestService.prototype.getDictionary = function (option * Put External Resource as a ResourceCollection * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.resourceComplexObject] External Resource as a * ResourceCollection to put - * + * * @param {object} [options.resourceComplexObject.productresource] - * + * * @param {string} [options.resourceComplexObject.productresource.pname] - * + * * @param {string} * [options.resourceComplexObject.productresource.flattenedProductType] - * + * * @param {string} * [options.resourceComplexObject.productresource.provisioningState] - * + * * @param {object} [options.resourceComplexObject.productresource.tags] - * + * * @param {string} [options.resourceComplexObject.productresource.location] * Resource Location - * + * * @param {array} [options.resourceComplexObject.arrayofresources] - * + * * @param {object} [options.resourceComplexObject.dictionaryofresources] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -616,7 +616,7 @@ AutoRestResourceFlatteningTestService.prototype.putResourceCollection = function requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(resourceComplexObject, {depth: null}))); return callback(serializationError); } @@ -647,7 +647,7 @@ AutoRestResourceFlatteningTestService.prototype.putResourceCollection = function error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -665,10 +665,10 @@ AutoRestResourceFlatteningTestService.prototype.putResourceCollection = function * Get External Resource as a ResourceCollection * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -737,7 +737,7 @@ AutoRestResourceFlatteningTestService.prototype.getResourceCollection = function error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -772,27 +772,27 @@ AutoRestResourceFlatteningTestService.prototype.getResourceCollection = function * Put Simple Product with client flattening true on the model * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.simpleBodyProduct] Simple body product to put - * + * * @param {string} options.simpleBodyProduct.maxProductDisplayName Display name * of product. - * + * * @param {string} [options.simpleBodyProduct.genericValue] Generic URL value. - * + * * @param {string} [options.simpleBodyProduct.odatavalue] URL value. - * + * * @param {string} options.simpleBodyProduct.productId Unique identifier * representing a specific product for a given latitude & longitude. For * example, uberX in San Francisco will have a different product_id than uberX * in Los Angeles. - * + * * @param {string} [options.simpleBodyProduct.description] Description of * product. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -845,7 +845,7 @@ AutoRestResourceFlatteningTestService.prototype.putSimpleProduct = function (opt requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(simpleBodyProduct, {depth: null}))); return callback(serializationError); } @@ -876,7 +876,7 @@ AutoRestResourceFlatteningTestService.prototype.putSimpleProduct = function (opt error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -913,20 +913,20 @@ AutoRestResourceFlatteningTestService.prototype.putSimpleProduct = function (opt * @param {string} productId Unique identifier representing a specific product * for a given latitude & longitude. For example, uberX in San Francisco will * have a different product_id than uberX in Los Angeles. - * + * * @param {string} maxProductDisplayName Display name of product. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.description] Description of product. - * + * * @param {string} [options.genericValue] Generic URL value. - * + * * @param {string} [options.odatavalue] URL value. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1015,7 +1015,7 @@ AutoRestResourceFlatteningTestService.prototype.postFlattenedSimpleProduct = fun requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(simpleBodyProduct, {depth: null}))); return callback(serializationError); } @@ -1046,7 +1046,7 @@ AutoRestResourceFlatteningTestService.prototype.postFlattenedSimpleProduct = fun error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1082,29 +1082,29 @@ AutoRestResourceFlatteningTestService.prototype.postFlattenedSimpleProduct = fun * * @param {object} flattenParameterGroup Additional parameters for the * operation - * + * * @param {string} flattenParameterGroup.name Product name with value * 'groupproduct' - * + * * @param {string} flattenParameterGroup.productId Unique identifier * representing a specific product for a given latitude & longitude. For * example, uberX in San Francisco will have a different product_id than uberX * in Los Angeles. - * + * * @param {string} [flattenParameterGroup.description] Description of product. - * + * * @param {string} flattenParameterGroup.maxProductDisplayName Display name of * product. - * + * * @param {string} [flattenParameterGroup.genericValue] Generic URL value. - * + * * @param {string} [flattenParameterGroup.odatavalue] URL value. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1227,7 +1227,7 @@ AutoRestResourceFlatteningTestService.prototype.putSimpleProductWithGrouping = f requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(simpleBodyProduct, {depth: null}))); return callback(serializationError); } @@ -1258,7 +1258,7 @@ AutoRestResourceFlatteningTestService.prototype.putSimpleProductWithGrouping = f error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/baseProduct.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/baseProduct.js index 9ff637c590..e349bbc372 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/baseProduct.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/baseProduct.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,9 +19,9 @@ * @member {string} productId Unique identifier representing a specific product * for a given latitude & longitude. For example, uberX in San Francisco will * have a different product_id than uberX in Los Angeles. - * + * * @member {string} [description] Description of product. - * + * */ function BaseProduct() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/errorModel.js index d09fbf8746..85fd2d4874 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,11 +17,11 @@ var models = require('./index'); * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * * @member {object} [parentError] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/flattenParameterGroup.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/flattenParameterGroup.js index 7b55dd4592..0b91a5ec97 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/flattenParameterGroup.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/flattenParameterGroup.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,19 +17,19 @@ * Additional parameters for the putSimpleProductWithGrouping operation. * * @member {string} name Product name with value 'groupproduct' - * + * * @member {string} productId Unique identifier representing a specific product * for a given latitude & longitude. For example, uberX in San Francisco will * have a different product_id than uberX in Los Angeles. - * + * * @member {string} [description] Description of product. - * + * * @member {string} maxProductDisplayName Display name of product. - * + * * @member {string} [genericValue] Generic URL value. - * + * * @member {string} [odatavalue] URL value. - * + * */ function FlattenParameterGroup() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/flattenedProduct.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/flattenedProduct.js index 5bed4dba6a..709ca005f3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/flattenedProduct.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/flattenedProduct.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -21,15 +21,15 @@ var util = require('util'); * Flattened product. * * @member {string} [pname] - * + * * @member {string} [flattenedProductType] - * + * * @member {string} [provisioningStateValues] Possible values include: * 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', * 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' - * + * * @member {string} [provisioningState] - * + * */ function FlattenedProduct() { FlattenedProduct['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/genericUrl.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/genericUrl.js index 28432b6acf..84680048ae 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/genericUrl.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/genericUrl.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,7 +17,7 @@ * The Generic URL. * * @member {string} [genericValue] Generic URL value. - * + * */ function GenericUrl() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/index.d.ts index e31843ec87..f5b406d0cd 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,11 +14,11 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * * @member {object} [parentError] - * + * */ export interface ErrorModel { status?: number; @@ -31,15 +31,15 @@ export interface ErrorModel { * Initializes a new instance of the Resource class. * @constructor * @member {string} [id] Resource Id - * + * * @member {string} [type] Resource Type - * + * * @member {object} [tags] - * + * * @member {string} [location] Resource Location - * + * * @member {string} [name] Resource Name - * + * */ export interface Resource { id?: string; @@ -56,15 +56,15 @@ export interface Resource { * Flattened product. * * @member {string} [pname] - * + * * @member {string} [flattenedProductType] - * + * * @member {string} [provisioningStateValues] Possible values include: * 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', 'Created', * 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' - * + * * @member {string} [provisioningState] - * + * */ export interface FlattenedProduct extends Resource { pname?: string; @@ -78,21 +78,21 @@ export interface FlattenedProduct extends Resource { * Initializes a new instance of the ResourceCollection class. * @constructor * @member {object} [productresource] - * + * * @member {string} [productresource.pname] - * + * * @member {string} [productresource.flattenedProductType] - * + * * @member {string} [productresource.provisioningStateValues] Possible values * include: 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', * 'Created', 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' - * + * * @member {string} [productresource.provisioningState] - * + * * @member {array} [arrayofresources] - * + * * @member {object} [dictionaryofresources] - * + * */ export interface ResourceCollection { productresource?: FlattenedProduct; @@ -109,9 +109,9 @@ export interface ResourceCollection { * @member {string} productId Unique identifier representing a specific product * for a given latitude & longitude. For example, uberX in San Francisco will * have a different product_id than uberX in Los Angeles. - * + * * @member {string} [description] Description of product. - * + * */ export interface BaseProduct { productId: string; @@ -125,11 +125,11 @@ export interface BaseProduct { * The product documentation. * * @member {string} maxProductDisplayName Display name of product. - * + * * @member {string} [genericValue] Generic URL value. - * + * * @member {string} [odatavalue] URL value. - * + * */ export interface SimpleProduct extends BaseProduct { maxProductDisplayName: string; @@ -144,7 +144,7 @@ export interface SimpleProduct extends BaseProduct { * The Generic URL. * * @member {string} [genericValue] Generic URL value. - * + * */ export interface GenericUrl { genericValue?: string; @@ -157,19 +157,19 @@ export interface GenericUrl { * Additional parameters for the putSimpleProductWithGrouping operation. * * @member {string} name Product name with value 'groupproduct' - * + * * @member {string} productId Unique identifier representing a specific product * for a given latitude & longitude. For example, uberX in San Francisco will * have a different product_id than uberX in Los Angeles. - * + * * @member {string} [description] Description of product. - * + * * @member {string} maxProductDisplayName Display name of product. - * + * * @member {string} [genericValue] Generic URL value. - * + * * @member {string} [odatavalue] URL value. - * + * */ export interface FlattenParameterGroup { name: string; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/index.js index a5d6ec4876..dafa07e029 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/resource.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/resource.js index 05fbb50b0c..29a43dd901 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/resource.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/resource.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,15 +15,15 @@ * Initializes a new instance of the Resource class. * @constructor * @member {string} [id] Resource Id - * + * * @member {string} [type] Resource Type - * + * * @member {object} [tags] - * + * * @member {string} [location] Resource Location - * + * * @member {string} [name] Resource Name - * + * */ function Resource() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/resourceCollection.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/resourceCollection.js index 6dfaa88812..0c08fb7080 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/resourceCollection.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/resourceCollection.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -19,21 +19,21 @@ var util = require('util'); * Initializes a new instance of the ResourceCollection class. * @constructor * @member {object} [productresource] - * + * * @member {string} [productresource.pname] - * + * * @member {string} [productresource.flattenedProductType] - * + * * @member {string} [productresource.provisioningStateValues] Possible values * include: 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', * 'Created', 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' - * + * * @member {string} [productresource.provisioningState] - * + * * @member {array} [arrayofresources] - * + * * @member {object} [dictionaryofresources] - * + * */ function ResourceCollection() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/simpleProduct.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/simpleProduct.js index c7812627f8..10cd8b6adc 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/simpleProduct.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ModelFlattening/models/simpleProduct.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -21,11 +21,11 @@ var util = require('util'); * The product documentation. * * @member {string} maxProductDisplayName Display name of product. - * + * * @member {string} [genericValue] Generic URL value. - * + * * @member {string} [odatavalue] URL value. - * + * */ function SimpleProduct() { SimpleProduct['super_'].call(this); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/autoRestParameterFlattening.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/autoRestParameterFlattening.d.ts index da82d5ae71..3860f2eadc 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/autoRestParameterFlattening.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/autoRestParameterFlattening.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/autoRestParameterFlattening.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/autoRestParameterFlattening.js index 7ea98d3d8b..e6265bea60 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/autoRestParameterFlattening.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/autoRestParameterFlattening.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/models/availabilitySetUpdateParameters.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/models/availabilitySetUpdateParameters.js index 913ef6c5e5..6db17c936a 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/models/availabilitySetUpdateParameters.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/models/availabilitySetUpdateParameters.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the AvailabilitySetUpdateParameters class. * @constructor * @member {object} tags A set of tags. A description about the set of tags. - * + * */ function AvailabilitySetUpdateParameters() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/models/index.d.ts index 9d0bf40ee9..de5de99e2c 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,7 +14,7 @@ * Initializes a new instance of the AvailabilitySetUpdateParameters class. * @constructor * @member {object} tags A set of tags. A description about the set of tags. - * + * */ export interface AvailabilitySetUpdateParameters { tags: { [propertyName: string]: string }; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/models/index.js index b58d884254..4275f5a28d 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/operations/availabilitySets.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/operations/availabilitySets.js index ac472b5db1..cea7df8f03 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/operations/availabilitySets.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/operations/availabilitySets.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,16 +32,16 @@ function AvailabilitySets(client) { * Updates the tags for an availability set. * * @param {string} resourceGroupName The name of the resource group. - * + * * @param {string} avset The name of the storage availability set. - * + * * @param {object} tags A set of tags. A description about the set of tags. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -124,7 +124,7 @@ AvailabilitySets.prototype.update = function (resourceGroupName, avset, tags, op requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(tags1, {depth: null}))); return callback(serializationError); } @@ -151,7 +151,7 @@ AvailabilitySets.prototype.update = function (resourceGroupName, avset, tags, op error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/operations/index.d.ts index f6b4811f33..db4f5ee9e9 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,16 +24,16 @@ export interface AvailabilitySets { * Updates the tags for an availability set. * * @param {string} resourceGroupName The name of the resource group. - * + * * @param {string} avset The name of the storage availability set. - * + * * @param {object} tags A set of tags. A description about the set of tags. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/operations/index.js index 481bead898..5fa707d680 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/ParameterFlattening/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/autoRestReportService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/autoRestReportService.d.ts index da43f3a8f3..259c077f90 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/autoRestReportService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/autoRestReportService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -35,10 +35,10 @@ declare class AutoRestReportService { * Get test coverage report * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/autoRestReportService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/autoRestReportService.js index 45bacc3583..4aa1eb42da 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/autoRestReportService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/autoRestReportService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -58,10 +58,10 @@ util.inherits(AutoRestReportService, ServiceClient); * Get test coverage report * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -129,7 +129,7 @@ AutoRestReportService.prototype.getReport = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Report/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/autoRestRequiredOptionalTestService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/autoRestRequiredOptionalTestService.d.ts index 1dcd6449a8..b897fd0304 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/autoRestRequiredOptionalTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/autoRestRequiredOptionalTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/autoRestRequiredOptionalTestService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/autoRestRequiredOptionalTestService.js index ae1665bdfe..46be55c60f 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/autoRestRequiredOptionalTestService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/autoRestRequiredOptionalTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -62,7 +62,7 @@ function AutoRestRequiredOptionalTestService(requiredGlobalPath, requiredGlobalQ this.requiredGlobalPath = requiredGlobalPath; this.requiredGlobalQuery = requiredGlobalQuery; - if(options.optionalGlobalQuery !== null && options.optionalGlobalQuery !== undefined) { + if(options.optionalGlobalQuery !== null && options.optionalGlobalQuery !== undefined) { this.optionalGlobalQuery = options.optionalGlobalQuery; } this.implicit = new operations.Implicit(this); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/arrayOptionalWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/arrayOptionalWrapper.js index 8dc4e83306..92d0b029a1 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/arrayOptionalWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/arrayOptionalWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,7 +17,7 @@ var util = require('util'); * Initializes a new instance of the ArrayOptionalWrapper class. * @constructor * @member {array} [value] - * + * */ function ArrayOptionalWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/arrayWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/arrayWrapper.js index 63031ccdd9..14adc81326 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/arrayWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/arrayWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,7 +17,7 @@ var util = require('util'); * Initializes a new instance of the ArrayWrapper class. * @constructor * @member {array} value - * + * */ function ArrayWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/classOptionalWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/classOptionalWrapper.js index f00702e9b9..c93150e8ce 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/classOptionalWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/classOptionalWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,11 +17,11 @@ var models = require('./index'); * Initializes a new instance of the ClassOptionalWrapper class. * @constructor * @member {object} [value] - * + * * @member {number} [value.id] - * + * * @member {string} [value.name] - * + * */ function ClassOptionalWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/classWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/classWrapper.js index 9df3b60d04..dc0ca62241 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/classWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/classWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,11 +17,11 @@ var models = require('./index'); * Initializes a new instance of the ClassWrapper class. * @constructor * @member {object} value - * + * * @member {number} [value.id] - * + * * @member {string} [value.name] - * + * */ function ClassWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/index.d.ts index 2ccfb73df7..171fb1d390 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; @@ -28,7 +28,7 @@ export interface ErrorModel { * Initializes a new instance of the IntWrapper class. * @constructor * @member {number} value - * + * */ export interface IntWrapper { value: number; @@ -39,7 +39,7 @@ export interface IntWrapper { * Initializes a new instance of the IntOptionalWrapper class. * @constructor * @member {number} [value] - * + * */ export interface IntOptionalWrapper { value?: number; @@ -50,7 +50,7 @@ export interface IntOptionalWrapper { * Initializes a new instance of the StringWrapper class. * @constructor * @member {string} value - * + * */ export interface StringWrapper { value: string; @@ -61,7 +61,7 @@ export interface StringWrapper { * Initializes a new instance of the StringOptionalWrapper class. * @constructor * @member {string} [value] - * + * */ export interface StringOptionalWrapper { value?: string; @@ -72,7 +72,7 @@ export interface StringOptionalWrapper { * Initializes a new instance of the ArrayWrapper class. * @constructor * @member {array} value - * + * */ export interface ArrayWrapper { value: string[]; @@ -83,51 +83,51 @@ export interface ArrayWrapper { * Initializes a new instance of the ArrayOptionalWrapper class. * @constructor * @member {array} [value] - * + * */ export interface ArrayOptionalWrapper { value?: string[]; } -/** - * @class - * Initializes a new instance of the ClassWrapper class. - * @constructor - * @member {object} value - * - * @member {number} [value.id] - * - * @member {string} [value.name] - * - */ -export interface ClassWrapper { - value: Product; -} - /** * @class * Initializes a new instance of the Product class. * @constructor * @member {number} id - * + * * @member {string} [name] - * + * */ export interface Product { id: number; name?: string; } +/** + * @class + * Initializes a new instance of the ClassWrapper class. + * @constructor + * @member {object} value + * + * @member {number} [value.id] + * + * @member {string} [value.name] + * + */ +export interface ClassWrapper { + value: Product; +} + /** * @class * Initializes a new instance of the ClassOptionalWrapper class. * @constructor * @member {object} [value] - * + * * @member {number} [value.id] - * + * * @member {string} [value.name] - * + * */ export interface ClassOptionalWrapper { value?: Product; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/index.js index 4994c23eac..3a50514707 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -21,6 +21,6 @@ exports.StringWrapper = require('./stringWrapper'); exports.StringOptionalWrapper = require('./stringOptionalWrapper'); exports.ArrayWrapper = require('./arrayWrapper'); exports.ArrayOptionalWrapper = require('./arrayOptionalWrapper'); -exports.ClassWrapper = require('./classWrapper'); exports.Product = require('./product'); +exports.ClassWrapper = require('./classWrapper'); exports.ClassOptionalWrapper = require('./classOptionalWrapper'); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/intOptionalWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/intOptionalWrapper.js index e9a19f076a..f426dfbe16 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/intOptionalWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/intOptionalWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the IntOptionalWrapper class. * @constructor * @member {number} [value] - * + * */ function IntOptionalWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/intWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/intWrapper.js index d717657f7b..040fe63e1c 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/intWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/intWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the IntWrapper class. * @constructor * @member {number} value - * + * */ function IntWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/product.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/product.js index 579e111731..22d8d3b9d0 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/product.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/product.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the Product class. * @constructor * @member {number} id - * + * * @member {string} [name] - * + * */ function Product() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/stringOptionalWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/stringOptionalWrapper.js index 180310e38a..231ba3fb44 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/stringOptionalWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/stringOptionalWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the StringOptionalWrapper class. * @constructor * @member {string} [value] - * + * */ function StringOptionalWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/stringWrapper.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/stringWrapper.js index 7913d64dca..5a6679397b 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/stringWrapper.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/models/stringWrapper.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,7 +15,7 @@ * Initializes a new instance of the StringWrapper class. * @constructor * @member {string} value - * + * */ function StringWrapper() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/explicit.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/explicit.js index eee73fc2ce..f018e9faa3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/explicit.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/explicit.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -33,12 +33,12 @@ function Explicit(client) { * should throw before the request is sent. * * @param {number} bodyParameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -104,7 +104,7 @@ Explicit.prototype.postRequiredIntegerParameter = function (bodyParameter, optio requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -135,7 +135,7 @@ Explicit.prototype.postRequiredIntegerParameter = function (bodyParameter, optio error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -167,12 +167,12 @@ Explicit.prototype.postRequiredIntegerParameter = function (bodyParameter, optio * Test explicitly optional integer. Please put null. * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.bodyParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -238,7 +238,7 @@ Explicit.prototype.postOptionalIntegerParameter = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -269,7 +269,7 @@ Explicit.prototype.postOptionalIntegerParameter = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -289,12 +289,12 @@ Explicit.prototype.postOptionalIntegerParameter = function (options, callback) { * sent. * * @param {number} value - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -359,7 +359,7 @@ Explicit.prototype.postRequiredIntegerProperty = function (value, options, callb requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -390,7 +390,7 @@ Explicit.prototype.postRequiredIntegerProperty = function (value, options, callb error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -423,12 +423,12 @@ Explicit.prototype.postRequiredIntegerProperty = function (value, options, callb * 'value' = null. * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.value] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -493,7 +493,7 @@ Explicit.prototype.postOptionalIntegerProperty = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -524,7 +524,7 @@ Explicit.prototype.postOptionalIntegerProperty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -543,12 +543,12 @@ Explicit.prototype.postOptionalIntegerProperty = function (options, callback) { * null and the client library should throw before the request is sent. * * @param {number} headerParameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -628,7 +628,7 @@ Explicit.prototype.postRequiredIntegerHeader = function (headerParameter, option error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -661,12 +661,12 @@ Explicit.prototype.postRequiredIntegerHeader = function (headerParameter, option * null. * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.headerParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -746,7 +746,7 @@ Explicit.prototype.postOptionalIntegerHeader = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -765,12 +765,12 @@ Explicit.prototype.postOptionalIntegerHeader = function (options, callback) { * should throw before the request is sent. * * @param {string} bodyParameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -836,7 +836,7 @@ Explicit.prototype.postRequiredStringParameter = function (bodyParameter, option requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -867,7 +867,7 @@ Explicit.prototype.postRequiredStringParameter = function (bodyParameter, option error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -899,12 +899,12 @@ Explicit.prototype.postRequiredStringParameter = function (bodyParameter, option * Test explicitly optional string. Please put null. * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.bodyParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -970,7 +970,7 @@ Explicit.prototype.postOptionalStringParameter = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -1001,7 +1001,7 @@ Explicit.prototype.postOptionalStringParameter = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1021,12 +1021,12 @@ Explicit.prototype.postOptionalStringParameter = function (options, callback) { * sent. * * @param {string} value - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1091,7 +1091,7 @@ Explicit.prototype.postRequiredStringProperty = function (value, options, callba requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -1122,7 +1122,7 @@ Explicit.prototype.postRequiredStringProperty = function (value, options, callba error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1155,12 +1155,12 @@ Explicit.prototype.postRequiredStringProperty = function (value, options, callba * 'value' = null. * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.value] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1225,7 +1225,7 @@ Explicit.prototype.postOptionalStringProperty = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -1256,7 +1256,7 @@ Explicit.prototype.postOptionalStringProperty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1275,12 +1275,12 @@ Explicit.prototype.postOptionalStringProperty = function (options, callback) { * null and the client library should throw before the request is sent. * * @param {string} headerParameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1360,7 +1360,7 @@ Explicit.prototype.postRequiredStringHeader = function (headerParameter, options error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1393,12 +1393,12 @@ Explicit.prototype.postRequiredStringHeader = function (headerParameter, options * null. * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.bodyParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1478,7 +1478,7 @@ Explicit.prototype.postOptionalStringHeader = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1497,16 +1497,16 @@ Explicit.prototype.postOptionalStringHeader = function (options, callback) { * library should throw before the request is sent. * * @param {object} bodyParameter - * + * * @param {number} bodyParameter.id - * + * * @param {string} [bodyParameter.name] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1566,7 +1566,7 @@ Explicit.prototype.postRequiredClassParameter = function (bodyParameter, options requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -1597,7 +1597,7 @@ Explicit.prototype.postRequiredClassParameter = function (bodyParameter, options error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1629,16 +1629,16 @@ Explicit.prototype.postRequiredClassParameter = function (bodyParameter, options * Test explicitly optional complex object. Please put null. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.bodyParameter] - * + * * @param {number} options.bodyParameter.id - * + * * @param {string} [options.bodyParameter.name] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1690,7 +1690,7 @@ Explicit.prototype.postOptionalClassParameter = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -1721,7 +1721,7 @@ Explicit.prototype.postOptionalClassParameter = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1741,16 +1741,16 @@ Explicit.prototype.postOptionalClassParameter = function (options, callback) { * is sent. * * @param {object} value - * + * * @param {number} value.id - * + * * @param {string} [value.name] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1815,7 +1815,7 @@ Explicit.prototype.postRequiredClassProperty = function (value, options, callbac requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -1846,7 +1846,7 @@ Explicit.prototype.postRequiredClassProperty = function (value, options, callbac error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1879,16 +1879,16 @@ Explicit.prototype.postRequiredClassProperty = function (value, options, callbac * with 'value' = null. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.value] - * + * * @param {number} options.value.id - * + * * @param {string} [options.value.name] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1945,7 +1945,7 @@ Explicit.prototype.postOptionalClassProperty = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -1976,7 +1976,7 @@ Explicit.prototype.postOptionalClassProperty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1995,12 +1995,12 @@ Explicit.prototype.postOptionalClassProperty = function (options, callback) { * should throw before the request is sent. * * @param {array} bodyParameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2078,7 +2078,7 @@ Explicit.prototype.postRequiredArrayParameter = function (bodyParameter, options requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -2109,7 +2109,7 @@ Explicit.prototype.postRequiredArrayParameter = function (bodyParameter, options error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2141,12 +2141,12 @@ Explicit.prototype.postRequiredArrayParameter = function (bodyParameter, options * Test explicitly optional array. Please put null. * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.bodyParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2223,7 +2223,7 @@ Explicit.prototype.postOptionalArrayParameter = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -2254,7 +2254,7 @@ Explicit.prototype.postOptionalArrayParameter = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2274,12 +2274,12 @@ Explicit.prototype.postOptionalArrayParameter = function (options, callback) { * sent. * * @param {array} value - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2349,7 +2349,7 @@ Explicit.prototype.postRequiredArrayProperty = function (value, options, callbac requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -2380,7 +2380,7 @@ Explicit.prototype.postRequiredArrayProperty = function (value, options, callbac error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2413,12 +2413,12 @@ Explicit.prototype.postRequiredArrayProperty = function (value, options, callbac * 'value' = null. * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.value] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2487,7 +2487,7 @@ Explicit.prototype.postOptionalArrayProperty = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -2518,7 +2518,7 @@ Explicit.prototype.postOptionalArrayProperty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2537,12 +2537,12 @@ Explicit.prototype.postOptionalArrayProperty = function (options, callback) { * null and the client library should throw before the request is sent. * * @param {array} headerParameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2627,7 +2627,7 @@ Explicit.prototype.postRequiredArrayHeader = function (headerParameter, options, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2660,12 +2660,12 @@ Explicit.prototype.postRequiredArrayHeader = function (headerParameter, options, * null. * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.headerParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2749,7 +2749,7 @@ Explicit.prototype.postOptionalArrayHeader = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/implicit.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/implicit.js index 5483e10f95..a88bcd7c7c 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/implicit.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/implicit.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,12 +32,12 @@ function Implicit(client) { * Test implicitly required path parameter * * @param {string} pathParameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -115,7 +115,7 @@ Implicit.prototype.getRequiredPath = function (pathParameter, options, callback) error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -147,12 +147,12 @@ Implicit.prototype.getRequiredPath = function (pathParameter, options, callback) * Test implicitly optional query parameter * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.queryParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -236,7 +236,7 @@ Implicit.prototype.putOptionalQuery = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -254,12 +254,12 @@ Implicit.prototype.putOptionalQuery = function (options, callback) { * Test implicitly optional header parameter * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.queryParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -339,7 +339,7 @@ Implicit.prototype.putOptionalHeader = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -357,12 +357,12 @@ Implicit.prototype.putOptionalHeader = function (options, callback) { * Test implicitly optional body parameter * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.bodyParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -428,7 +428,7 @@ Implicit.prototype.putOptionalBody = function (options, callback) { requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(bodyParameter, {depth: null}))); return callback(serializationError); } @@ -459,7 +459,7 @@ Implicit.prototype.putOptionalBody = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -477,10 +477,10 @@ Implicit.prototype.putOptionalBody = function (options, callback) { * Test implicitly required path parameter * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -558,7 +558,7 @@ Implicit.prototype.getRequiredGlobalPath = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -590,10 +590,10 @@ Implicit.prototype.getRequiredGlobalPath = function (options, callback) { * Test implicitly required query parameter * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -675,7 +675,7 @@ Implicit.prototype.getRequiredGlobalQuery = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -707,10 +707,10 @@ Implicit.prototype.getRequiredGlobalQuery = function (options, callback) { * Test implicitly optional query parameter * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -794,7 +794,7 @@ Implicit.prototype.getOptionalGlobalQuery = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/index.d.ts index ba7486292c..0151c4614d 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,12 +24,12 @@ export interface Implicit { * Test implicitly required path parameter * * @param {string} pathParameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -40,12 +40,12 @@ export interface Implicit { * Test implicitly optional query parameter * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.queryParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -56,12 +56,12 @@ export interface Implicit { * Test implicitly optional header parameter * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.queryParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -72,12 +72,12 @@ export interface Implicit { * Test implicitly optional body parameter * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.bodyParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -88,10 +88,10 @@ export interface Implicit { * Test implicitly required path parameter * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -102,10 +102,10 @@ export interface Implicit { * Test implicitly required query parameter * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -116,10 +116,10 @@ export interface Implicit { * Test implicitly optional query parameter * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -140,12 +140,12 @@ export interface Explicit { * should throw before the request is sent. * * @param {number} bodyParameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -156,12 +156,12 @@ export interface Explicit { * Test explicitly optional integer. Please put null. * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.bodyParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -174,12 +174,12 @@ export interface Explicit { * sent. * * @param {number} value - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -191,12 +191,12 @@ export interface Explicit { * 'value' = null. * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.value] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -208,12 +208,12 @@ export interface Explicit { * null and the client library should throw before the request is sent. * * @param {number} headerParameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -225,12 +225,12 @@ export interface Explicit { * null. * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.headerParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -242,12 +242,12 @@ export interface Explicit { * should throw before the request is sent. * * @param {string} bodyParameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -258,12 +258,12 @@ export interface Explicit { * Test explicitly optional string. Please put null. * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.bodyParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -276,12 +276,12 @@ export interface Explicit { * sent. * * @param {string} value - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -293,12 +293,12 @@ export interface Explicit { * 'value' = null. * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.value] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -310,12 +310,12 @@ export interface Explicit { * null and the client library should throw before the request is sent. * * @param {string} headerParameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -327,12 +327,12 @@ export interface Explicit { * null. * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.bodyParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -344,16 +344,16 @@ export interface Explicit { * library should throw before the request is sent. * * @param {object} bodyParameter - * + * * @param {number} bodyParameter.id - * + * * @param {string} [bodyParameter.name] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -364,16 +364,16 @@ export interface Explicit { * Test explicitly optional complex object. Please put null. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.bodyParameter] - * + * * @param {number} options.bodyParameter.id - * + * * @param {string} [options.bodyParameter.name] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -386,16 +386,16 @@ export interface Explicit { * is sent. * * @param {object} value - * + * * @param {number} value.id - * + * * @param {string} [value.name] - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -407,16 +407,16 @@ export interface Explicit { * with 'value' = null. * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.value] - * + * * @param {number} options.value.id - * + * * @param {string} [options.value.name] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -428,12 +428,12 @@ export interface Explicit { * should throw before the request is sent. * * @param {array} bodyParameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -444,12 +444,12 @@ export interface Explicit { * Test explicitly optional array. Please put null. * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.bodyParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -462,12 +462,12 @@ export interface Explicit { * sent. * * @param {array} value - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -479,12 +479,12 @@ export interface Explicit { * 'value' = null. * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.value] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -496,12 +496,12 @@ export interface Explicit { * null and the client library should throw before the request is sent. * * @param {array} headerParameter - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -513,12 +513,12 @@ export interface Explicit { * null. * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.headerParameter] - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/index.js index d9b20609f5..34f122ab90 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/RequiredOptional/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/autoRestUrlTestService.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/autoRestUrlTestService.d.ts index 9fc70a6fbe..397c982b02 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/autoRestUrlTestService.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/autoRestUrlTestService.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/autoRestUrlTestService.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/autoRestUrlTestService.js index b5e8374563..adedae97ed 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/autoRestUrlTestService.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/autoRestUrlTestService.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -56,7 +56,7 @@ function AutoRestUrlTestService(globalStringPath, baseUri, options) { } this.globalStringPath = globalStringPath; - if(options.globalStringQuery !== null && options.globalStringQuery !== undefined) { + if(options.globalStringQuery !== null && options.globalStringQuery !== undefined) { this.globalStringQuery = options.globalStringQuery; } this.paths = new operations.Paths(this); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/models/errorModel.js index 663be0f4aa..1e4a08a733 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,9 +15,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/models/index.d.ts index 9df591a3ea..e2490e88c3 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,9 +14,9 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [status] - * + * * @member {string} [message] - * + * */ export interface ErrorModel { status?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/models/index.js index 3430295d8b..0bb88a7936 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/index.d.ts index 22dbc8c9b1..e0ab84c078 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -24,10 +24,10 @@ export interface Paths { * Get true Boolean value on path * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -38,10 +38,10 @@ export interface Paths { * Get false Boolean value on path * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -52,10 +52,10 @@ export interface Paths { * Get '1000000' integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -66,10 +66,10 @@ export interface Paths { * Get '-1000000' integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -80,10 +80,10 @@ export interface Paths { * Get '10000000000' 64 bit integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -94,10 +94,10 @@ export interface Paths { * Get '-10000000000' 64 bit integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -108,10 +108,10 @@ export interface Paths { * Get '1.034E+20' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -122,10 +122,10 @@ export interface Paths { * Get '-1.034E-20' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -136,10 +136,10 @@ export interface Paths { * Get '9999999.999' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -150,10 +150,10 @@ export interface Paths { * Get '-9999999.999' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -164,10 +164,10 @@ export interface Paths { * Get '啊齄丂狛狜隣郎隣兀﨩' multi-byte string value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -178,10 +178,10 @@ export interface Paths { * Get 'begin!*'();:@ &=+$,/?#[]end * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -192,10 +192,10 @@ export interface Paths { * Get '' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -206,12 +206,12 @@ export interface Paths { * Get null (should throw) * * @param {string} stringPath null string value - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -223,12 +223,12 @@ export interface Paths { * * @param {string} enumPath send the value green. Possible values include: 'red * color', 'green color', 'blue color' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -240,12 +240,12 @@ export interface Paths { * * @param {string} enumPath send null should throw. Possible values include: * 'red color', 'green color', 'blue color' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -257,12 +257,12 @@ export interface Paths { * * @param {buffer} bytePath '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte * array - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -273,10 +273,10 @@ export interface Paths { * Get '' as byte array * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -287,12 +287,12 @@ export interface Paths { * Get null as byte array (should throw) * * @param {buffer} bytePath null as byte array (should throw) - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -303,10 +303,10 @@ export interface Paths { * Get '2012-01-01' as date * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -318,12 +318,12 @@ export interface Paths { * depending on date representation * * @param {date} datePath null as date (should throw) - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -334,10 +334,10 @@ export interface Paths { * Get '2012-01-01T01:01:01Z' as date-time * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -349,12 +349,12 @@ export interface Paths { * representation of date-time * * @param {date} dateTimePath null as date-time - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -365,12 +365,12 @@ export interface Paths { * Get 'lorem' encoded value as 'bG9yZW0' (base64url) * * @param {buffer} base64UrlPath base64url encoded value - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -383,12 +383,12 @@ export interface Paths { * * @param {array} arrayPath an array of string ['ArrayPath1', 'begin!*'();:@ * &=+$,/?#[]end' , null, ''] using the csv-array format - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -399,12 +399,12 @@ export interface Paths { * Get the date 2016-04-13 encoded value as '1460505600' (Unix time) * * @param {date} unixTimeUrlPath Unix time encoded value - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -424,10 +424,10 @@ export interface Queries { * Get true Boolean value on path * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -438,10 +438,10 @@ export interface Queries { * Get false Boolean value on path * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -452,12 +452,12 @@ export interface Queries { * Get null Boolean value on query (query string should be absent) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.boolQuery] null boolean value - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -468,10 +468,10 @@ export interface Queries { * Get '1000000' integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -482,10 +482,10 @@ export interface Queries { * Get '-1000000' integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -496,12 +496,12 @@ export interface Queries { * Get null integer value (no query parameter) * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.intQuery] null integer value - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -512,10 +512,10 @@ export interface Queries { * Get '10000000000' 64 bit integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -526,10 +526,10 @@ export interface Queries { * Get '-10000000000' 64 bit integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -540,12 +540,12 @@ export interface Queries { * Get 'null 64 bit integer value (no query param in uri) * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.longQuery] null 64 bit integer value - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -556,10 +556,10 @@ export interface Queries { * Get '1.034E+20' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -570,10 +570,10 @@ export interface Queries { * Get '-1.034E-20' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -584,12 +584,12 @@ export interface Queries { * Get null numeric value (no query parameter) * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.floatQuery] null numeric value - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -600,10 +600,10 @@ export interface Queries { * Get '9999999.999' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -614,10 +614,10 @@ export interface Queries { * Get '-9999999.999' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -628,12 +628,12 @@ export interface Queries { * Get null numeric value (no query parameter) * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.doubleQuery] null numeric value - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -644,10 +644,10 @@ export interface Queries { * Get '啊齄丂狛狜隣郎隣兀﨩' multi-byte string value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -658,10 +658,10 @@ export interface Queries { * Get 'begin!*'();:@ &=+$,/?#[]end * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -672,10 +672,10 @@ export interface Queries { * Get '' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -686,12 +686,12 @@ export interface Queries { * Get null (no query parameter in url) * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.stringQuery] null string value - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -702,13 +702,13 @@ export interface Queries { * Get using uri with query parameter 'green color' * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.enumQuery] 'green color' enum value. Possible * values include: 'red color', 'green color', 'blue color' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -719,13 +719,13 @@ export interface Queries { * Get null (no query parameter in url) * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.enumQuery] null string value. Possible values * include: 'red color', 'green color', 'blue color' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -736,13 +736,13 @@ export interface Queries { * Get '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte array * * @param {object} [options] Optional Parameters. - * + * * @param {buffer} [options.byteQuery] '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 * encoded byte array - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -753,10 +753,10 @@ export interface Queries { * Get '' as byte array * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -767,13 +767,13 @@ export interface Queries { * Get null as byte array (no query parameters in uri) * * @param {object} [options] Optional Parameters. - * + * * @param {buffer} [options.byteQuery] null as byte array (no query parameters * in uri) - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -784,10 +784,10 @@ export interface Queries { * Get '2012-01-01' as date * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -798,12 +798,12 @@ export interface Queries { * Get null as date - this should result in no query parameters in uri * * @param {object} [options] Optional Parameters. - * + * * @param {date} [options.dateQuery] null as date (no query parameters in uri) - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -814,10 +814,10 @@ export interface Queries { * Get '2012-01-01T01:01:01Z' as date-time * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -828,13 +828,13 @@ export interface Queries { * Get null as date-time, should result in no query parameters in uri * * @param {object} [options] Optional Parameters. - * + * * @param {date} [options.dateTimeQuery] null as date-time (no query * parameters) - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -846,13 +846,13 @@ export interface Queries { * ''] using the csv-array format * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayQuery] an array of string ['ArrayQuery1', * 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the csv-array format - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -863,13 +863,13 @@ export interface Queries { * Get a null array of string using the csv-array format * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayQuery] a null array of string using the * csv-array format - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -880,13 +880,13 @@ export interface Queries { * Get an empty array [] of string using the csv-array format * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayQuery] an empty array [] of string using the * csv-array format - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -898,13 +898,13 @@ export interface Queries { * ''] using the ssv-array format * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayQuery] an array of string ['ArrayQuery1', * 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the ssv-array format - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -916,13 +916,13 @@ export interface Queries { * ''] using the tsv-array format * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayQuery] an array of string ['ArrayQuery1', * 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the tsv-array format - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -934,13 +934,13 @@ export interface Queries { * ''] using the pipes-array format * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayQuery] an array of string ['ArrayQuery1', * 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the pipes-array format - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -964,21 +964,21 @@ export interface PathItems { * localStringQuery='localStringQuery' * * @param {string} localStringPath should contain value 'localStringPath' - * + * * @param {string} pathItemStringPath A string value 'pathItemStringPath' that * appears in the path - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.localStringQuery] should contain value * 'localStringQuery' - * + * * @param {string} [options.pathItemStringQuery] A string value * 'pathItemStringQuery' that appears as a query parameter - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -992,21 +992,21 @@ export interface PathItems { * localStringQuery='localStringQuery' * * @param {string} localStringPath should contain value 'localStringPath' - * + * * @param {string} pathItemStringPath A string value 'pathItemStringPath' that * appears in the path - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.localStringQuery] should contain value * 'localStringQuery' - * + * * @param {string} [options.pathItemStringQuery] A string value * 'pathItemStringQuery' that appears as a query parameter - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1020,20 +1020,20 @@ export interface PathItems { * localStringQuery=null * * @param {string} localStringPath should contain value 'localStringPath' - * + * * @param {string} pathItemStringPath A string value 'pathItemStringPath' that * appears in the path - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.localStringQuery] should contain null value - * + * * @param {string} [options.pathItemStringQuery] A string value * 'pathItemStringQuery' that appears as a query parameter - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -1047,19 +1047,19 @@ export interface PathItems { * localStringQuery=null * * @param {string} localStringPath should contain value 'localStringPath' - * + * * @param {string} pathItemStringPath A string value 'pathItemStringPath' that * appears in the path - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.localStringQuery] should contain value null - * + * * @param {string} [options.pathItemStringQuery] should contain value null - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/index.js index 6271e7f92d..c4fb162c10 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/pathItems.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/pathItems.js index 482914bf8c..af4bd1e7cc 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/pathItems.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/pathItems.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -36,21 +36,21 @@ function PathItems(client) { * localStringQuery='localStringQuery' * * @param {string} localStringPath should contain value 'localStringPath' - * + * * @param {string} pathItemStringPath A string value 'pathItemStringPath' that * appears in the path - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.localStringQuery] should contain value * 'localStringQuery' - * + * * @param {string} [options.pathItemStringQuery] A string value * 'pathItemStringQuery' that appears as a query parameter - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -159,7 +159,7 @@ PathItems.prototype.getAllWithValues = function (localStringPath, pathItemString error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -180,21 +180,21 @@ PathItems.prototype.getAllWithValues = function (localStringPath, pathItemString * localStringQuery='localStringQuery' * * @param {string} localStringPath should contain value 'localStringPath' - * + * * @param {string} pathItemStringPath A string value 'pathItemStringPath' that * appears in the path - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.localStringQuery] should contain value * 'localStringQuery' - * + * * @param {string} [options.pathItemStringQuery] A string value * 'pathItemStringQuery' that appears as a query parameter - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -303,7 +303,7 @@ PathItems.prototype.getGlobalQueryNull = function (localStringPath, pathItemStri error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -324,20 +324,20 @@ PathItems.prototype.getGlobalQueryNull = function (localStringPath, pathItemStri * localStringQuery=null * * @param {string} localStringPath should contain value 'localStringPath' - * + * * @param {string} pathItemStringPath A string value 'pathItemStringPath' that * appears in the path - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.localStringQuery] should contain null value - * + * * @param {string} [options.pathItemStringQuery] A string value * 'pathItemStringQuery' that appears as a query parameter - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -446,7 +446,7 @@ PathItems.prototype.getGlobalAndLocalQueryNull = function (localStringPath, path error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -467,19 +467,19 @@ PathItems.prototype.getGlobalAndLocalQueryNull = function (localStringPath, path * localStringQuery=null * * @param {string} localStringPath should contain value 'localStringPath' - * + * * @param {string} pathItemStringPath A string value 'pathItemStringPath' that * appears in the path - * + * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.localStringQuery] should contain value null - * + * * @param {string} [options.pathItemStringQuery] should contain value null - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -588,7 +588,7 @@ PathItems.prototype.getLocalPathItemQueryNull = function (localStringPath, pathI error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/paths.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/paths.js index 9fcd6536d9..5c35474208 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/paths.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/paths.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function Paths(client) { * Get true Boolean value on path * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -105,7 +105,7 @@ Paths.prototype.getBooleanTrue = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -123,10 +123,10 @@ Paths.prototype.getBooleanTrue = function (options, callback) { * Get false Boolean value on path * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -196,7 +196,7 @@ Paths.prototype.getBooleanFalse = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -214,10 +214,10 @@ Paths.prototype.getBooleanFalse = function (options, callback) { * Get '1000000' integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -287,7 +287,7 @@ Paths.prototype.getIntOneMillion = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -305,10 +305,10 @@ Paths.prototype.getIntOneMillion = function (options, callback) { * Get '-1000000' integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -378,7 +378,7 @@ Paths.prototype.getIntNegativeOneMillion = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -396,10 +396,10 @@ Paths.prototype.getIntNegativeOneMillion = function (options, callback) { * Get '10000000000' 64 bit integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -469,7 +469,7 @@ Paths.prototype.getTenBillion = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -487,10 +487,10 @@ Paths.prototype.getTenBillion = function (options, callback) { * Get '-10000000000' 64 bit integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -560,7 +560,7 @@ Paths.prototype.getNegativeTenBillion = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -578,10 +578,10 @@ Paths.prototype.getNegativeTenBillion = function (options, callback) { * Get '1.034E+20' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -651,7 +651,7 @@ Paths.prototype.floatScientificPositive = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -669,10 +669,10 @@ Paths.prototype.floatScientificPositive = function (options, callback) { * Get '-1.034E-20' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -742,7 +742,7 @@ Paths.prototype.floatScientificNegative = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -760,10 +760,10 @@ Paths.prototype.floatScientificNegative = function (options, callback) { * Get '9999999.999' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -833,7 +833,7 @@ Paths.prototype.doubleDecimalPositive = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -851,10 +851,10 @@ Paths.prototype.doubleDecimalPositive = function (options, callback) { * Get '-9999999.999' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -924,7 +924,7 @@ Paths.prototype.doubleDecimalNegative = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -942,10 +942,10 @@ Paths.prototype.doubleDecimalNegative = function (options, callback) { * Get '啊齄丂狛狜隣郎隣兀﨩' multi-byte string value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1015,7 +1015,7 @@ Paths.prototype.stringUnicode = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1033,10 +1033,10 @@ Paths.prototype.stringUnicode = function (options, callback) { * Get 'begin!*'();:@ &=+$,/?#[]end * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1106,7 +1106,7 @@ Paths.prototype.stringUrlEncoded = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1124,10 +1124,10 @@ Paths.prototype.stringUrlEncoded = function (options, callback) { * Get '' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1197,7 +1197,7 @@ Paths.prototype.stringEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1215,12 +1215,12 @@ Paths.prototype.stringEmpty = function (options, callback) { * Get null (should throw) * * @param {string} stringPath null string value - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1297,7 +1297,7 @@ Paths.prototype.stringNull = function (stringPath, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1316,12 +1316,12 @@ Paths.prototype.stringNull = function (stringPath, options, callback) { * * @param {string} enumPath send the value green. Possible values include: 'red * color', 'green color', 'blue color' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1403,7 +1403,7 @@ Paths.prototype.enumValid = function (enumPath, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1422,12 +1422,12 @@ Paths.prototype.enumValid = function (enumPath, options, callback) { * * @param {string} enumPath send null should throw. Possible values include: * 'red color', 'green color', 'blue color' - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1509,7 +1509,7 @@ Paths.prototype.enumNull = function (enumPath, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1528,12 +1528,12 @@ Paths.prototype.enumNull = function (enumPath, options, callback) { * * @param {buffer} bytePath '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte * array - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1610,7 +1610,7 @@ Paths.prototype.byteMultiByte = function (bytePath, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1628,10 +1628,10 @@ Paths.prototype.byteMultiByte = function (bytePath, options, callback) { * Get '' as byte array * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1701,7 +1701,7 @@ Paths.prototype.byteEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1719,12 +1719,12 @@ Paths.prototype.byteEmpty = function (options, callback) { * Get null as byte array (should throw) * * @param {buffer} bytePath null as byte array (should throw) - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1801,7 +1801,7 @@ Paths.prototype.byteNull = function (bytePath, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1819,10 +1819,10 @@ Paths.prototype.byteNull = function (bytePath, options, callback) { * Get '2012-01-01' as date * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1892,7 +1892,7 @@ Paths.prototype.dateValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1911,12 +1911,12 @@ Paths.prototype.dateValid = function (options, callback) { * depending on date representation * * @param {date} datePath null as date (should throw) - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1940,7 +1940,7 @@ Paths.prototype.dateNull = function (datePath, options, callback) { } // Validate try { - if(!datePath || !(datePath instanceof Date || + if(!datePath || !(datePath instanceof Date || (typeof datePath.valueOf() === 'string' && !isNaN(Date.parse(datePath))))) { throw new Error('datePath cannot be null or undefined and it must be of type date.'); } @@ -1994,7 +1994,7 @@ Paths.prototype.dateNull = function (datePath, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2012,10 +2012,10 @@ Paths.prototype.dateNull = function (datePath, options, callback) { * Get '2012-01-01T01:01:01Z' as date-time * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2085,7 +2085,7 @@ Paths.prototype.dateTimeValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2104,12 +2104,12 @@ Paths.prototype.dateTimeValid = function (options, callback) { * representation of date-time * * @param {date} dateTimePath null as date-time - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2133,7 +2133,7 @@ Paths.prototype.dateTimeNull = function (dateTimePath, options, callback) { } // Validate try { - if(!dateTimePath || !(dateTimePath instanceof Date || + if(!dateTimePath || !(dateTimePath instanceof Date || (typeof dateTimePath.valueOf() === 'string' && !isNaN(Date.parse(dateTimePath))))) { throw new Error('dateTimePath cannot be null or undefined and it must be of type date.'); } @@ -2187,7 +2187,7 @@ Paths.prototype.dateTimeNull = function (dateTimePath, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2205,12 +2205,12 @@ Paths.prototype.dateTimeNull = function (dateTimePath, options, callback) { * Get 'lorem' encoded value as 'bG9yZW0' (base64url) * * @param {buffer} base64UrlPath base64url encoded value - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2287,7 +2287,7 @@ Paths.prototype.base64Url = function (base64UrlPath, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2307,12 +2307,12 @@ Paths.prototype.base64Url = function (base64UrlPath, options, callback) { * * @param {array} arrayPath an array of string ['ArrayPath1', 'begin!*'();:@ * &=+$,/?#[]end' , null, ''] using the csv-array format - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2394,7 +2394,7 @@ Paths.prototype.arrayCsvInPath = function (arrayPath, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2412,12 +2412,12 @@ Paths.prototype.arrayCsvInPath = function (arrayPath, options, callback) { * Get the date 2016-04-13 encoded value as '1460505600' (Unix time) * * @param {date} unixTimeUrlPath Unix time encoded value - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2441,7 +2441,7 @@ Paths.prototype.unixTimeUrl = function (unixTimeUrlPath, options, callback) { } // Validate try { - if(!unixTimeUrlPath || !(unixTimeUrlPath instanceof Date || + if(!unixTimeUrlPath || !(unixTimeUrlPath instanceof Date || (typeof unixTimeUrlPath.valueOf() === 'string' && !isNaN(Date.parse(unixTimeUrlPath))))) { throw new Error('unixTimeUrlPath cannot be null or undefined and it must be of type date.'); } @@ -2495,7 +2495,7 @@ Paths.prototype.unixTimeUrl = function (unixTimeUrlPath, options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/queries.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/queries.js index 50d9cbfec6..1da76bd302 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/queries.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Url/operations/queries.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -32,10 +32,10 @@ function Queries(client) { * Get true Boolean value on path * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -109,7 +109,7 @@ Queries.prototype.getBooleanTrue = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -127,10 +127,10 @@ Queries.prototype.getBooleanTrue = function (options, callback) { * Get false Boolean value on path * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -204,7 +204,7 @@ Queries.prototype.getBooleanFalse = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -222,12 +222,12 @@ Queries.prototype.getBooleanFalse = function (options, callback) { * Get null Boolean value on query (query string should be absent) * * @param {object} [options] Optional Parameters. - * + * * @param {boolean} [options.boolQuery] null boolean value - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -311,7 +311,7 @@ Queries.prototype.getBooleanNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -329,10 +329,10 @@ Queries.prototype.getBooleanNull = function (options, callback) { * Get '1000000' integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -406,7 +406,7 @@ Queries.prototype.getIntOneMillion = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -424,10 +424,10 @@ Queries.prototype.getIntOneMillion = function (options, callback) { * Get '-1000000' integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -501,7 +501,7 @@ Queries.prototype.getIntNegativeOneMillion = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -519,12 +519,12 @@ Queries.prototype.getIntNegativeOneMillion = function (options, callback) { * Get null integer value (no query parameter) * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.intQuery] null integer value - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -608,7 +608,7 @@ Queries.prototype.getIntNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -626,10 +626,10 @@ Queries.prototype.getIntNull = function (options, callback) { * Get '10000000000' 64 bit integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -703,7 +703,7 @@ Queries.prototype.getTenBillion = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -721,10 +721,10 @@ Queries.prototype.getTenBillion = function (options, callback) { * Get '-10000000000' 64 bit integer value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -798,7 +798,7 @@ Queries.prototype.getNegativeTenBillion = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -816,12 +816,12 @@ Queries.prototype.getNegativeTenBillion = function (options, callback) { * Get 'null 64 bit integer value (no query param in uri) * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.longQuery] null 64 bit integer value - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -905,7 +905,7 @@ Queries.prototype.getLongNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -923,10 +923,10 @@ Queries.prototype.getLongNull = function (options, callback) { * Get '1.034E+20' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1000,7 +1000,7 @@ Queries.prototype.floatScientificPositive = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1018,10 +1018,10 @@ Queries.prototype.floatScientificPositive = function (options, callback) { * Get '-1.034E-20' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1095,7 +1095,7 @@ Queries.prototype.floatScientificNegative = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1113,12 +1113,12 @@ Queries.prototype.floatScientificNegative = function (options, callback) { * Get null numeric value (no query parameter) * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.floatQuery] null numeric value - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1202,7 +1202,7 @@ Queries.prototype.floatNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1220,10 +1220,10 @@ Queries.prototype.floatNull = function (options, callback) { * Get '9999999.999' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1297,7 +1297,7 @@ Queries.prototype.doubleDecimalPositive = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1315,10 +1315,10 @@ Queries.prototype.doubleDecimalPositive = function (options, callback) { * Get '-9999999.999' numeric value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1392,7 +1392,7 @@ Queries.prototype.doubleDecimalNegative = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1410,12 +1410,12 @@ Queries.prototype.doubleDecimalNegative = function (options, callback) { * Get null numeric value (no query parameter) * * @param {object} [options] Optional Parameters. - * + * * @param {number} [options.doubleQuery] null numeric value - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1499,7 +1499,7 @@ Queries.prototype.doubleNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1517,10 +1517,10 @@ Queries.prototype.doubleNull = function (options, callback) { * Get '啊齄丂狛狜隣郎隣兀﨩' multi-byte string value * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1594,7 +1594,7 @@ Queries.prototype.stringUnicode = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1612,10 +1612,10 @@ Queries.prototype.stringUnicode = function (options, callback) { * Get 'begin!*'();:@ &=+$,/?#[]end * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1689,7 +1689,7 @@ Queries.prototype.stringUrlEncoded = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1707,10 +1707,10 @@ Queries.prototype.stringUrlEncoded = function (options, callback) { * Get '' * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1784,7 +1784,7 @@ Queries.prototype.stringEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1802,12 +1802,12 @@ Queries.prototype.stringEmpty = function (options, callback) { * Get null (no query parameter in url) * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.stringQuery] null string value - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -1891,7 +1891,7 @@ Queries.prototype.stringNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -1909,13 +1909,13 @@ Queries.prototype.stringNull = function (options, callback) { * Get using uri with query parameter 'green color' * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.enumQuery] 'green color' enum value. Possible * values include: 'red color', 'green color', 'blue color' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2002,7 +2002,7 @@ Queries.prototype.enumValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2020,13 +2020,13 @@ Queries.prototype.enumValid = function (options, callback) { * Get null (no query parameter in url) * * @param {object} [options] Optional Parameters. - * + * * @param {string} [options.enumQuery] null string value. Possible values * include: 'red color', 'green color', 'blue color' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2113,7 +2113,7 @@ Queries.prototype.enumNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2131,13 +2131,13 @@ Queries.prototype.enumNull = function (options, callback) { * Get '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 encoded byte array * * @param {object} [options] Optional Parameters. - * + * * @param {buffer} [options.byteQuery] '啊齄丂狛狜隣郎隣兀﨩' multibyte value as utf-8 * encoded byte array - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2221,7 +2221,7 @@ Queries.prototype.byteMultiByte = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2239,10 +2239,10 @@ Queries.prototype.byteMultiByte = function (options, callback) { * Get '' as byte array * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2316,7 +2316,7 @@ Queries.prototype.byteEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2334,13 +2334,13 @@ Queries.prototype.byteEmpty = function (options, callback) { * Get null as byte array (no query parameters in uri) * * @param {object} [options] Optional Parameters. - * + * * @param {buffer} [options.byteQuery] null as byte array (no query parameters * in uri) - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2424,7 +2424,7 @@ Queries.prototype.byteNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2442,10 +2442,10 @@ Queries.prototype.byteNull = function (options, callback) { * Get '2012-01-01' as date * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2519,7 +2519,7 @@ Queries.prototype.dateValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2537,12 +2537,12 @@ Queries.prototype.dateValid = function (options, callback) { * Get null as date - this should result in no query parameters in uri * * @param {object} [options] Optional Parameters. - * + * * @param {date} [options.dateQuery] null as date (no query parameters in uri) - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2567,7 +2567,7 @@ Queries.prototype.dateNull = function (options, callback) { var dateQuery = (options && options.dateQuery !== undefined) ? options.dateQuery : undefined; // Validate try { - if (dateQuery && !(dateQuery instanceof Date || + if (dateQuery && !(dateQuery instanceof Date || (typeof dateQuery.valueOf() === 'string' && !isNaN(Date.parse(dateQuery))))) { throw new Error('dateQuery must be of type date.'); } @@ -2627,7 +2627,7 @@ Queries.prototype.dateNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2645,10 +2645,10 @@ Queries.prototype.dateNull = function (options, callback) { * Get '2012-01-01T01:01:01Z' as date-time * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2722,7 +2722,7 @@ Queries.prototype.dateTimeValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2740,13 +2740,13 @@ Queries.prototype.dateTimeValid = function (options, callback) { * Get null as date-time, should result in no query parameters in uri * * @param {object} [options] Optional Parameters. - * + * * @param {date} [options.dateTimeQuery] null as date-time (no query * parameters) - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2771,7 +2771,7 @@ Queries.prototype.dateTimeNull = function (options, callback) { var dateTimeQuery = (options && options.dateTimeQuery !== undefined) ? options.dateTimeQuery : undefined; // Validate try { - if (dateTimeQuery && !(dateTimeQuery instanceof Date || + if (dateTimeQuery && !(dateTimeQuery instanceof Date || (typeof dateTimeQuery.valueOf() === 'string' && !isNaN(Date.parse(dateTimeQuery))))) { throw new Error('dateTimeQuery must be of type date.'); } @@ -2831,7 +2831,7 @@ Queries.prototype.dateTimeNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2850,13 +2850,13 @@ Queries.prototype.dateTimeNull = function (options, callback) { * ''] using the csv-array format * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayQuery] an array of string ['ArrayQuery1', * 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the csv-array format - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -2944,7 +2944,7 @@ Queries.prototype.arrayStringCsvValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -2962,13 +2962,13 @@ Queries.prototype.arrayStringCsvValid = function (options, callback) { * Get a null array of string using the csv-array format * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayQuery] a null array of string using the * csv-array format - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3056,7 +3056,7 @@ Queries.prototype.arrayStringCsvNull = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3074,13 +3074,13 @@ Queries.prototype.arrayStringCsvNull = function (options, callback) { * Get an empty array [] of string using the csv-array format * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayQuery] an empty array [] of string using the * csv-array format - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3168,7 +3168,7 @@ Queries.prototype.arrayStringCsvEmpty = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3187,13 +3187,13 @@ Queries.prototype.arrayStringCsvEmpty = function (options, callback) { * ''] using the ssv-array format * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayQuery] an array of string ['ArrayQuery1', * 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the ssv-array format - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3281,7 +3281,7 @@ Queries.prototype.arrayStringSsvValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3300,13 +3300,13 @@ Queries.prototype.arrayStringSsvValid = function (options, callback) { * ''] using the tsv-array format * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayQuery] an array of string ['ArrayQuery1', * 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the tsv-array format - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3394,7 +3394,7 @@ Queries.prototype.arrayStringTsvValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -3413,13 +3413,13 @@ Queries.prototype.arrayStringTsvValid = function (options, callback) { * ''] using the pipes-array format * * @param {object} [options] Optional Parameters. - * + * * @param {array} [options.arrayQuery] an array of string ['ArrayQuery1', * 'begin!*'();:@ &=+$,/?#[]end' , null, ''] using the pipes-array format - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -3507,7 +3507,7 @@ Queries.prototype.arrayStringPipesValid = function (options, callback) { error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/autoRestValidationTest.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/autoRestValidationTest.d.ts index fbef074ece..fa572606cb 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/autoRestValidationTest.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/autoRestValidationTest.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -44,14 +44,14 @@ declare class AutoRestValidationTest { * * @param {string} resourceGroupName Required string between 3 and 10 chars * with pattern [a-zA-Z0-9]+. - * + * * @param {number} id Required int multiple of 10 from 100 to 1000. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -63,31 +63,31 @@ declare class AutoRestValidationTest { * * @param {string} resourceGroupName Required string between 3 and 10 chars * with pattern [a-zA-Z0-9]+. - * + * * @param {number} id Required int multiple of 10 from 100 to 1000. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.body] - * + * * @param {array} [options.body.displayNames] Non required array of unique * items from 0 to 6 elements. - * + * * @param {number} [options.body.capacity] Non required int betwen 0 and 100 * exclusive. - * + * * @param {string} [options.body.image] Image URL representing the product. - * + * * @param {object} options.body.child - * + * * @param {number} [options.body.child.count] Count - * + * * @param {string} [options.body.constStringAsEnum] Constant string as Enum. * Possible values include: 'constant_string_as_enum' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -96,10 +96,10 @@ declare class AutoRestValidationTest { /** * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ @@ -108,27 +108,27 @@ declare class AutoRestValidationTest { /** * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.body] - * + * * @param {array} [options.body.displayNames] Non required array of unique * items from 0 to 6 elements. - * + * * @param {number} [options.body.capacity] Non required int betwen 0 and 100 * exclusive. - * + * * @param {string} [options.body.image] Image URL representing the product. - * + * * @param {object} options.body.child - * + * * @param {number} [options.body.child.count] Count - * + * * @param {string} [options.body.constStringAsEnum] Constant string as Enum. * Possible values include: 'constant_string_as_enum' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {ServiceCallback} [callback] callback function; see ServiceCallback * doc in ms-rest index.d.ts for details */ diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/autoRestValidationTest.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/autoRestValidationTest.js index ee19b7ae02..a0932a5c05 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/autoRestValidationTest.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/autoRestValidationTest.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -71,14 +71,14 @@ util.inherits(AutoRestValidationTest, ServiceClient); * * @param {string} resourceGroupName Required string between 3 and 10 chars * with pattern [a-zA-Z0-9]+. - * + * * @param {number} id Required int multiple of 10 from 100 to 1000. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -206,7 +206,7 @@ AutoRestValidationTest.prototype.validationOfMethodParameters = function (resour error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -242,31 +242,31 @@ AutoRestValidationTest.prototype.validationOfMethodParameters = function (resour * * @param {string} resourceGroupName Required string between 3 and 10 chars * with pattern [a-zA-Z0-9]+. - * + * * @param {number} id Required int multiple of 10 from 100 to 1000. - * + * * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.body] - * + * * @param {array} [options.body.displayNames] Non required array of unique * items from 0 to 6 elements. - * + * * @param {number} [options.body.capacity] Non required int betwen 0 and 100 * exclusive. - * + * * @param {string} [options.body.image] Image URL representing the product. - * + * * @param {object} options.body.child - * + * * @param {number} [options.body.child.count] Count - * + * * @param {string} [options.body.constStringAsEnum] Constant string as Enum. * Possible values include: 'constant_string_as_enum' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -378,7 +378,7 @@ AutoRestValidationTest.prototype.validationOfBody = function (resourceGroupName, requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(body, {depth: null}))); return callback(serializationError); } @@ -409,7 +409,7 @@ AutoRestValidationTest.prototype.validationOfBody = function (resourceGroupName, error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -442,10 +442,10 @@ AutoRestValidationTest.prototype.validationOfBody = function (resourceGroupName, /** * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -511,7 +511,7 @@ AutoRestValidationTest.prototype.getWithConstantInPath = function (options, call error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } @@ -527,27 +527,27 @@ AutoRestValidationTest.prototype.getWithConstantInPath = function (options, call /** * @param {object} [options] Optional Parameters. - * + * * @param {object} [options.body] - * + * * @param {array} [options.body.displayNames] Non required array of unique * items from 0 to 6 elements. - * + * * @param {number} [options.body.capacity] Non required int betwen 0 and 100 * exclusive. - * + * * @param {string} [options.body.image] Image URL representing the product. - * + * * @param {object} options.body.child - * + * * @param {number} [options.body.child.count] Count - * + * * @param {string} [options.body.constStringAsEnum] Constant string as Enum. * Possible values include: 'constant_string_as_enum' - * + * * @param {object} [options.customHeaders] Headers that will be added to the * request - * + * * @param {function} callback * * @returns {function} callback(err, result, request, response) @@ -602,7 +602,7 @@ AutoRestValidationTest.prototype.postWithConstantInBody = function (options, cal requestContent = JSON.stringify(requestModel); } } catch (error) { - var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + + var serializationError = new Error(util.format('Error "%s" occurred in serializing the ' + 'payload - "%s"', error.message, util.inspect(body, {depth: null}))); return callback(serializationError); } @@ -629,7 +629,7 @@ AutoRestValidationTest.prototype.postWithConstantInBody = function (options, cal error.message = internalError ? internalError.message : parsedErrorResponse.message; } } catch (defaultError) { - error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + + error.message = util.format('Error "%s" occurred in deserializing the responseBody ' + '- "%s" for the default response.', defaultError.message, responseBody); return callback(error); } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/childProduct.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/childProduct.js index 7d2570448c..3b6702b28b 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/childProduct.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/childProduct.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -17,7 +17,7 @@ * The product documentation. * * @member {number} [count] Count - * + * */ function ChildProduct() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/constantProduct.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/constantProduct.js index 3ef6a2dab7..d1fd06d63d 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/constantProduct.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/constantProduct.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/errorModel.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/errorModel.js index 9f27f2c83e..504cd157b0 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/errorModel.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/errorModel.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -15,11 +15,11 @@ * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [code] - * + * * @member {string} [message] - * + * * @member {string} [fields] - * + * */ function ErrorModel() { } diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/index.d.ts b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/index.d.ts index 5c7d90d731..9f02579b64 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/index.d.ts +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/index.d.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -11,54 +11,54 @@ /** * @class - * Initializes a new instance of the Product class. + * Initializes a new instance of the ChildProduct class. * @constructor * The product documentation. * - * @member {array} [displayNames] Non required array of unique items from 0 to - * 6 elements. - * - * @member {number} [capacity] Non required int betwen 0 and 100 exclusive. - * - * @member {string} [image] Image URL representing the product. - * - * @member {object} child - * - * @member {number} [child.count] Count - * - * @member {string} [constStringAsEnum] Constant string as Enum. Possible - * values include: 'constant_string_as_enum' - * + * @member {number} [count] Count + * */ -export interface Product { - displayNames?: string[]; - capacity?: number; - image?: string; - child: ChildProduct; - constStringAsEnum?: string; +export interface ChildProduct { + count?: number; } /** * @class - * Initializes a new instance of the ChildProduct class. + * Initializes a new instance of the ConstantProduct class. * @constructor * The product documentation. * - * @member {number} [count] Count - * */ -export interface ChildProduct { - count?: number; +export interface ConstantProduct { } /** * @class - * Initializes a new instance of the ConstantProduct class. + * Initializes a new instance of the Product class. * @constructor * The product documentation. * + * @member {array} [displayNames] Non required array of unique items from 0 to + * 6 elements. + * + * @member {number} [capacity] Non required int betwen 0 and 100 exclusive. + * + * @member {string} [image] Image URL representing the product. + * + * @member {object} child + * + * @member {number} [child.count] Count + * + * @member {string} [constStringAsEnum] Constant string as Enum. Possible + * values include: 'constant_string_as_enum' + * */ -export interface ConstantProduct { +export interface Product { + displayNames?: string[]; + capacity?: number; + image?: string; + child: ChildProduct; + constStringAsEnum?: string; } /** @@ -66,11 +66,11 @@ export interface ConstantProduct { * Initializes a new instance of the ErrorModel class. * @constructor * @member {number} [code] - * + * * @member {string} [message] - * + * * @member {string} [fields] - * + * */ export interface ErrorModel { code?: number; diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/index.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/index.js index 92d27410c5..312bc743c2 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/index.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/index.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -14,7 +14,7 @@ 'use strict'; -exports.Product = require('./product'); exports.ChildProduct = require('./childProduct'); exports.ConstantProduct = require('./constantProduct'); +exports.Product = require('./product'); exports.ErrorModel = require('./errorModel'); diff --git a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/product.js b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/product.js index 0a217cd963..9e4e31ee27 100644 --- a/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/product.js +++ b/src/generator/AutoRest.NodeJS.Tests/Expected/AcceptanceTests/Validation/models/product.js @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. - * + * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. @@ -22,18 +22,18 @@ var util = require('util'); * * @member {array} [displayNames] Non required array of unique items from 0 to * 6 elements. - * + * * @member {number} [capacity] Non required int betwen 0 and 100 exclusive. - * + * * @member {string} [image] Image URL representing the product. - * + * * @member {object} child - * + * * @member {number} [child.count] Count - * + * * @member {string} [constStringAsEnum] Constant string as Enum. Possible * values include: 'constant_string_as_enum' - * + * */ function Product() { } From 57eabe630a5c9f94ba6edc2bb74a08d637967742 Mon Sep 17 00:00:00 2001 From: Garrett Serack Date: Fri, 18 Nov 2016 15:16:35 -0800 Subject: [PATCH 06/10] regenerated c# (line endings) --- .../AutoRestDurationTestService.cs | 7 ++- .../AzureBodyDuration/DurationOperations.cs | 5 +- .../DurationOperationsExtensions.cs | 4 +- .../IAutoRestDurationTestService.cs | 4 +- .../AzureBodyDuration/IDurationOperations.cs | 4 +- .../AzureBodyDuration/Models/Error.cs | 8 +-- .../Models/ErrorException.cs | 8 +-- .../AutoRestDurationTestService.cs | 7 ++- .../DurationOperations.cs | 5 +- .../DurationOperationsExtensions.cs | 4 +- .../IAutoRestDurationTestService.cs | 4 +- .../IDurationOperations.cs | 4 +- .../AzureBodyDurationAllSync/Models/Error.cs | 8 +-- .../Models/ErrorException.cs | 8 +-- .../AutoRestDurationTestService.cs | 7 ++- .../DurationOperations.cs | 5 +- .../DurationOperationsExtensions.cs | 4 +- .../IAutoRestDurationTestService.cs | 4 +- .../IDurationOperations.cs | 4 +- .../AzureBodyDurationNoSync/Models/Error.cs | 8 +-- .../Models/ErrorException.cs | 8 +-- .../ArrayOperations.cs | 5 +- .../ArrayOperationsExtensions.cs | 4 +- .../AzureCompositeModel.cs | 7 ++- .../AzureCompositeModelExtensions.cs | 4 +- .../BasicOperations.cs | 5 +- .../BasicOperationsExtensions.cs | 4 +- .../DictionaryOperations.cs | 5 +- .../DictionaryOperationsExtensions.cs | 4 +- .../IArrayOperations.cs | 4 +- .../IAzureCompositeModel.cs | 4 +- .../IBasicOperations.cs | 4 +- .../IDictionaryOperations.cs | 4 +- .../IInheritanceOperations.cs | 4 +- .../IPolymorphicrecursiveOperations.cs | 4 +- .../IPolymorphismOperations.cs | 4 +- .../IPrimitiveOperations.cs | 4 +- .../IReadonlypropertyOperations.cs | 4 +- .../InheritanceOperations.cs | 5 +- .../InheritanceOperationsExtensions.cs | 4 +- .../Models/ArrayWrapper.cs | 6 +- .../AzureCompositeModelClient/Models/Basic.cs | 10 +-- .../Models/BooleanWrapper.cs | 8 +-- .../Models/ByteWrapper.cs | 6 +- .../Models/CMYKColors.cs | 4 +- .../AzureCompositeModelClient/Models/Cat.cs | 8 +-- .../Models/CatalogArray.cs | 6 +- .../Models/CatalogArrayOfDictionary.cs | 6 +- .../Models/CatalogDictionary.cs | 6 +- .../Models/CatalogDictionaryOfArray.cs | 6 +- .../Models/Cookiecuttershark.cs | 4 +- .../Models/DateWrapper.cs | 12 ++-- .../Models/DatetimeWrapper.cs | 8 +-- .../Models/Datetimerfc1123Wrapper.cs | 12 ++-- .../Models/DictionaryWrapper.cs | 6 +- .../AzureCompositeModelClient/Models/Dog.cs | 6 +- .../Models/DoubleWrapper.cs | 8 +-- .../Models/DurationWrapper.cs | 6 +- .../AzureCompositeModelClient/Models/Error.cs | 8 +-- .../Models/ErrorException.cs | 8 +-- .../AzureCompositeModelClient/Models/Fish.cs | 10 +-- .../Models/FloatWrapper.cs | 8 +-- .../Models/Goblinshark.cs | 6 +- .../Models/IntWrapper.cs | 8 +-- .../Models/LongWrapper.cs | 8 +-- .../AzureCompositeModelClient/Models/Pet.cs | 8 +-- .../Models/Product.cs | 14 ++--- .../Models/ReadonlyObj.cs | 10 +-- .../Models/Salmon.cs | 8 +-- .../Models/Sawshark.cs | 6 +- .../AzureCompositeModelClient/Models/Shark.cs | 8 +-- .../Models/Siamese.cs | 6 +- .../Models/StringWrapper.cs | 10 +-- .../PolymorphicrecursiveOperations.cs | 5 +- ...olymorphicrecursiveOperationsExtensions.cs | 4 +- .../PolymorphismOperations.cs | 5 +- .../PolymorphismOperationsExtensions.cs | 4 +- .../PrimitiveOperations.cs | 5 +- .../PrimitiveOperationsExtensions.cs | 4 +- .../ReadonlypropertyOperations.cs | 5 +- .../ReadonlypropertyOperationsExtensions.cs | 4 +- .../AutoRestParameterGroupingTestService.cs | 7 ++- .../IAutoRestParameterGroupingTestService.cs | 4 +- .../IParameterGroupingOperations.cs | 4 +- .../AzureParameterGrouping/Models/Error.cs | 8 +-- .../Models/ErrorException.cs | 8 +-- .../Models/FirstParameterGroup.cs | 8 +-- ...ingPostMultiParamGroupsSecondParamGroup.cs | 8 +-- ...ParameterGroupingPostOptionalParameters.cs | 8 +-- ...ParameterGroupingPostRequiredParameters.cs | 12 ++-- .../ParameterGroupingOperations.cs | 5 +- .../ParameterGroupingOperationsExtensions.cs | 4 +- .../AutoRestReportServiceForAzure.cs | 7 ++- ...AutoRestReportServiceForAzureExtensions.cs | 4 +- .../IAutoRestReportServiceForAzure.cs | 4 +- .../AzureReport/Models/Error.cs | 8 +-- .../AzureReport/Models/ErrorException.cs | 8 +-- .../AutoRestResourceFlatteningTestService.cs | 7 ++- ...ResourceFlatteningTestServiceExtensions.cs | 4 +- .../IAutoRestResourceFlatteningTestService.cs | 4 +- .../AzureResource/Models/Error.cs | 8 +-- .../AzureResource/Models/ErrorException.cs | 8 +-- .../AzureResource/Models/FlattenedProduct.cs | 10 +-- .../AzureResource/Models/Resource.cs | 20 +++--- .../Models/ResourceCollection.cs | 10 +-- .../ApiVersionDefaultOperations.cs | 5 +- .../ApiVersionDefaultOperationsExtensions.cs | 4 +- .../ApiVersionLocalOperations.cs | 5 +- .../ApiVersionLocalOperationsExtensions.cs | 4 +- ...utoRestAzureSpecialParametersTestClient.cs | 7 ++- .../AzureSpecials/HeaderOperations.cs | 5 +- .../HeaderOperationsExtensions.cs | 4 +- .../IApiVersionDefaultOperations.cs | 4 +- .../IApiVersionLocalOperations.cs | 4 +- ...utoRestAzureSpecialParametersTestClient.cs | 4 +- .../AzureSpecials/IHeaderOperations.cs | 4 +- .../AzureSpecials/IOdataOperations.cs | 4 +- .../ISkipUrlEncodingOperations.cs | 4 +- .../ISubscriptionInCredentialsOperations.cs | 4 +- .../ISubscriptionInMethodOperations.cs | 4 +- .../IXMsClientRequestIdOperations.cs | 4 +- .../AzureSpecials/Models/Error.cs | 10 +-- .../AzureSpecials/Models/ErrorException.cs | 8 +-- .../HeaderCustomNamedRequestIdHeaders.cs | 6 +- ...ustomNamedRequestIdParamGroupingHeaders.cs | 6 +- ...omNamedRequestIdParamGroupingParameters.cs | 6 +- .../AzureSpecials/Models/OdataFilter.cs | 8 +-- .../AzureSpecials/OdataOperations.cs | 7 ++- .../OdataOperationsExtensions.cs | 4 +- .../SkipUrlEncodingOperations.cs | 5 +- .../SkipUrlEncodingOperationsExtensions.cs | 4 +- .../SubscriptionInCredentialsOperations.cs | 5 +- ...iptionInCredentialsOperationsExtensions.cs | 4 +- .../SubscriptionInMethodOperations.cs | 5 +- ...ubscriptionInMethodOperationsExtensions.cs | 4 +- .../XMsClientRequestIdOperations.cs | 5 +- .../XMsClientRequestIdOperationsExtensions.cs | 4 +- .../AutoRestParameterizedHostTestClient.cs | 7 ++- .../IAutoRestParameterizedHostTestClient.cs | 4 +- .../CustomBaseUri/IPathsOperations.cs | 4 +- .../CustomBaseUri/Models/Error.cs | 8 +-- .../CustomBaseUri/Models/ErrorException.cs | 8 +-- .../CustomBaseUri/PathsOperations.cs | 5 +- .../PathsOperationsExtensions.cs | 4 +- .../Head/AutoRestHeadTestService.cs | 7 ++- .../Head/HttpSuccessOperations.cs | 5 +- .../Head/HttpSuccessOperationsExtensions.cs | 4 +- .../Head/IAutoRestHeadTestService.cs | 4 +- .../Head/IHttpSuccessOperations.cs | 4 +- .../AutoRestHeadExceptionTestService.cs | 7 ++- .../HeadExceptions/HeadExceptionOperations.cs | 5 +- .../HeadExceptionOperationsExtensions.cs | 4 +- .../IAutoRestHeadExceptionTestService.cs | 4 +- .../IHeadExceptionOperations.cs | 4 +- ...AutoRestLongRunningOperationTestService.cs | 7 ++- ...AutoRestLongRunningOperationTestService.cs | 4 +- .../Lro/ILRORetrysOperations.cs | 4 +- .../AcceptanceTests/Lro/ILROSADsOperations.cs | 4 +- .../Lro/ILROsCustomHeaderOperations.cs | 4 +- .../AcceptanceTests/Lro/ILROsOperations.cs | 8 +-- .../Lro/LRORetrysOperations.cs | 5 +- .../Lro/LRORetrysOperationsExtensions.cs | 4 +- .../AcceptanceTests/Lro/LROSADsOperations.cs | 5 +- .../Lro/LROSADsOperationsExtensions.cs | 4 +- .../Lro/LROsCustomHeaderOperations.cs | 5 +- .../LROsCustomHeaderOperationsExtensions.cs | 4 +- .../AcceptanceTests/Lro/LROsOperations.cs | 5 +- .../Lro/LROsOperationsExtensions.cs | 4 +- .../LRORetrysDelete202Retry200Headers.cs | 8 +-- ...eleteAsyncRelativeRetrySucceededHeaders.cs | 10 +-- ...visioning202Accepted200SucceededHeaders.cs | 8 +-- .../Models/LRORetrysPost202Retry200Headers.cs | 8 +-- ...sPostAsyncRelativeRetrySucceededHeaders.cs | 10 +-- ...ysPutAsyncRelativeRetrySucceededHeaders.cs | 10 +-- .../LROSADsDelete202NonRetry400Headers.cs | 8 +-- ...OSADsDelete202RetryInvalidHeaderHeaders.cs | 8 +-- ...OSADsDeleteAsyncRelativeRetry400Headers.cs | 10 +-- ...eAsyncRelativeRetryInvalidHeaderHeaders.cs | 10 +-- ...cRelativeRetryInvalidJsonPollingHeaders.cs | 10 +-- ...DeleteAsyncRelativeRetryNoStatusHeaders.cs | 10 +-- .../Models/LROSADsDeleteNonRetry400Headers.cs | 8 +-- .../Models/LROSADsPost202NoLocationHeaders.cs | 8 +-- .../LROSADsPost202NonRetry400Headers.cs | 8 +-- ...LROSADsPost202RetryInvalidHeaderHeaders.cs | 8 +-- ...LROSADsPostAsyncRelativeRetry400Headers.cs | 10 +-- ...tAsyncRelativeRetryInvalidHeaderHeaders.cs | 10 +-- ...cRelativeRetryInvalidJsonPollingHeaders.cs | 10 +-- ...sPostAsyncRelativeRetryNoPayloadHeaders.cs | 10 +-- .../Models/LROSADsPostNonRetry400Headers.cs | 8 +-- .../LROSADsPutAsyncRelativeRetry400Headers.cs | 10 +-- ...tAsyncRelativeRetryInvalidHeaderHeaders.cs | 10 +-- ...cRelativeRetryInvalidJsonPollingHeaders.cs | 10 +-- ...ADsPutAsyncRelativeRetryNoStatusHeaders.cs | 10 +-- ...syncRelativeRetryNoStatusPayloadHeaders.cs | 10 +-- .../LROsCustomHeaderPost202Retry200Headers.cs | 8 +-- ...tomHeaderPostAsyncRetrySucceededHeaders.cs | 10 +-- ...stomHeaderPutAsyncRetrySucceededHeaders.cs | 10 +-- .../Models/LROsDelete202NoRetry204Headers.cs | 8 +-- .../Models/LROsDelete202Retry200Headers.cs | 8 +-- .../LROsDeleteAsyncNoHeaderInRetryHeaders.cs | 6 +- .../LROsDeleteAsyncNoRetrySucceededHeaders.cs | 10 +-- .../LROsDeleteAsyncRetryFailedHeaders.cs | 10 +-- .../LROsDeleteAsyncRetrySucceededHeaders.cs | 10 +-- .../LROsDeleteAsyncRetrycanceledHeaders.cs | 10 +-- .../LROsDeleteNoHeaderInRetryHeaders.cs | 6 +- ...visioning202Accepted200SucceededHeaders.cs | 8 +-- ...Provisioning202DeletingFailed200Headers.cs | 8 +-- ...ovisioning202Deletingcanceled200Headers.cs | 8 +-- .../Models/LROsPost202NoRetry204Headers.cs | 8 +-- .../Lro/Models/LROsPost202Retry200Headers.cs | 8 +-- .../LROsPostAsyncNoRetrySucceededHeaders.cs | 10 +-- .../Models/LROsPostAsyncRetryFailedHeaders.cs | 10 +-- .../LROsPostAsyncRetrySucceededHeaders.cs | 10 +-- .../LROsPostAsyncRetrycanceledHeaders.cs | 10 +-- .../LROsPutAsyncNoHeaderInRetryHeaders.cs | 6 +- .../LROsPutAsyncNoRetrySucceededHeaders.cs | 8 +-- .../LROsPutAsyncNoRetrycanceledHeaders.cs | 8 +-- .../Models/LROsPutAsyncRetryFailedHeaders.cs | 10 +-- .../LROsPutAsyncRetrySucceededHeaders.cs | 10 +-- .../Models/LROsPutNoHeaderInRetryHeaders.cs | 6 +- .../Lro/Models/OperationResult.cs | 8 +-- .../Lro/Models/OperationResultError.cs | 8 +-- .../AcceptanceTests/Lro/Models/Product.cs | 10 +-- .../AcceptanceTests/Lro/Models/Resource.cs | 20 +++--- .../AcceptanceTests/Lro/Models/Sku.cs | 8 +-- .../AcceptanceTests/Lro/Models/SubProduct.cs | 10 +-- .../AcceptanceTests/Lro/Models/SubResource.cs | 8 +-- .../Paging/AutoRestPagingTestService.cs | 7 ++- .../Paging/IAutoRestPagingTestService.cs | 4 +- .../Paging/IPagingOperations.cs | 4 +- .../Paging/Models/CustomParameterGroup.cs | 8 +-- .../Paging/Models/OperationResult.cs | 6 +- .../AcceptanceTests/Paging/Models/Page.cs | 10 +-- .../AcceptanceTests/Paging/Models/Page1.cs | 10 +-- .../Models/PagingGetMultiplePagesOptions.cs | 8 +-- ...ngGetMultiplePagesWithOffsetNextOptions.cs | 8 +-- ...PagingGetMultiplePagesWithOffsetOptions.cs | 10 +-- .../PagingGetOdataMultiplePagesOptions.cs | 8 +-- .../AcceptanceTests/Paging/Models/Product.cs | 6 +- .../Paging/Models/ProductProperties.cs | 8 +-- .../Paging/PagingOperations.cs | 5 +- .../Paging/PagingOperationsExtensions.cs | 4 +- .../GroupOperations.cs | 5 +- .../GroupOperationsExtensions.cs | 4 +- .../IGroupOperations.cs | 4 +- .../IMicrosoftAzureTestUrl.cs | 4 +- .../MicrosoftAzureTestUrl.cs | 7 ++- .../SubscriptionIdApiVersion/Models/Error.cs | 8 +-- .../Models/ErrorException.cs | 8 +-- .../Models/SampleResourceGroup.cs | 8 +-- .../AcceptanceTests/BodyArray/Array.cs | 5 +- .../BodyArray/ArrayExtensions.cs | 4 +- .../AutoRestSwaggerBATArrayService.cs | 7 ++- .../AcceptanceTests/BodyArray/IArray.cs | 4 +- .../IAutoRestSwaggerBATArrayService.cs | 4 +- .../AcceptanceTests/BodyArray/Models/Error.cs | 8 +-- .../BodyArray/Models/ErrorException.cs | 8 +-- .../BodyArray/Models/Product.cs | 8 +-- .../BodyBoolean/AutoRestBoolTestService.cs | 7 ++- .../AcceptanceTests/BodyBoolean/BoolModel.cs | 5 +- .../BodyBoolean/BoolModelExtensions.cs | 4 +- .../BodyBoolean/IAutoRestBoolTestService.cs | 4 +- .../AcceptanceTests/BodyBoolean/IBoolModel.cs | 4 +- .../BodyBoolean/Models/Error.cs | 8 +-- .../BodyBoolean/Models/ErrorException.cs | 8 +-- .../BodyByte/AutoRestSwaggerBATByteService.cs | 7 ++- .../AcceptanceTests/BodyByte/ByteModel.cs | 5 +- .../BodyByte/ByteModelExtensions.cs | 4 +- .../IAutoRestSwaggerBATByteService.cs | 4 +- .../AcceptanceTests/BodyByte/IByteModel.cs | 4 +- .../AcceptanceTests/BodyByte/Models/Error.cs | 8 +-- .../BodyByte/Models/ErrorException.cs | 8 +-- .../AcceptanceTests/BodyComplex/Array.cs | 5 +- .../BodyComplex/ArrayExtensions.cs | 4 +- .../BodyComplex/AutoRestComplexTestService.cs | 7 ++- .../BodyComplex/BasicOperations.cs | 5 +- .../BodyComplex/BasicOperationsExtensions.cs | 4 +- .../AcceptanceTests/BodyComplex/Dictionary.cs | 5 +- .../BodyComplex/DictionaryExtensions.cs | 4 +- .../AcceptanceTests/BodyComplex/IArray.cs | 4 +- .../IAutoRestComplexTestService.cs | 4 +- .../BodyComplex/IBasicOperations.cs | 4 +- .../BodyComplex/IDictionary.cs | 4 +- .../BodyComplex/IInheritance.cs | 4 +- .../BodyComplex/IPolymorphicrecursive.cs | 4 +- .../BodyComplex/IPolymorphism.cs | 4 +- .../AcceptanceTests/BodyComplex/IPrimitive.cs | 4 +- .../BodyComplex/IReadonlyproperty.cs | 4 +- .../BodyComplex/Inheritance.cs | 5 +- .../BodyComplex/InheritanceExtensions.cs | 4 +- .../BodyComplex/Models/ArrayWrapper.cs | 6 +- .../BodyComplex/Models/Basic.cs | 10 +-- .../BodyComplex/Models/BooleanWrapper.cs | 8 +-- .../BodyComplex/Models/ByteWrapper.cs | 6 +- .../BodyComplex/Models/CMYKColors.cs | 4 +- .../AcceptanceTests/BodyComplex/Models/Cat.cs | 8 +-- .../BodyComplex/Models/Cookiecuttershark.cs | 4 +- .../BodyComplex/Models/DateWrapper.cs | 12 ++-- .../BodyComplex/Models/DatetimeWrapper.cs | 8 +-- .../Models/Datetimerfc1123Wrapper.cs | 12 ++-- .../BodyComplex/Models/DictionaryWrapper.cs | 6 +- .../AcceptanceTests/BodyComplex/Models/Dog.cs | 6 +- .../BodyComplex/Models/DoubleWrapper.cs | 8 +-- .../BodyComplex/Models/DurationWrapper.cs | 6 +- .../BodyComplex/Models/Error.cs | 8 +-- .../BodyComplex/Models/ErrorException.cs | 8 +-- .../BodyComplex/Models/Fish.cs | 10 +-- .../BodyComplex/Models/FloatWrapper.cs | 8 +-- .../BodyComplex/Models/Goblinshark.cs | 6 +- .../BodyComplex/Models/IntWrapper.cs | 8 +-- .../BodyComplex/Models/LongWrapper.cs | 8 +-- .../AcceptanceTests/BodyComplex/Models/Pet.cs | 8 +-- .../BodyComplex/Models/ReadonlyObj.cs | 10 +-- .../BodyComplex/Models/Salmon.cs | 8 +-- .../BodyComplex/Models/Sawshark.cs | 6 +- .../BodyComplex/Models/Shark.cs | 8 +-- .../BodyComplex/Models/Siamese.cs | 6 +- .../BodyComplex/Models/StringWrapper.cs | 10 +-- .../BodyComplex/Polymorphicrecursive.cs | 5 +- .../PolymorphicrecursiveExtensions.cs | 4 +- .../BodyComplex/Polymorphism.cs | 5 +- .../BodyComplex/PolymorphismExtensions.cs | 4 +- .../AcceptanceTests/BodyComplex/Primitive.cs | 5 +- .../BodyComplex/PrimitiveExtensions.cs | 4 +- .../BodyComplex/Readonlyproperty.cs | 5 +- .../BodyComplex/ReadonlypropertyExtensions.cs | 4 +- .../BodyDate/AutoRestDateTestService.cs | 7 ++- .../Expected/AcceptanceTests/BodyDate/Date.cs | 5 +- .../BodyDate/DateExtensions.cs | 4 +- .../BodyDate/IAutoRestDateTestService.cs | 4 +- .../AcceptanceTests/BodyDate/IDate.cs | 4 +- .../AcceptanceTests/BodyDate/Models/Error.cs | 8 +-- .../BodyDate/Models/ErrorException.cs | 8 +-- .../AutoRestDateTimeTestService.cs | 7 ++- .../AcceptanceTests/BodyDateTime/Datetime.cs | 5 +- .../BodyDateTime/DatetimeExtensions.cs | 4 +- .../IAutoRestDateTimeTestService.cs | 4 +- .../AcceptanceTests/BodyDateTime/IDatetime.cs | 4 +- .../BodyDateTime/Models/Error.cs | 8 +-- .../BodyDateTime/Models/ErrorException.cs | 8 +-- .../AutoRestRFC1123DateTimeTestService.cs | 7 ++- .../BodyDateTimeRfc1123/Datetimerfc1123.cs | 5 +- .../Datetimerfc1123Extensions.cs | 4 +- .../IAutoRestRFC1123DateTimeTestService.cs | 4 +- .../BodyDateTimeRfc1123/IDatetimerfc1123.cs | 4 +- .../BodyDateTimeRfc1123/Models/Error.cs | 8 +-- .../Models/ErrorException.cs | 8 +-- .../AutoRestSwaggerBATdictionaryService.cs | 7 ++- .../BodyDictionary/Dictionary.cs | 5 +- .../BodyDictionary/DictionaryExtensions.cs | 4 +- .../IAutoRestSwaggerBATdictionaryService.cs | 4 +- .../BodyDictionary/IDictionary.cs | 4 +- .../BodyDictionary/Models/Error.cs | 8 +-- .../BodyDictionary/Models/ErrorException.cs | 8 +-- .../BodyDictionary/Models/Widget.cs | 8 +-- .../AutoRestDurationTestService.cs | 7 ++- .../AcceptanceTests/BodyDuration/Duration.cs | 5 +- .../BodyDuration/DurationExtensions.cs | 4 +- .../IAutoRestDurationTestService.cs | 4 +- .../AcceptanceTests/BodyDuration/IDuration.cs | 4 +- .../BodyDuration/Models/Error.cs | 8 +-- .../BodyDuration/Models/ErrorException.cs | 8 +-- .../BodyFile/AutoRestSwaggerBATFileService.cs | 7 ++- .../AcceptanceTests/BodyFile/Files.cs | 5 +- .../BodyFile/FilesExtensions.cs | 4 +- .../IAutoRestSwaggerBATFileService.cs | 4 +- .../AcceptanceTests/BodyFile/IFiles.cs | 4 +- .../AcceptanceTests/BodyFile/Models/Error.cs | 8 +-- .../BodyFile/Models/ErrorException.cs | 8 +-- .../AutoRestSwaggerBATFormDataService.cs | 7 ++- .../AcceptanceTests/BodyFormData/Formdata.cs | 9 +-- .../BodyFormData/FormdataExtensions.cs | 4 +- .../IAutoRestSwaggerBATFormDataService.cs | 4 +- .../AcceptanceTests/BodyFormData/IFormdata.cs | 4 +- .../BodyFormData/Models/Error.cs | 8 +-- .../BodyFormData/Models/ErrorException.cs | 8 +-- .../BodyInteger/AutoRestIntegerTestService.cs | 7 ++- .../IAutoRestIntegerTestService.cs | 4 +- .../AcceptanceTests/BodyInteger/IIntModel.cs | 4 +- .../AcceptanceTests/BodyInteger/IntModel.cs | 5 +- .../BodyInteger/IntModelExtensions.cs | 4 +- .../BodyInteger/Models/Error.cs | 8 +-- .../BodyInteger/Models/ErrorException.cs | 8 +-- .../BodyNumber/AutoRestNumberTestService.cs | 7 ++- .../BodyNumber/IAutoRestNumberTestService.cs | 4 +- .../AcceptanceTests/BodyNumber/INumber.cs | 4 +- .../BodyNumber/Models/Error.cs | 8 +-- .../BodyNumber/Models/ErrorException.cs | 8 +-- .../AcceptanceTests/BodyNumber/Number.cs | 5 +- .../BodyNumber/NumberExtensions.cs | 4 +- .../BodyString/AutoRestSwaggerBATService.cs | 7 ++- .../AcceptanceTests/BodyString/EnumModel.cs | 5 +- .../BodyString/EnumModelExtensions.cs | 4 +- .../BodyString/IAutoRestSwaggerBATService.cs | 4 +- .../AcceptanceTests/BodyString/IEnumModel.cs | 4 +- .../BodyString/IStringModel.cs | 4 +- .../BodyString/Models/Colors.cs | 12 ++-- .../BodyString/Models/Error.cs | 8 +-- .../BodyString/Models/ErrorException.cs | 8 +-- .../BodyString/Models/RefColorConstant.cs | 8 +-- .../AcceptanceTests/BodyString/StringModel.cs | 5 +- .../BodyString/StringModelExtensions.cs | 4 +- .../CompositeBoolIntClient/BoolModel.cs | 5 +- .../BoolModelExtensions.cs | 4 +- .../CompositeBoolInt.cs | 7 ++- .../CompositeBoolIntClient/IBoolModel.cs | 4 +- .../ICompositeBoolInt.cs | 4 +- .../CompositeBoolIntClient/IIntModel.cs | 4 +- .../CompositeBoolIntClient/IntModel.cs | 5 +- .../IntModelExtensions.cs | 4 +- .../CompositeBoolIntClient/Models/Error.cs | 8 +-- .../Models/ErrorException.cs | 8 +-- .../AutoRestParameterizedHostTestClient.cs | 7 ++- .../IAutoRestParameterizedHostTestClient.cs | 4 +- .../AcceptanceTests/CustomBaseUri/IPaths.cs | 4 +- .../CustomBaseUri/Models/Error.cs | 8 +-- .../CustomBaseUri/Models/ErrorException.cs | 8 +-- .../AcceptanceTests/CustomBaseUri/Paths.cs | 5 +- .../CustomBaseUri/PathsExtensions.cs | 4 +- ...toRestParameterizedCustomHostTestClient.cs | 7 ++- ...toRestParameterizedCustomHostTestClient.cs | 4 +- .../CustomBaseUriMoreOptions/IPaths.cs | 4 +- .../CustomBaseUriMoreOptions/Models/Error.cs | 8 +-- .../Models/ErrorException.cs | 8 +-- .../CustomBaseUriMoreOptions/Paths.cs | 5 +- .../PathsExtensions.cs | 4 +- .../Header/AutoRestSwaggerBATHeaderService.cs | 7 ++- .../Expected/AcceptanceTests/Header/Header.cs | 5 +- .../Header/HeaderExtensions.cs | 4 +- .../IAutoRestSwaggerBATHeaderService.cs | 4 +- .../AcceptanceTests/Header/IHeader.cs | 4 +- .../AcceptanceTests/Header/Models/Error.cs | 8 +-- .../Header/Models/ErrorException.cs | 8 +-- .../Header/Models/GreyscaleColors.cs | 12 ++-- .../Models/HeaderResponseBoolHeaders.cs | 6 +- .../Models/HeaderResponseByteHeaders.cs | 6 +- .../Models/HeaderResponseDateHeaders.cs | 8 +-- .../Models/HeaderResponseDatetimeHeaders.cs | 6 +- .../HeaderResponseDatetimeRfc1123Headers.cs | 8 +-- .../Models/HeaderResponseDoubleHeaders.cs | 6 +- .../Models/HeaderResponseDurationHeaders.cs | 6 +- .../Models/HeaderResponseEnumHeaders.cs | 6 +- .../HeaderResponseExistingKeyHeaders.cs | 6 +- .../Models/HeaderResponseFloatHeaders.cs | 6 +- .../Models/HeaderResponseIntegerHeaders.cs | 6 +- .../Models/HeaderResponseLongHeaders.cs | 6 +- .../HeaderResponseProtectedKeyHeaders.cs | 6 +- .../Models/HeaderResponseStringHeaders.cs | 6 +- .../AutoRestHttpInfrastructureTestService.cs | 7 ++- .../AcceptanceTests/Http/HttpClientFailure.cs | 5 +- .../Http/HttpClientFailureExtensions.cs | 4 +- .../AcceptanceTests/Http/HttpFailure.cs | 5 +- .../Http/HttpFailureExtensions.cs | 4 +- .../AcceptanceTests/Http/HttpRedirects.cs | 5 +- .../Http/HttpRedirectsExtensions.cs | 4 +- .../AcceptanceTests/Http/HttpRetry.cs | 5 +- .../Http/HttpRetryExtensions.cs | 4 +- .../AcceptanceTests/Http/HttpServerFailure.cs | 5 +- .../Http/HttpServerFailureExtensions.cs | 4 +- .../AcceptanceTests/Http/HttpSuccess.cs | 5 +- .../Http/HttpSuccessExtensions.cs | 4 +- .../IAutoRestHttpInfrastructureTestService.cs | 4 +- .../Http/IHttpClientFailure.cs | 4 +- .../AcceptanceTests/Http/IHttpFailure.cs | 4 +- .../AcceptanceTests/Http/IHttpRedirects.cs | 4 +- .../AcceptanceTests/Http/IHttpRetry.cs | 4 +- .../Http/IHttpServerFailure.cs | 4 +- .../AcceptanceTests/Http/IHttpSuccess.cs | 4 +- .../Http/IMultipleResponses.cs | 4 +- .../Expected/AcceptanceTests/Http/Models/A.cs | 6 +- .../Expected/AcceptanceTests/Http/Models/B.cs | 6 +- .../Expected/AcceptanceTests/Http/Models/C.cs | 6 +- .../Expected/AcceptanceTests/Http/Models/D.cs | 6 +- .../AcceptanceTests/Http/Models/Error.cs | 8 +-- .../Http/Models/ErrorException.cs | 8 +-- .../Models/HttpRedirectsDelete307Headers.cs | 6 +- .../Http/Models/HttpRedirectsGet300Headers.cs | 6 +- .../Http/Models/HttpRedirectsGet301Headers.cs | 6 +- .../Http/Models/HttpRedirectsGet302Headers.cs | 6 +- .../Http/Models/HttpRedirectsGet307Headers.cs | 6 +- .../Models/HttpRedirectsHead300Headers.cs | 6 +- .../Models/HttpRedirectsHead301Headers.cs | 6 +- .../Models/HttpRedirectsHead302Headers.cs | 6 +- .../Models/HttpRedirectsHead307Headers.cs | 6 +- .../Models/HttpRedirectsPatch302Headers.cs | 6 +- .../Models/HttpRedirectsPatch307Headers.cs | 6 +- .../Models/HttpRedirectsPost303Headers.cs | 6 +- .../Models/HttpRedirectsPost307Headers.cs | 6 +- .../Http/Models/HttpRedirectsPut301Headers.cs | 6 +- .../Http/Models/HttpRedirectsPut307Headers.cs | 6 +- .../Http/Models/MyException.cs | 8 +-- .../AcceptanceTests/Http/MultipleResponses.cs | 5 +- .../Http/MultipleResponsesExtensions.cs | 4 +- .../AutoRestResourceFlatteningTestService.cs | 7 ++- ...ResourceFlatteningTestServiceExtensions.cs | 4 +- .../IAutoRestResourceFlatteningTestService.cs | 4 +- .../ModelFlattening/Models/BaseProduct.cs | 8 +-- .../ModelFlattening/Models/Error.cs | 10 +-- .../ModelFlattening/Models/ErrorException.cs | 8 +-- .../Models/FlattenParameterGroup.cs | 16 ++--- .../Models/FlattenedProduct.cs | 14 ++--- .../ModelFlattening/Models/GenericUrl.cs | 6 +- .../ModelFlattening/Models/Resource.cs | 20 +++--- .../Models/ResourceCollection.cs | 10 +-- .../ModelFlattening/Models/SimpleProduct.cs | 12 ++-- .../AutoRestParameterFlattening.cs | 7 ++- .../ParameterFlattening/AvailabilitySets.cs | 5 +- .../AvailabilitySetsExtensions.cs | 4 +- .../IAutoRestParameterFlattening.cs | 4 +- .../ParameterFlattening/IAvailabilitySets.cs | 4 +- .../Models/AvailabilitySetUpdateParameters.cs | 6 +- .../Report/AutoRestReportService.cs | 7 ++- .../Report/AutoRestReportServiceExtensions.cs | 4 +- .../Report/IAutoRestReportService.cs | 4 +- .../AcceptanceTests/Report/Models/Error.cs | 8 +-- .../Report/Models/ErrorException.cs | 8 +-- .../AutoRestRequiredOptionalTestService.cs | 7 ++- .../RequiredOptional/ExplicitModel.cs | 5 +- .../ExplicitModelExtensions.cs | 4 +- .../IAutoRestRequiredOptionalTestService.cs | 4 +- .../RequiredOptional/IExplicitModel.cs | 4 +- .../RequiredOptional/IImplicitModel.cs | 4 +- .../RequiredOptional/ImplicitModel.cs | 5 +- .../ImplicitModelExtensions.cs | 4 +- .../Models/ArrayOptionalWrapper.cs | 6 +- .../RequiredOptional/Models/ArrayWrapper.cs | 6 +- .../Models/ClassOptionalWrapper.cs | 6 +- .../RequiredOptional/Models/ClassWrapper.cs | 6 +- .../RequiredOptional/Models/Error.cs | 8 +-- .../RequiredOptional/Models/ErrorException.cs | 8 +-- .../Models/IntOptionalWrapper.cs | 6 +- .../RequiredOptional/Models/IntWrapper.cs | 6 +- .../RequiredOptional/Models/Product.cs | 8 +-- .../Models/StringOptionalWrapper.cs | 6 +- .../RequiredOptional/Models/StringWrapper.cs | 6 +- .../Url/AutoRestUrlTestService.cs | 7 ++- .../Url/IAutoRestUrlTestService.cs | 4 +- .../AcceptanceTests/Url/IPathItems.cs | 4 +- .../Expected/AcceptanceTests/Url/IPaths.cs | 4 +- .../Expected/AcceptanceTests/Url/IQueries.cs | 4 +- .../AcceptanceTests/Url/Models/Error.cs | 8 +-- .../Url/Models/ErrorException.cs | 8 +-- .../AcceptanceTests/Url/Models/UriColor.cs | 12 ++-- .../Expected/AcceptanceTests/Url/PathItems.cs | 5 +- .../Url/PathItemsExtensions.cs | 4 +- .../Expected/AcceptanceTests/Url/Paths.cs | 5 +- .../AcceptanceTests/Url/PathsExtensions.cs | 4 +- .../Expected/AcceptanceTests/Url/Queries.cs | 5 +- .../AcceptanceTests/Url/QueriesExtensions.cs | 4 +- ...RestUrlMutliCollectionFormatTestService.cs | 7 ++- ...RestUrlMutliCollectionFormatTestService.cs | 4 +- .../UrlMultiCollectionFormat/IQueries.cs | 4 +- .../UrlMultiCollectionFormat/Models/Error.cs | 8 +-- .../Models/ErrorException.cs | 8 +-- .../UrlMultiCollectionFormat/Queries.cs | 5 +- .../QueriesExtensions.cs | 4 +- .../Validation/AutoRestValidationTest.cs | 7 ++- .../AutoRestValidationTestExtensions.cs | 4 +- .../Validation/IAutoRestValidationTest.cs | 4 +- .../Validation/Models/ChildProduct.cs | 8 +-- .../Validation/Models/ConstantProduct.cs | 8 +-- .../Validation/Models/EnumConst.cs | 8 +-- .../Validation/Models/Error.cs | 10 +-- .../Validation/Models/ErrorException.cs | 8 +-- .../Validation/Models/Product.cs | 20 +++--- .../Expected/Additional.Properties/Get.cs | 5 +- .../Additional.Properties/GetExtensions.cs | 4 +- .../Expected/Additional.Properties/IGet.cs | 4 +- .../IPetStoreonHeroku.cs | 6 +- .../Expected/Additional.Properties/IPost.cs | 4 +- .../Expected/Additional.Properties/IPut.cs | 4 +- .../Additional.Properties/Models/Feature.cs | 8 +-- .../Additional.Properties/Models/Pet.cs | 16 ++--- .../Models/WithStringDictionary.cs | 8 +-- .../Models/WithTypedDictionary.cs | 8 +-- .../Models/WithUntypedDictionary.cs | 8 +-- .../Additional.Properties/PetStoreonHeroku.cs | 9 +-- .../Expected/Additional.Properties/Post.cs | 5 +- .../Additional.Properties/PostExtensions.cs | 4 +- .../Expected/Additional.Properties/Put.cs | 5 +- .../Additional.Properties/PutExtensions.cs | 4 +- .../ISwaggerDateTimeOffsetClient.cs | 4 +- .../Expected/DateTimeOffset/Models/Error.cs | 10 +-- .../DateTimeOffset/Models/ErrorException.cs | 8 +-- .../Expected/DateTimeOffset/Models/Product.cs | 14 ++--- .../SwaggerDateTimeOffsetClient.cs | 7 ++- .../SwaggerDateTimeOffsetClientExtensions.cs | 4 +- .../Internal.Ctors/IInternalClient.cs | 4 +- .../Expected/Internal.Ctors/IPets.cs | 4 +- .../Expected/Internal.Ctors/InternalClient.cs | 7 ++- .../Expected/Internal.Ctors/Pets.cs | 5 +- .../Expected/Internal.Ctors/PetsExtensions.cs | 4 +- .../IPolymorphicAnimalStore.cs | 4 +- .../Mirror.Polymorphic/Models/Animal.cs | 8 +-- .../Mirror.Polymorphic/Models/BaseCat.cs | 6 +- .../Mirror.Polymorphic/Models/BurmeseCat.cs | 6 +- .../Mirror.Polymorphic/Models/Doggy.cs | 6 +- .../Mirror.Polymorphic/Models/Error2.cs | 10 +-- .../Models/Error2Exception.cs | 8 +-- .../Mirror.Polymorphic/Models/HimalayanCat.cs | 6 +- .../Mirror.Polymorphic/Models/Horsey.cs | 6 +- .../Mirror.Polymorphic/Models/PersianCat.cs | 6 +- .../Mirror.Polymorphic/Models/SiameseCat.cs | 6 +- .../PolymorphicAnimalStore.cs | 7 ++- .../PolymorphicAnimalStoreExtensions.cs | 4 +- .../ISwaggerDataTypesClient.cs | 4 +- .../Mirror.Primitives/Models/Error.cs | 10 +-- .../Models/ErrorException.cs | 8 +-- .../Mirror.Primitives/Models/Product.cs | 62 +++++++++---------- .../SwaggerDataTypesClient.cs | 7 ++- .../SwaggerDataTypesClientExtensions.cs | 4 +- .../IRecursiveTypesAPI.cs | 4 +- .../Mirror.RecursiveTypes/Models/Error.cs | 10 +-- .../Models/ErrorException.cs | 8 +-- .../Mirror.RecursiveTypes/Models/Product.cs | 10 +-- .../RecursiveTypesAPI.cs | 7 ++- .../RecursiveTypesAPIExtensions.cs | 4 +- .../ISequenceRequestResponseTest.cs | 4 +- .../Mirror.Sequences/Models/ErrorModel.cs | 8 +-- .../Models/ErrorModelException.cs | 8 +-- .../Expected/Mirror.Sequences/Models/Pet.cs | 12 ++-- .../Mirror.Sequences/Models/PetStyle.cs | 6 +- .../SequenceRequestResponseTest.cs | 7 ++- .../SequenceRequestResponseTestExtensions.cs | 4 +- .../Expected/PetstoreV2/ISwaggerPetstoreV2.cs | 4 +- .../Expected/PetstoreV2/Models/ApiResponse.cs | 10 +-- .../Expected/PetstoreV2/Models/Category.cs | 8 +-- .../PetstoreV2/Models/LoginUserHeaders.cs | 8 +-- .../Expected/PetstoreV2/Models/Order.cs | 16 ++--- .../Expected/PetstoreV2/Models/Pet.cs | 22 +++---- .../Expected/PetstoreV2/Models/Tag.cs | 8 +-- .../Expected/PetstoreV2/Models/User.cs | 20 +++--- .../Expected/PetstoreV2/SwaggerPetstoreV2.cs | 11 ++-- .../PetstoreV2/SwaggerPetstoreV2Extensions.cs | 4 +- .../PetstoreV2AllSync/ISwaggerPetstoreV2.cs | 4 +- .../PetstoreV2AllSync/Models/ApiResponse.cs | 10 +-- .../PetstoreV2AllSync/Models/Category.cs | 8 +-- .../Models/LoginUserHeaders.cs | 8 +-- .../PetstoreV2AllSync/Models/Order.cs | 16 ++--- .../Expected/PetstoreV2AllSync/Models/Pet.cs | 22 +++---- .../Expected/PetstoreV2AllSync/Models/Tag.cs | 8 +-- .../Expected/PetstoreV2AllSync/Models/User.cs | 20 +++--- .../PetstoreV2AllSync/SwaggerPetstoreV2.cs | 11 ++-- .../SwaggerPetstoreV2Extensions.cs | 4 +- .../PetstoreV2NoSync/ISwaggerPetstoreV2.cs | 4 +- .../PetstoreV2NoSync/Models/ApiResponse.cs | 10 +-- .../PetstoreV2NoSync/Models/Category.cs | 8 +-- .../Models/LoginUserHeaders.cs | 8 +-- .../Expected/PetstoreV2NoSync/Models/Order.cs | 16 ++--- .../Expected/PetstoreV2NoSync/Models/Pet.cs | 22 +++---- .../Expected/PetstoreV2NoSync/Models/Tag.cs | 8 +-- .../Expected/PetstoreV2NoSync/Models/User.cs | 20 +++--- .../PetstoreV2NoSync/SwaggerPetstoreV2.cs | 11 ++-- .../SwaggerPetstoreV2Extensions.cs | 4 +- 654 files changed, 2239 insertions(+), 2115 deletions(-) diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/AutoRestDurationTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/AutoRestDurationTestService.cs index 564dc36bec..6482d4d2c2 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/AutoRestDurationTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/AutoRestDurationTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -299,7 +299,8 @@ private void Initialize() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/DurationOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/DurationOperations.cs index bac8af5390..f1ac0d4cbb 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/DurationOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/DurationOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class DurationOperations : IServiceOperations internal DurationOperations(AutoRestDurationTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -644,3 +644,4 @@ internal DurationOperations(AutoRestDurationTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/DurationOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/DurationOperationsExtensions.cs index 1a58056b80..5bd6aedce9 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/DurationOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/DurationOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureBodyDuration using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -136,3 +135,4 @@ public static void PutPositiveDuration(this IDurationOperations operations, Syst } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/IAutoRestDurationTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/IAutoRestDurationTestService.cs index 81de49e7a4..e9d0c13923 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/IAutoRestDurationTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/IAutoRestDurationTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureBodyDuration using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -65,3 +64,4 @@ public partial interface IAutoRestDurationTestService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/IDurationOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/IDurationOperations.cs index 4ec890e9fe..153a006105 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/IDurationOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/IDurationOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureBodyDuration using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -88,3 +87,4 @@ public partial interface IDurationOperations Task> GetInvalidWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/Error.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/Error.cs index 8905933080..3c21bfd756 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureBodyDuration.Models using AcceptanceTestsAzureBodyDuration; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -32,13 +31,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/ErrorException.cs index 5551bd87ec..4fbddbf878 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDuration/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureBodyDuration.Models using Azure; using AcceptanceTestsAzureBodyDuration; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -20,7 +19,7 @@ namespace Fixtures.Azure.AcceptanceTestsAzureBodyDuration.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -66,7 +65,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -101,3 +100,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/AutoRestDurationTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/AutoRestDurationTestService.cs index 1739c2c8d8..81725b633f 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/AutoRestDurationTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/AutoRestDurationTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -298,7 +298,8 @@ private void Initialize() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/DurationOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/DurationOperations.cs index d4ff121e1b..8b96ac1868 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/DurationOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/DurationOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -36,7 +36,7 @@ internal partial class DurationOperations : IServiceOperations internal DurationOperations(AutoRestDurationTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -643,3 +643,4 @@ internal DurationOperations(AutoRestDurationTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/DurationOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/DurationOperationsExtensions.cs index 2e9ad16ff8..31ea2786ea 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/DurationOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/DurationOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureBodyDurationAllSync using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -195,3 +194,4 @@ public static AzureOperationResponse PutPositiveDurationWithHttpMessages(this ID } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/IAutoRestDurationTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/IAutoRestDurationTestService.cs index 61fc23d63d..0d036c4dfc 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/IAutoRestDurationTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/IAutoRestDurationTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsAzureBodyDurationAllSync using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -64,3 +63,4 @@ public partial interface IAutoRestDurationTestService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/IDurationOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/IDurationOperations.cs index 68d7b61492..b42db3fac2 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/IDurationOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/IDurationOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureBodyDurationAllSync using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -87,3 +86,4 @@ public partial interface IDurationOperations Task> GetInvalidWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/Models/Error.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/Models/Error.cs index fad2da2771..e77cfbe6d1 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureBodyDurationAllSync.Models using AcceptanceTestsAzureBodyDurationAllSync; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/Models/ErrorException.cs index fe414cc2ed..c2716e52e6 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationAllSync/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsAzureBodyDurationAllSync.Models { using AcceptanceTestsAzureBodyDurationAllSync; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsAzureBodyDurationAllSync.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/AutoRestDurationTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/AutoRestDurationTestService.cs index 4dfb3a856e..9229eecb85 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/AutoRestDurationTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/AutoRestDurationTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -298,7 +298,8 @@ private void Initialize() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/DurationOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/DurationOperations.cs index f9e0f35781..3e4a3c91f7 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/DurationOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/DurationOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -36,7 +36,7 @@ internal partial class DurationOperations : IServiceOperations internal DurationOperations(AutoRestDurationTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -643,3 +643,4 @@ internal DurationOperations(AutoRestDurationTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/DurationOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/DurationOperationsExtensions.cs index 3cf3e9756c..498fa448f0 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/DurationOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/DurationOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureBodyDurationNoSync using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -89,3 +88,4 @@ public static partial class DurationOperationsExtensions } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/IAutoRestDurationTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/IAutoRestDurationTestService.cs index f9d471aacf..79c9bee58d 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/IAutoRestDurationTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/IAutoRestDurationTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsAzureBodyDurationNoSync using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -64,3 +63,4 @@ public partial interface IAutoRestDurationTestService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/IDurationOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/IDurationOperations.cs index 7c0869c7b1..2f428ebb30 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/IDurationOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/IDurationOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureBodyDurationNoSync using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -87,3 +86,4 @@ public partial interface IDurationOperations Task> GetInvalidWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/Models/Error.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/Models/Error.cs index 16398f25e1..937527ded4 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureBodyDurationNoSync.Models using AcceptanceTestsAzureBodyDurationNoSync; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/Models/ErrorException.cs index bf63f2ce09..b97df42ffe 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureBodyDurationNoSync/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsAzureBodyDurationNoSync.Models { using AcceptanceTestsAzureBodyDurationNoSync; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsAzureBodyDurationNoSync.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ArrayOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ArrayOperations.cs index 42bfbb99cd..f5bf65c54c 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ArrayOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ArrayOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -36,7 +36,7 @@ internal partial class ArrayOperations : IServiceOperations /// internal ArrayOperations(AzureCompositeModel client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -797,3 +797,4 @@ internal ArrayOperations(AzureCompositeModel client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ArrayOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ArrayOperationsExtensions.cs index 7edbe8fb02..7d7e89beb2 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ArrayOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ArrayOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -168,3 +167,4 @@ public static ArrayWrapper GetNotProvided(this IArrayOperations operations) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/AzureCompositeModel.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/AzureCompositeModel.cs index 15b18f0bdb..a445f02276 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/AzureCompositeModel.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/AzureCompositeModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -351,8 +351,8 @@ private void Initialize() SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("fishtype")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("fishtype")); CustomInitialize(); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } /// /// Product Types /// @@ -926,3 +926,4 @@ private void Initialize() } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/AzureCompositeModelExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/AzureCompositeModelExtensions.cs index 3498848244..dd93262da5 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/AzureCompositeModelExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/AzureCompositeModelExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -174,3 +173,4 @@ public static CatalogArray List(this IAzureCompositeModel operations, string res } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/BasicOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/BasicOperations.cs index 7973b7a774..e8e0bbf331 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/BasicOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/BasicOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -36,7 +36,7 @@ internal partial class BasicOperations : IServiceOperations /// internal BasicOperations(AzureCompositeModel client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -965,3 +965,4 @@ internal BasicOperations(AzureCompositeModel client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/BasicOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/BasicOperationsExtensions.cs index b923054699..f38d167668 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/BasicOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/BasicOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -195,3 +194,4 @@ public static Basic GetNotProvided(this IBasicOperations operations) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/DictionaryOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/DictionaryOperations.cs index c0f4c64d7b..a29aa737c5 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/DictionaryOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/DictionaryOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -36,7 +36,7 @@ internal partial class DictionaryOperations : IServiceOperations internal DictionaryOperations(AzureCompositeModel client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -949,3 +949,4 @@ internal DictionaryOperations(AzureCompositeModel client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/DictionaryOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/DictionaryOperationsExtensions.cs index e4409b9375..6d4c10c6a4 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/DictionaryOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/DictionaryOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -196,3 +195,4 @@ public static DictionaryWrapper GetNotProvided(this IDictionaryOperations operat } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IArrayOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IArrayOperations.cs index 531efb70c8..5d9c6ce7cd 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IArrayOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IArrayOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -103,3 +102,4 @@ public partial interface IArrayOperations Task> GetNotProvidedWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IAzureCompositeModel.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IAzureCompositeModel.cs index 6f81fa0c5e..5cbc5ba87a 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IAzureCompositeModel.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IAzureCompositeModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -175,3 +174,4 @@ public partial interface IAzureCompositeModel : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IBasicOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IBasicOperations.cs index 5932ded1f9..0a0d8801f9 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IBasicOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IBasicOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -124,3 +123,4 @@ public partial interface IBasicOperations Task> GetNotProvidedWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IDictionaryOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IDictionaryOperations.cs index 78ae414649..44631a4f34 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IDictionaryOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IDictionaryOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -119,3 +118,4 @@ public partial interface IDictionaryOperations Task> GetNotProvidedWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IInheritanceOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IInheritanceOperations.cs index d3d99e76a6..2017cac6f8 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IInheritanceOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IInheritanceOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -62,3 +61,4 @@ public partial interface IInheritanceOperations Task PutValidWithHttpMessagesAsync(Siamese complexBody, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphicrecursiveOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphicrecursiveOperations.cs index eb57ca8eb2..722802d494 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphicrecursiveOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphicrecursiveOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -113,3 +112,4 @@ public partial interface IPolymorphicrecursiveOperations Task PutValidWithHttpMessagesAsync(Fish complexBody, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphismOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphismOperations.cs index 5eeda37e98..a0bec55bbb 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphismOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPolymorphismOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -139,3 +138,4 @@ public partial interface IPolymorphismOperations Task PutValidMissingRequiredWithHttpMessagesAsync(Fish complexBody, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPrimitiveOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPrimitiveOperations.cs index be324785fc..05ceefe760 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPrimitiveOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IPrimitiveOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -404,3 +403,4 @@ public partial interface IPrimitiveOperations Task PutByteWithHttpMessagesAsync(byte[] field = default(byte[]), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IReadonlypropertyOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IReadonlypropertyOperations.cs index 775b7fca7e..868cc3a9af 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IReadonlypropertyOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/IReadonlypropertyOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -55,3 +54,4 @@ public partial interface IReadonlypropertyOperations Task PutValidWithHttpMessagesAsync(int? size = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/InheritanceOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/InheritanceOperations.cs index 94a0db4f17..6c859c3bae 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/InheritanceOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/InheritanceOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -36,7 +36,7 @@ internal partial class InheritanceOperations : IServiceOperations internal InheritanceOperations(AzureCompositeModel client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -352,3 +352,4 @@ internal InheritanceOperations(AzureCompositeModel client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/InheritanceOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/InheritanceOperationsExtensions.cs index 0f08d9438a..1d565b065e 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/InheritanceOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/InheritanceOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -85,3 +84,4 @@ public static void PutValid(this IInheritanceOperations operations, Siamese comp } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ArrayWrapper.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ArrayWrapper.cs index c7a91bda8b..55187c0879 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ArrayWrapper.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ArrayWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class ArrayWrapper { @@ -32,8 +31,9 @@ public ArrayWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "array")] + [JsonProperty(PropertyName = "array")] public IList Array { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Basic.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Basic.cs index 267c609160..aeea109ca9 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Basic.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Basic.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using AcceptanceTestsAzureCompositeModelClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Basic { @@ -40,7 +39,7 @@ public Basic() { } /// /// Gets or sets basic Id /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public int? Id { get; set; } /// @@ -49,15 +48,16 @@ public Basic() { } /// does not fit on a single line /// and a line break. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// Gets or sets possible values include: 'cyan', 'Magenta', 'YELLOW', /// 'blacK' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "color")] + [JsonProperty(PropertyName = "color")] public string Color { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/BooleanWrapper.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/BooleanWrapper.cs index 3b8310c38a..5fad30c1c2 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/BooleanWrapper.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/BooleanWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using AcceptanceTestsAzureCompositeModelClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class BooleanWrapper { @@ -31,13 +30,14 @@ public BooleanWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field_true")] + [JsonProperty(PropertyName = "field_true")] public bool? FieldTrue { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field_false")] + [JsonProperty(PropertyName = "field_false")] public bool? FieldFalse { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ByteWrapper.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ByteWrapper.cs index b25744884d..4db3af347c 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ByteWrapper.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ByteWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using AcceptanceTestsAzureCompositeModelClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class ByteWrapper { @@ -30,8 +29,9 @@ public ByteWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field")] + [JsonProperty(PropertyName = "field")] public byte[] Field { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CMYKColors.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CMYKColors.cs index c9af0fc50c..8ff66aa79b 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CMYKColors.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CMYKColors.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models { using AcceptanceTestsAzureCompositeModelClient; - using System.Net.Http; /// /// Defines values for CMYKColors. @@ -22,3 +21,4 @@ public static class CMYKColors public const string BlacK = "blacK"; } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cat.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cat.cs index 7f36c11348..d972d807b8 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cat.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cat.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Cat : Pet { @@ -34,13 +33,14 @@ public Cat() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "color")] + [JsonProperty(PropertyName = "color")] public string Color { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "hates")] + [JsonProperty(PropertyName = "hates")] public IList Hates { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArray.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArray.cs index 56b7333b8b..0c586b8d60 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArray.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArray.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class CatalogArray { @@ -34,8 +33,9 @@ public CatalogArray() { } /// /// Gets or sets array of products /// - [Newtonsoft.Json.JsonProperty(PropertyName = "productArray")] + [JsonProperty(PropertyName = "productArray")] public IList ProductArray { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArrayOfDictionary.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArrayOfDictionary.cs index 7c569c0cdb..2cb1ea307a 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArrayOfDictionary.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogArrayOfDictionary.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class CatalogArrayOfDictionary { @@ -35,8 +34,9 @@ public CatalogArrayOfDictionary() { } /// /// Gets or sets array of dictionary of products /// - [Newtonsoft.Json.JsonProperty(PropertyName = "productArrayOfDictionary")] + [JsonProperty(PropertyName = "productArrayOfDictionary")] public IList> ProductArrayOfDictionary { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionary.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionary.cs index 2163bfb099..01a3bcf885 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionary.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionary.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class CatalogDictionary { @@ -34,8 +33,9 @@ public CatalogDictionary() { } /// /// Gets or sets dictionary of products /// - [Newtonsoft.Json.JsonProperty(PropertyName = "productDictionary")] + [JsonProperty(PropertyName = "productDictionary")] public IDictionary ProductDictionary { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionaryOfArray.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionaryOfArray.cs index debdcc144d..0eb30fadfb 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionaryOfArray.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/CatalogDictionaryOfArray.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class CatalogDictionaryOfArray { @@ -35,8 +34,9 @@ public CatalogDictionaryOfArray() { } /// /// Gets or sets dictionary of Array of product /// - [Newtonsoft.Json.JsonProperty(PropertyName = "productDictionaryOfArray")] + [JsonProperty(PropertyName = "productDictionaryOfArray")] public IDictionary> ProductDictionaryOfArray { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cookiecuttershark.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cookiecuttershark.cs index 855f51ab87..7b2fff27af 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cookiecuttershark.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Cookiecuttershark.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; [Newtonsoft.Json.JsonObject("cookiecuttershark")] public partial class Cookiecuttershark : Shark @@ -43,3 +42,4 @@ public override void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DateWrapper.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DateWrapper.cs index 53d40bc4f9..9b945225dc 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DateWrapper.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DateWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class DateWrapper { @@ -33,15 +32,16 @@ public DateWrapper() { } /// /// - [Newtonsoft.Json.JsonConverter(typeof(DateJsonConverter))] - [Newtonsoft.Json.JsonProperty(PropertyName = "field")] + [JsonConverter(typeof(DateJsonConverter))] + [JsonProperty(PropertyName = "field")] public System.DateTime? Field { get; set; } /// /// - [Newtonsoft.Json.JsonConverter(typeof(DateJsonConverter))] - [Newtonsoft.Json.JsonProperty(PropertyName = "leap")] + [JsonConverter(typeof(DateJsonConverter))] + [JsonProperty(PropertyName = "leap")] public System.DateTime? Leap { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DatetimeWrapper.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DatetimeWrapper.cs index c56bf39772..2b7ec2ca67 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DatetimeWrapper.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DatetimeWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using AcceptanceTestsAzureCompositeModelClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class DatetimeWrapper { @@ -31,13 +30,14 @@ public DatetimeWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field")] + [JsonProperty(PropertyName = "field")] public System.DateTime? Field { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "now")] + [JsonProperty(PropertyName = "now")] public System.DateTime? Now { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Datetimerfc1123Wrapper.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Datetimerfc1123Wrapper.cs index 6e1bda7227..3a9914c6f1 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Datetimerfc1123Wrapper.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Datetimerfc1123Wrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Datetimerfc1123Wrapper { @@ -33,15 +32,16 @@ public Datetimerfc1123Wrapper() { } /// /// - [Newtonsoft.Json.JsonConverter(typeof(DateTimeRfc1123JsonConverter))] - [Newtonsoft.Json.JsonProperty(PropertyName = "field")] + [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] + [JsonProperty(PropertyName = "field")] public System.DateTime? Field { get; set; } /// /// - [Newtonsoft.Json.JsonConverter(typeof(DateTimeRfc1123JsonConverter))] - [Newtonsoft.Json.JsonProperty(PropertyName = "now")] + [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] + [JsonProperty(PropertyName = "now")] public System.DateTime? Now { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DictionaryWrapper.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DictionaryWrapper.cs index 8cbeaaade2..7fb6edee72 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DictionaryWrapper.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DictionaryWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class DictionaryWrapper { @@ -32,8 +31,9 @@ public DictionaryWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "defaultProgram")] + [JsonProperty(PropertyName = "defaultProgram")] public IDictionary DefaultProgram { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Dog.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Dog.cs index c993b622c4..32aad1ff5a 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Dog.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Dog.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using AcceptanceTestsAzureCompositeModelClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Dog : Pet { @@ -31,8 +30,9 @@ public Dog() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "food")] + [JsonProperty(PropertyName = "food")] public string Food { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DoubleWrapper.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DoubleWrapper.cs index 012fc8e4c2..20d6ccec63 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DoubleWrapper.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DoubleWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using AcceptanceTestsAzureCompositeModelClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class DoubleWrapper { @@ -31,13 +30,14 @@ public DoubleWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field1")] + [JsonProperty(PropertyName = "field1")] public double? Field1 { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose")] + [JsonProperty(PropertyName = "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose")] public double? Field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DurationWrapper.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DurationWrapper.cs index 3a1c09b069..301d009a27 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DurationWrapper.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/DurationWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using AcceptanceTestsAzureCompositeModelClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class DurationWrapper { @@ -30,8 +29,9 @@ public DurationWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field")] + [JsonProperty(PropertyName = "field")] public System.TimeSpan? Field { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Error.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Error.cs index 4751b15a74..fb7f96b926 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using AcceptanceTestsAzureCompositeModelClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ErrorException.cs index 0d9de59a28..c7e0f48f03 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models { using AcceptanceTestsAzureCompositeModelClient; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Fish.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Fish.cs index 238dfc86c1..df26c767e6 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Fish.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Fish.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Fish { @@ -34,17 +33,17 @@ public Fish() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "species")] + [JsonProperty(PropertyName = "species")] public string Species { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "length")] + [JsonProperty(PropertyName = "length")] public double Length { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "siblings")] + [JsonProperty(PropertyName = "siblings")] public IList Siblings { get; set; } /// @@ -68,3 +67,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/FloatWrapper.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/FloatWrapper.cs index 7ad2ab9ad2..e5c9801191 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/FloatWrapper.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/FloatWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using AcceptanceTestsAzureCompositeModelClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class FloatWrapper { @@ -31,13 +30,14 @@ public FloatWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field1")] + [JsonProperty(PropertyName = "field1")] public double? Field1 { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field2")] + [JsonProperty(PropertyName = "field2")] public double? Field2 { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Goblinshark.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Goblinshark.cs index 09d226ef39..3719d076d3 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Goblinshark.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Goblinshark.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; [Newtonsoft.Json.JsonObject("goblin")] public partial class Goblinshark : Shark @@ -34,7 +33,7 @@ public Goblinshark() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "jawsize")] + [JsonProperty(PropertyName = "jawsize")] public int? Jawsize { get; set; } /// @@ -49,3 +48,4 @@ public override void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/IntWrapper.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/IntWrapper.cs index 730dc1a264..26b3df8617 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/IntWrapper.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/IntWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using AcceptanceTestsAzureCompositeModelClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class IntWrapper { @@ -31,13 +30,14 @@ public IntWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field1")] + [JsonProperty(PropertyName = "field1")] public int? Field1 { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field2")] + [JsonProperty(PropertyName = "field2")] public int? Field2 { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/LongWrapper.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/LongWrapper.cs index 83ac0b5221..ff7e444ced 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/LongWrapper.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/LongWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using AcceptanceTestsAzureCompositeModelClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class LongWrapper { @@ -31,13 +30,14 @@ public LongWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field1")] + [JsonProperty(PropertyName = "field1")] public long? Field1 { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field2")] + [JsonProperty(PropertyName = "field2")] public long? Field2 { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Pet.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Pet.cs index a3001ba13b..3419d8725d 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Pet.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Pet.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using AcceptanceTestsAzureCompositeModelClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Pet { @@ -31,13 +30,14 @@ public Pet() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public int? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Product.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Product.cs index a61ade4f9f..369a2719b6 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Product.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Product.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using AcceptanceTestsAzureCompositeModelClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// The product documentation. @@ -50,32 +49,33 @@ public Product() { } /// Francisco will have a different product_id than uberX in Los /// Angeles. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "product_id")] + [JsonProperty(PropertyName = "product_id")] public string ProductId { get; set; } /// /// Gets or sets description of product. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "description")] + [JsonProperty(PropertyName = "description")] public string Description { get; set; } /// /// Gets or sets display name of product. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "display_name")] + [JsonProperty(PropertyName = "display_name")] public string DisplayName { get; set; } /// /// Gets or sets capacity of product. For example, 4 people. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "capacity")] + [JsonProperty(PropertyName = "capacity")] public string Capacity { get; set; } /// /// Gets or sets image URL representing the product. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "image")] + [JsonProperty(PropertyName = "image")] public string Image { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ReadonlyObj.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ReadonlyObj.cs index 9a66ab5567..42db447e6a 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ReadonlyObj.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/ReadonlyObj.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using AcceptanceTestsAzureCompositeModelClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class ReadonlyObj { @@ -31,13 +30,14 @@ public ReadonlyObj() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id { get; private set; } + [JsonProperty(PropertyName = "id")] + public string Id { get; protected set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "size")] + [JsonProperty(PropertyName = "size")] public int? Size { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Salmon.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Salmon.cs index eccd448bc2..0cd207d486 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Salmon.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Salmon.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; [Newtonsoft.Json.JsonObject("salmon")] public partial class Salmon : Fish @@ -35,12 +34,12 @@ public Salmon() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "location")] + [JsonProperty(PropertyName = "location")] public string Location { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "iswild")] + [JsonProperty(PropertyName = "iswild")] public bool? Iswild { get; set; } /// @@ -55,3 +54,4 @@ public override void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Sawshark.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Sawshark.cs index 946321640f..b759ff0dc1 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Sawshark.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Sawshark.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; [Newtonsoft.Json.JsonObject("sawshark")] public partial class Sawshark : Shark @@ -34,7 +33,7 @@ public Sawshark() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "picture")] + [JsonProperty(PropertyName = "picture")] public byte[] Picture { get; set; } /// @@ -49,3 +48,4 @@ public override void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Shark.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Shark.cs index 15af5d75bb..a932e48a89 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Shark.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Shark.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; [Newtonsoft.Json.JsonObject("shark")] public partial class Shark : Fish @@ -35,12 +34,12 @@ public Shark() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "age")] + [JsonProperty(PropertyName = "age")] public int? Age { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "birthday")] + [JsonProperty(PropertyName = "birthday")] public System.DateTime Birthday { get; set; } /// @@ -55,3 +54,4 @@ public override void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Siamese.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Siamese.cs index 65892ca780..d4126ea7b8 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Siamese.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/Siamese.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Siamese : Cat { @@ -33,8 +32,9 @@ public Siamese() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "breed")] + [JsonProperty(PropertyName = "breed")] public string Breed { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/StringWrapper.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/StringWrapper.cs index 7da793d704..5829a5b9ea 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/StringWrapper.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/Models/StringWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient.Models using AcceptanceTestsAzureCompositeModelClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class StringWrapper { @@ -32,18 +31,19 @@ public StringWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field")] + [JsonProperty(PropertyName = "field")] public string Field { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "empty")] + [JsonProperty(PropertyName = "empty")] public string Empty { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "null")] + [JsonProperty(PropertyName = "null")] public string NullProperty { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphicrecursiveOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphicrecursiveOperations.cs index beedcfb5dc..2f63dadf65 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphicrecursiveOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphicrecursiveOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -36,7 +36,7 @@ internal partial class PolymorphicrecursiveOperations : IServiceOperations internal PolymorphicrecursiveOperations(AzureCompositeModel client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -406,3 +406,4 @@ internal PolymorphicrecursiveOperations(AzureCompositeModel client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphicrecursiveOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphicrecursiveOperationsExtensions.cs index d48284a3eb..42c03d5839 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphicrecursiveOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphicrecursiveOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -185,3 +184,4 @@ public static void PutValid(this IPolymorphicrecursiveOperations operations, Fis } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphismOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphismOperations.cs index 50d915312f..2dbfc88de7 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphismOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphismOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -36,7 +36,7 @@ internal partial class PolymorphismOperations : IServiceOperations internal PolymorphismOperations(AzureCompositeModel client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -565,3 +565,4 @@ internal PolymorphismOperations(AzureCompositeModel client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphismOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphismOperationsExtensions.cs index e6538d8d70..f845d0e700 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphismOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PolymorphismOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -230,3 +229,4 @@ public static void PutValidMissingRequired(this IPolymorphismOperations operatio } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PrimitiveOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PrimitiveOperations.cs index ba3e045d0a..f3fa77d2df 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PrimitiveOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PrimitiveOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -36,7 +36,7 @@ internal partial class PrimitiveOperations : IServiceOperations internal PrimitiveOperations(AzureCompositeModel client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -3346,3 +3346,4 @@ internal PrimitiveOperations(AzureCompositeModel client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PrimitiveOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PrimitiveOperationsExtensions.cs index 95f08150f9..b2835ce16c 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PrimitiveOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/PrimitiveOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -671,3 +670,4 @@ public static ByteWrapper GetByte(this IPrimitiveOperations operations) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ReadonlypropertyOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ReadonlypropertyOperations.cs index 5b710ef675..1c636ae435 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ReadonlypropertyOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ReadonlypropertyOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -36,7 +36,7 @@ internal partial class ReadonlypropertyOperations : IServiceOperations internal ReadonlypropertyOperations(AzureCompositeModel client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -347,3 +347,4 @@ internal ReadonlypropertyOperations(AzureCompositeModel client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ReadonlypropertyOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ReadonlypropertyOperationsExtensions.cs index cdb15bd338..e2d2ab00ec 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ReadonlypropertyOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureCompositeModelClient/ReadonlypropertyOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsAzureCompositeModelClient using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -79,3 +78,4 @@ public static ReadonlyObj GetValid(this IReadonlypropertyOperations operations) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/AutoRestParameterGroupingTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/AutoRestParameterGroupingTestService.cs index 4f1a373f5a..7f60f9cec3 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/AutoRestParameterGroupingTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/AutoRestParameterGroupingTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -299,7 +299,8 @@ private void Initialize() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IAutoRestParameterGroupingTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IAutoRestParameterGroupingTestService.cs index a1d3923cf9..3f55e43f65 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IAutoRestParameterGroupingTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IAutoRestParameterGroupingTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -65,3 +64,4 @@ public partial interface IAutoRestParameterGroupingTestService : System.IDisposa } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IParameterGroupingOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IParameterGroupingOperations.cs index 82f53b61f3..143a4f2e9c 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IParameterGroupingOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/IParameterGroupingOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -95,3 +94,4 @@ public partial interface IParameterGroupingOperations Task PostSharedParameterGroupObjectWithHttpMessagesAsync(FirstParameterGroup firstParameterGroup = default(FirstParameterGroup), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/Error.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/Error.cs index 9e13e970be..a1a8f9f96a 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models using AcceptanceTestsAzureParameterGrouping; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -32,13 +31,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ErrorException.cs index 1073c67e6f..0cde91ae72 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models using Azure; using AcceptanceTestsAzureParameterGrouping; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -20,7 +19,7 @@ namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -66,7 +65,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -101,3 +100,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/FirstParameterGroup.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/FirstParameterGroup.cs index 2107c03687..b579fcf420 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/FirstParameterGroup.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/FirstParameterGroup.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models using AcceptanceTestsAzureParameterGrouping; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Additional parameters for a set of operations, such as: @@ -38,14 +37,15 @@ public FirstParameterGroup() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public string HeaderOne { get; set; } /// /// Gets or sets query parameter with default /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public int? QueryOne { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.cs index 00075685d7..95eebb4de6 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostMultiParamGroupsSecondParamGroup.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models using AcceptanceTestsAzureParameterGrouping; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Additional parameters for the ParameterGrouping_PostMultiParamGroups @@ -39,14 +38,15 @@ public ParameterGroupingPostMultiParamGroupsSecondParamGroup() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public string HeaderTwo { get; set; } /// /// Gets or sets query parameter with default /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public int? QueryTwo { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostOptionalParameters.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostOptionalParameters.cs index aeaba199e8..37a64320dc 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostOptionalParameters.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostOptionalParameters.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models using AcceptanceTestsAzureParameterGrouping; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Additional parameters for the ParameterGrouping_PostOptional operation. @@ -38,14 +37,15 @@ public ParameterGroupingPostOptionalParameters() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public string CustomHeader { get; set; } /// /// Gets or sets query parameter with default /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public int? Query { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostRequiredParameters.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostRequiredParameters.cs index a6b8561fe7..ca84b960f1 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostRequiredParameters.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/Models/ParameterGroupingPostRequiredParameters.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping.Models using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Additional parameters for the ParameterGrouping_PostRequired operation. @@ -42,24 +41,24 @@ public ParameterGroupingPostRequiredParameters() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public int Body { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public string CustomHeader { get; set; } /// /// Gets or sets query parameter with default /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public int? Query { get; set; } /// /// Gets or sets path parameter /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public string Path { get; set; } /// @@ -77,3 +76,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/ParameterGroupingOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/ParameterGroupingOperations.cs index 62895192d7..893560d897 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/ParameterGroupingOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/ParameterGroupingOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class ParameterGroupingOperations : IServiceOperations internal ParameterGroupingOperations(AutoRestParameterGroupingTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -737,3 +737,4 @@ internal ParameterGroupingOperations(AutoRestParameterGroupingTestService client } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/ParameterGroupingOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/ParameterGroupingOperationsExtensions.cs index 758e1aeca4..f609150bee 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/ParameterGroupingOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/ParameterGroupingOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureParameterGrouping using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -153,3 +152,4 @@ public static void PostRequired(this IParameterGroupingOperations operations, Pa } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/AutoRestReportServiceForAzure.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/AutoRestReportServiceForAzure.cs index c9a4f86a8b..34fb3d07c8 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/AutoRestReportServiceForAzure.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/AutoRestReportServiceForAzure.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -295,8 +295,8 @@ private void Initialize() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } /// /// Get test coverage report /// @@ -451,3 +451,4 @@ private void Initialize() } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/AutoRestReportServiceForAzureExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/AutoRestReportServiceForAzureExtensions.cs index aed31351a5..cb3349d501 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/AutoRestReportServiceForAzureExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/AutoRestReportServiceForAzureExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureReport using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -53,3 +52,4 @@ public static partial class AutoRestReportServiceForAzureExtensions } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/IAutoRestReportServiceForAzure.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/IAutoRestReportServiceForAzure.cs index b421d38b31..d9c22a04b8 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/IAutoRestReportServiceForAzure.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/IAutoRestReportServiceForAzure.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -15,7 +15,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureReport using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -75,3 +74,4 @@ public partial interface IAutoRestReportServiceForAzure : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/Models/Error.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/Models/Error.cs index bc91808a71..9c3a3e5f95 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureReport.Models using AcceptanceTestsAzureReport; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -32,13 +31,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/Models/ErrorException.cs index 9d194610ca..ecb788ab89 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureReport/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureReport.Models using Azure; using AcceptanceTestsAzureReport; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -20,7 +19,7 @@ namespace Fixtures.Azure.AcceptanceTestsAzureReport.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -66,7 +65,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -101,3 +100,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/AutoRestResourceFlatteningTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/AutoRestResourceFlatteningTestService.cs index ed0f4b84ed..3796a2b425 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/AutoRestResourceFlatteningTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/AutoRestResourceFlatteningTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -297,8 +297,8 @@ private void Initialize() }; CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } /// /// Put External Resource as an Array /// @@ -1186,3 +1186,4 @@ private void Initialize() } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/AutoRestResourceFlatteningTestServiceExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/AutoRestResourceFlatteningTestServiceExtensions.cs index 5b1bd25e9e..9168edd894 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/AutoRestResourceFlatteningTestServiceExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/AutoRestResourceFlatteningTestServiceExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureResource using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -214,3 +213,4 @@ public static ResourceCollection GetResourceCollection(this IAutoRestResourceFla } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/IAutoRestResourceFlatteningTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/IAutoRestResourceFlatteningTestService.cs index c2ce11a528..b151637764 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/IAutoRestResourceFlatteningTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/IAutoRestResourceFlatteningTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -15,7 +15,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureResource using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -139,3 +138,4 @@ public partial interface IAutoRestResourceFlatteningTestService : System.IDispos } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/Error.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/Error.cs index 8e32712904..1216475712 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models using AcceptanceTestsAzureResource; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -32,13 +31,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/ErrorException.cs index 56febe5033..01df557670 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models using Azure; using AcceptanceTestsAzureResource; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -20,7 +19,7 @@ namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -66,7 +65,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -101,3 +100,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/FlattenedProduct.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/FlattenedProduct.cs index d06f6eae82..07aaf9cc9d 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/FlattenedProduct.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/FlattenedProduct.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -16,7 +16,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; [JsonTransformation] public partial class FlattenedProduct : Resource @@ -43,18 +42,19 @@ public FlattenedProduct() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.pname")] + [JsonProperty(PropertyName = "properties.pname")] public string Pname { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.lsize")] + [JsonProperty(PropertyName = "properties.lsize")] public int? Lsize { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningState")] + [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/Resource.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/Resource.cs index 54e9fe592b..b8984a9f09 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/Resource.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/Resource.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -16,7 +16,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; /// /// Some resource @@ -48,31 +47,32 @@ public Resource() { } /// /// Gets resource Id /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id { get; private set; } + [JsonProperty(PropertyName = "id")] + public string Id { get; protected set; } /// /// Gets resource Type /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] - public string Type { get; private set; } + [JsonProperty(PropertyName = "type")] + public string Type { get; protected set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] + [JsonProperty(PropertyName = "tags")] public IDictionary Tags { get; set; } /// /// Gets or sets resource Location /// - [Newtonsoft.Json.JsonProperty(PropertyName = "location")] + [JsonProperty(PropertyName = "location")] public string Location { get; set; } /// /// Gets resource Name /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name { get; private set; } + [JsonProperty(PropertyName = "name")] + public string Name { get; protected set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/ResourceCollection.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/ResourceCollection.cs index 0a355616e7..791dd07a0d 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/ResourceCollection.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureResource/Models/ResourceCollection.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureResource.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class ResourceCollection { @@ -35,18 +34,19 @@ public ResourceCollection() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "productresource")] + [JsonProperty(PropertyName = "productresource")] public FlattenedProduct Productresource { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "arrayofresources")] + [JsonProperty(PropertyName = "arrayofresources")] public IList Arrayofresources { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "dictionaryofresources")] + [JsonProperty(PropertyName = "dictionaryofresources")] public IDictionary Dictionaryofresources { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionDefaultOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionDefaultOperations.cs index 31d1574c63..8b87176234 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionDefaultOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionDefaultOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class ApiVersionDefaultOperations : IServiceOperations internal ApiVersionDefaultOperations(AutoRestAzureSpecialParametersTestClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -619,3 +619,4 @@ internal ApiVersionDefaultOperations(AutoRestAzureSpecialParametersTestClient cl } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionDefaultOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionDefaultOperationsExtensions.cs index 7aacc9b0a1..37bc4734e1 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionDefaultOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionDefaultOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -123,3 +122,4 @@ public static void GetSwaggerGlobalValid(this IApiVersionDefaultOperations opera } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionLocalOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionLocalOperations.cs index 6527da8eba..fb24556da5 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionLocalOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionLocalOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class ApiVersionLocalOperations : IServiceOperations internal ApiVersionLocalOperations(AutoRestAzureSpecialParametersTestClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -606,3 +606,4 @@ internal ApiVersionLocalOperations(AutoRestAzureSpecialParametersTestClient clie } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionLocalOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionLocalOperationsExtensions.cs index 41a7d7215c..b0a6604428 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionLocalOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ApiVersionLocalOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -139,3 +138,4 @@ public static void GetSwaggerLocalValid(this IApiVersionLocalOperations operatio } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/AutoRestAzureSpecialParametersTestClient.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/AutoRestAzureSpecialParametersTestClient.cs index 7c976c863d..8988bb1bc0 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/AutoRestAzureSpecialParametersTestClient.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/AutoRestAzureSpecialParametersTestClient.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -354,7 +354,8 @@ private void Initialize() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/HeaderOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/HeaderOperations.cs index 0b0c6a7614..1734318a3b 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/HeaderOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/HeaderOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class HeaderOperations : IServiceOperations internal HeaderOperations(AutoRestAzureSpecialParametersTestClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -388,3 +388,4 @@ internal HeaderOperations(AutoRestAzureSpecialParametersTestClient client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/HeaderOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/HeaderOperationsExtensions.cs index 35b3034ce3..cce3e46e57 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/HeaderOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/HeaderOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -95,3 +94,4 @@ public static HeaderCustomNamedRequestIdParamGroupingHeaders CustomNamedRequestI } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionDefaultOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionDefaultOperations.cs index 7dfc3774d6..18ee42fc4c 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionDefaultOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionDefaultOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -89,3 +88,4 @@ public partial interface IApiVersionDefaultOperations Task GetSwaggerGlobalValidWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionLocalOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionLocalOperations.cs index 5f06ecb374..319acf39e8 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionLocalOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IApiVersionLocalOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -94,3 +93,4 @@ public partial interface IApiVersionLocalOperations Task GetSwaggerLocalValidWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IAutoRestAzureSpecialParametersTestClient.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IAutoRestAzureSpecialParametersTestClient.cs index 1afaea093c..55e799de97 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IAutoRestAzureSpecialParametersTestClient.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IAutoRestAzureSpecialParametersTestClient.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -112,3 +111,4 @@ public partial interface IAutoRestAzureSpecialParametersTestClient : System.IDis } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IHeaderOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IHeaderOperations.cs index 00d021ff08..8dd1d19668 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IHeaderOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IHeaderOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -65,3 +64,4 @@ public partial interface IHeaderOperations Task> CustomNamedRequestIdParamGroupingWithHttpMessagesAsync(HeaderCustomNamedRequestIdParamGroupingParameters headerCustomNamedRequestIdParamGroupingParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IOdataOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IOdataOperations.cs index 0749afe083..5f4a55cd57 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IOdataOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IOdataOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -15,7 +15,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -43,3 +42,4 @@ public partial interface IOdataOperations Task GetWithFilterWithHttpMessagesAsync(ODataQuery odataQuery = default(ODataQuery), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ISkipUrlEncodingOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ISkipUrlEncodingOperations.cs index df275088b5..d946322689 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ISkipUrlEncodingOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ISkipUrlEncodingOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -157,3 +156,4 @@ public partial interface ISkipUrlEncodingOperations Task GetSwaggerQueryValidWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInCredentialsOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInCredentialsOperations.cs index d17da2f2aa..1101667c1b 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInCredentialsOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInCredentialsOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -111,3 +110,4 @@ public partial interface ISubscriptionInCredentialsOperations Task PostSwaggerGlobalValidWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInMethodOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInMethodOperations.cs index 786ede91d5..1dd89cc8e3 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInMethodOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/ISubscriptionInMethodOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -110,3 +109,4 @@ public partial interface ISubscriptionInMethodOperations Task PostSwaggerLocalValidWithHttpMessagesAsync(string subscriptionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IXMsClientRequestIdOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IXMsClientRequestIdOperations.cs index a27bfab314..bcf7ab1ada 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IXMsClientRequestIdOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/IXMsClientRequestIdOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -60,3 +59,4 @@ public partial interface IXMsClientRequestIdOperations Task ParamGetWithHttpMessagesAsync(string xMsClientRequestId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/Error.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/Error.cs index fe496a99a7..04bec8f1f8 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials.Models using AcceptanceTestsAzureSpecials; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -33,18 +32,19 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "constantId")] + [JsonProperty(PropertyName = "constantId")] public int? ConstantId { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/ErrorException.cs index 324fcf30b5..fee69ad96e 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials.Models using Azure; using AcceptanceTestsAzureSpecials; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -20,7 +19,7 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -66,7 +65,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -101,3 +100,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdHeaders.cs index 2e6f05aa31..dc74498193 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials.Models using AcceptanceTestsAzureSpecials; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for customNamedRequestId operation. @@ -38,8 +37,9 @@ public HeaderCustomNamedRequestIdHeaders() { } /// /// Gets the foo-request-id. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "foo-request-id")] + [JsonProperty(PropertyName = "foo-request-id")] public string FooRequestId { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdParamGroupingHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdParamGroupingHeaders.cs index e69e100bde..5f6505c87c 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdParamGroupingHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdParamGroupingHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials.Models using AcceptanceTestsAzureSpecials; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for customNamedRequestIdParamGrouping operation. @@ -38,8 +37,9 @@ public HeaderCustomNamedRequestIdParamGroupingHeaders() { } /// /// Gets the foo-request-id. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "foo-request-id")] + [JsonProperty(PropertyName = "foo-request-id")] public string FooRequestId { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdParamGroupingParameters.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdParamGroupingParameters.cs index df179b7b7b..0c23e8ca75 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdParamGroupingParameters.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/HeaderCustomNamedRequestIdParamGroupingParameters.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials.Models using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Additional parameters for the Header_CustomNamedRequestIdParamGrouping @@ -40,7 +39,7 @@ public HeaderCustomNamedRequestIdParamGroupingParameters(string fooClientRequest /// /// Gets or sets the fooRequestId /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public string FooClientRequestId { get; set; } /// @@ -58,3 +57,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/OdataFilter.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/OdataFilter.cs index f2a0fce0b1..a17cca5623 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/OdataFilter.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/Models/OdataFilter.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials.Models using AcceptanceTestsAzureSpecials; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class OdataFilter { @@ -32,13 +31,14 @@ public OdataFilter() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public int? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/OdataOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/OdataOperations.cs index cba8aae669..e726683cf1 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/OdataOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/OdataOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -38,7 +38,7 @@ internal partial class OdataOperations : IServiceOperations internal OdataOperations(AutoRestAzureSpecialParametersTestClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -89,7 +89,7 @@ internal OdataOperations(AutoRestAzureSpecialParametersTestClient client) if (odataQuery != null) { var _odataFilter = odataQuery.ToString(); - if (!string.IsNullOrEmpty(_odataFilter)) + if (!string.IsNullOrEmpty(_odataFilter)) { _queryParameters.Add(_odataFilter); } @@ -196,3 +196,4 @@ internal OdataOperations(AutoRestAzureSpecialParametersTestClient client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/OdataOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/OdataOperationsExtensions.cs index 46e8a36734..6140709b1f 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/OdataOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/OdataOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Microsoft.Rest.Azure; using Microsoft.Rest.Azure.OData; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -57,3 +56,4 @@ public static partial class OdataOperationsExtensions } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SkipUrlEncodingOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SkipUrlEncodingOperations.cs index e5c45cdfa0..12988ad072 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SkipUrlEncodingOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SkipUrlEncodingOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class SkipUrlEncodingOperations : IServiceOperations internal SkipUrlEncodingOperations(AutoRestAzureSpecialParametersTestClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -1042,3 +1042,4 @@ internal SkipUrlEncodingOperations(AutoRestAzureSpecialParametersTestClient clie } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SkipUrlEncodingOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SkipUrlEncodingOperationsExtensions.cs index d8ca64cce8..0888472b29 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SkipUrlEncodingOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SkipUrlEncodingOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -234,3 +233,4 @@ public static void GetSwaggerQueryValid(this ISkipUrlEncodingOperations operatio } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInCredentialsOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInCredentialsOperations.cs index 63d4efb63b..939b6d06b5 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInCredentialsOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInCredentialsOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class SubscriptionInCredentialsOperations : IServiceOperations< /// internal SubscriptionInCredentialsOperations(AutoRestAzureSpecialParametersTestClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -760,3 +760,4 @@ internal SubscriptionInCredentialsOperations(AutoRestAzureSpecialParametersTestC } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInCredentialsOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInCredentialsOperationsExtensions.cs index acb9184654..14dfdb0c72 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInCredentialsOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInCredentialsOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -160,3 +159,4 @@ public static void PostSwaggerGlobalValid(this ISubscriptionInCredentialsOperati } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInMethodOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInMethodOperations.cs index 113c01310c..16b77c49e6 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInMethodOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInMethodOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class SubscriptionInMethodOperations : IServiceOperations internal SubscriptionInMethodOperations(AutoRestAzureSpecialParametersTestClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -630,3 +630,4 @@ internal SubscriptionInMethodOperations(AutoRestAzureSpecialParametersTestClient } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInMethodOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInMethodOperationsExtensions.cs index 00da8e7263..23f22c4ce1 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInMethodOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/SubscriptionInMethodOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -161,3 +160,4 @@ public static void PostSwaggerLocalValid(this ISubscriptionInMethodOperations op } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/XMsClientRequestIdOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/XMsClientRequestIdOperations.cs index 75eb1221e5..39969bc904 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/XMsClientRequestIdOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/XMsClientRequestIdOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class XMsClientRequestIdOperations : IServiceOperations internal XMsClientRequestIdOperations(AutoRestAzureSpecialParametersTestClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -332,3 +332,4 @@ internal XMsClientRequestIdOperations(AutoRestAzureSpecialParametersTestClient c } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/XMsClientRequestIdOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/XMsClientRequestIdOperationsExtensions.cs index b0e6b57295..ea166799bf 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/XMsClientRequestIdOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/AzureSpecials/XMsClientRequestIdOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsAzureSpecials using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -85,3 +84,4 @@ public static void ParamGet(this IXMsClientRequestIdOperations operations, strin } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs index fabf72eb56..a68390380f 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -191,7 +191,8 @@ private void Initialize() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs index 4976993c16..615c995f47 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.Azure.AcceptanceTestsCustomBaseUri using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -70,3 +69,4 @@ public partial interface IAutoRestParameterizedHostTestClient : System.IDisposab } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/IPathsOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/IPathsOperations.cs index b479cc4ca5..ac6290ed90 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/IPathsOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/IPathsOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsCustomBaseUri using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -44,3 +43,4 @@ public partial interface IPathsOperations Task GetEmptyWithHttpMessagesAsync(string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs index af05bde214..a95d7957fb 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsCustomBaseUri.Models using AcceptanceTestsCustomBaseUri; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -32,13 +31,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs index 859af203c1..95f6e5b9cb 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.Azure.AcceptanceTestsCustomBaseUri.Models using Azure; using AcceptanceTestsCustomBaseUri; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -20,7 +19,7 @@ namespace Fixtures.Azure.AcceptanceTestsCustomBaseUri.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -66,7 +65,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -101,3 +100,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsOperations.cs index ee4a14b773..be542aad67 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class PathsOperations : IServiceOperations internal PathsOperations(AutoRestParameterizedHostTestClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -199,3 +199,4 @@ internal PathsOperations(AutoRestParameterizedHostTestClient client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsOperationsExtensions.cs index b22b19b451..c2f84f7854 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsCustomBaseUri using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -54,3 +53,4 @@ public static void GetEmpty(this IPathsOperations operations, string accountName } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/AutoRestHeadTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/AutoRestHeadTestService.cs index c639d8e69f..1135f75f61 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/AutoRestHeadTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/AutoRestHeadTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -298,7 +298,8 @@ private void Initialize() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/HttpSuccessOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/HttpSuccessOperations.cs index 6818b5558a..14e08c5ad5 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/HttpSuccessOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/HttpSuccessOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -36,7 +36,7 @@ internal partial class HttpSuccessOperations : IServiceOperations internal HttpSuccessOperations(AutoRestHeadTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -461,3 +461,4 @@ internal HttpSuccessOperations(AutoRestHeadTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/HttpSuccessOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/HttpSuccessOperationsExtensions.cs index 0150bd9649..db238bf02f 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/HttpSuccessOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/HttpSuccessOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.Azure.AcceptanceTestsHead using Azure; using Microsoft.Rest; using Microsoft.Rest.Azure; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -106,3 +105,4 @@ public static bool Head404(this IHttpSuccessOperations operations) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/IAutoRestHeadTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/IAutoRestHeadTestService.cs index ec490ea534..d74b37c4a5 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/IAutoRestHeadTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/IAutoRestHeadTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsHead using Microsoft.Rest; using Microsoft.Rest.Azure; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -64,3 +63,4 @@ public partial interface IAutoRestHeadTestService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/IHttpSuccessOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/IHttpSuccessOperations.cs index 83b339bad8..ca652d08fe 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/IHttpSuccessOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/IHttpSuccessOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.Azure.AcceptanceTestsHead using Microsoft.Rest.Azure; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -63,3 +62,4 @@ public partial interface IHttpSuccessOperations Task> Head404WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/AutoRestHeadExceptionTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/AutoRestHeadExceptionTestService.cs index edbe65f8d8..81ce674579 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/AutoRestHeadExceptionTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/AutoRestHeadExceptionTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -298,7 +298,8 @@ private void Initialize() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/HeadExceptionOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/HeadExceptionOperations.cs index 7ee7423759..e35df5af69 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/HeadExceptionOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/HeadExceptionOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -35,7 +35,7 @@ internal partial class HeadExceptionOperations : IServiceOperations internal HeadExceptionOperations(AutoRestHeadExceptionTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -433,3 +433,4 @@ internal HeadExceptionOperations(AutoRestHeadExceptionTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/HeadExceptionOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/HeadExceptionOperationsExtensions.cs index 481a8fc24b..d224dbc033 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/HeadExceptionOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/HeadExceptionOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.Azure.AcceptanceTestsHeadExceptions using Azure; using Microsoft.Rest; using Microsoft.Rest.Azure; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -97,3 +96,4 @@ public static void Head404(this IHeadExceptionOperations operations) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/IAutoRestHeadExceptionTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/IAutoRestHeadExceptionTestService.cs index 4fedb9e563..fa6d4465a5 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/IAutoRestHeadExceptionTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/IAutoRestHeadExceptionTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsHeadExceptions using Microsoft.Rest; using Microsoft.Rest.Azure; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -64,3 +63,4 @@ public partial interface IAutoRestHeadExceptionTestService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/IHeadExceptionOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/IHeadExceptionOperations.cs index b103d881ab..b81adfd4da 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/IHeadExceptionOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/HeadExceptions/IHeadExceptionOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.Azure.AcceptanceTestsHeadExceptions using Microsoft.Rest.Azure; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -63,3 +62,4 @@ public partial interface IHeadExceptionOperations Task Head404WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/AutoRestLongRunningOperationTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/AutoRestLongRunningOperationTestService.cs index ab103bebb0..f5699127e3 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/AutoRestLongRunningOperationTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/AutoRestLongRunningOperationTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -319,7 +319,8 @@ private void Initialize() }; CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/IAutoRestLongRunningOperationTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/IAutoRestLongRunningOperationTestService.cs index 059600241a..c56e00cb29 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/IAutoRestLongRunningOperationTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/IAutoRestLongRunningOperationTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Long-running Operation for AutoRest @@ -80,3 +79,4 @@ public partial interface IAutoRestLongRunningOperationTestService : System.IDisp } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILRORetrysOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILRORetrysOperations.cs index fadb2f2eb8..fbe7bfed3f 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILRORetrysOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILRORetrysOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -285,3 +284,4 @@ public partial interface ILRORetrysOperations Task> BeginPostAsyncRelativeRetrySucceededWithHttpMessagesAsync(Product product = default(Product), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILROSADsOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILROSADsOperations.cs index 1896eb6837..98c279664d 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILROSADsOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILROSADsOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -961,3 +960,4 @@ public partial interface ILROSADsOperations Task> BeginPostAsyncRelativeRetryInvalidJsonPollingWithHttpMessagesAsync(Product product = default(Product), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILROsCustomHeaderOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILROsCustomHeaderOperations.cs index 9828e07efa..ee61976993 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILROsCustomHeaderOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILROsCustomHeaderOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -201,3 +200,4 @@ public partial interface ILROsCustomHeaderOperations Task> BeginPostAsyncRetrySucceededWithHttpMessagesAsync(Product product = default(Product), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILROsOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILROsOperations.cs index f6a29fd2bc..e1a33dc55d 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILROsOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/ILROsOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -132,7 +131,7 @@ public partial interface ILROsOperations Task> Put200UpdatingSucceeded204WithHttpMessagesAsync(Product product = default(Product), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Long running put request, service returns a 201 to the initial - /// request, with an entity that contains ProvisioningState=’Created’. + /// request, with an entity that contains ProvisioningState=’Created’. /// Polls return this value until the last poll returns a ‘200’ with /// ProvisioningState=’Failed’ /// @@ -823,7 +822,7 @@ public partial interface ILROsOperations Task> BeginPut200UpdatingSucceeded204WithHttpMessagesAsync(Product product = default(Product), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Long running put request, service returns a 201 to the initial - /// request, with an entity that contains ProvisioningState=’Created’. + /// request, with an entity that contains ProvisioningState=’Created’. /// Polls return this value until the last poll returns a ‘200’ with /// ProvisioningState=’Failed’ /// @@ -1407,3 +1406,4 @@ public partial interface ILROsOperations Task> BeginPostAsyncRetrycanceledWithHttpMessagesAsync(Product product = default(Product), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperations.cs index 88038e4ce9..acb01e52c4 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class LRORetrysOperations : IServiceOperations internal LRORetrysOperations(AutoRestLongRunningOperationTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -1391,3 +1391,4 @@ internal LRORetrysOperations(AutoRestLongRunningOperationTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperationsExtensions.cs index 11244a0646..8fbdd7a377 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -535,3 +534,4 @@ public static LRORetrysDeleteAsyncRelativeRetrySucceededHeaders BeginDeleteAsync } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROSADsOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROSADsOperations.cs index f99540cefc..00e06439df 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROSADsOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROSADsOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class LROSADsOperations : IServiceOperations internal LROSADsOperations(AutoRestLongRunningOperationTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -4891,3 +4891,4 @@ internal LROSADsOperations(AutoRestLongRunningOperationTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROSADsOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROSADsOperationsExtensions.cs index 107499a01c..43c08f2d70 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROSADsOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROSADsOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -1821,3 +1820,4 @@ public static LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders BeginDele } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsCustomHeaderOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsCustomHeaderOperations.cs index 2e30c5c141..55fb580862 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsCustomHeaderOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsCustomHeaderOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class LROsCustomHeaderOperations : IServiceOperations internal LROsCustomHeaderOperations(AutoRestLongRunningOperationTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -848,3 +848,4 @@ internal LROsCustomHeaderOperations(AutoRestLongRunningOperationTestService clie } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsCustomHeaderOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsCustomHeaderOperationsExtensions.cs index 5c131824c2..0c4729ff11 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsCustomHeaderOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsCustomHeaderOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -355,3 +354,4 @@ public static partial class LROsCustomHeaderOperationsExtensions } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsOperations.cs index 5f8988a99e..e3c6db4aaa 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class LROsOperations : IServiceOperations internal LROsOperations(AutoRestLongRunningOperationTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -6985,3 +6985,4 @@ internal LROsOperations(AutoRestLongRunningOperationTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsOperationsExtensions.cs index 94720b9bb4..7303b51902 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/LROsOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -2565,3 +2564,4 @@ public static Sku BeginPost200WithPayload(this ILROsOperations operations) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDelete202Retry200Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDelete202Retry200Headers.cs index 6bc8193d8d..113e0a79f6 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDelete202Retry200Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDelete202Retry200Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for delete202Retry200 operation. @@ -43,15 +42,16 @@ public LRORetrysDelete202Retry200Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/delete/202/retry/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteAsyncRelativeRetrySucceededHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteAsyncRelativeRetrySucceededHeaders.cs index 2e5f517305..2beaa9cd7f 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteAsyncRelativeRetrySucceededHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteAsyncRelativeRetrySucceededHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteAsyncRelativeRetrySucceeded operation. @@ -48,22 +47,23 @@ public LRORetrysDeleteAsyncRelativeRetrySucceededHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/deleteasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/deleteasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteProvisioning202Accepted200SucceededHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteProvisioning202Accepted200SucceededHeaders.cs index cddd249e7b..660026bdce 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteProvisioning202Accepted200SucceededHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysDeleteProvisioning202Accepted200SucceededHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteProvisioning202Accepted200Succeeded @@ -45,15 +44,16 @@ public LRORetrysDeleteProvisioning202Accepted200SucceededHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/delete/provisioning/202/accepted/200/succeeded /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPost202Retry200Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPost202Retry200Headers.cs index 576a1860e8..7ac9676316 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPost202Retry200Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPost202Retry200Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for post202Retry200 operation. @@ -43,15 +42,16 @@ public LRORetrysPost202Retry200Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/post/202/retry/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPostAsyncRelativeRetrySucceededHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPostAsyncRelativeRetrySucceededHeaders.cs index 8f421897b2..5302297593 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPostAsyncRelativeRetrySucceededHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPostAsyncRelativeRetrySucceededHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for postAsyncRelativeRetrySucceeded operation. @@ -48,22 +47,23 @@ public LRORetrysPostAsyncRelativeRetrySucceededHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPutAsyncRelativeRetrySucceededHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPutAsyncRelativeRetrySucceededHeaders.cs index 6dabb8897c..187f8b2985 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPutAsyncRelativeRetrySucceededHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LRORetrysPutAsyncRelativeRetrySucceededHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for putAsyncRelativeRetrySucceeded operation. @@ -48,22 +47,23 @@ public LRORetrysPutAsyncRelativeRetrySucceededHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202NonRetry400Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202NonRetry400Headers.cs index a2e438f2b4..7e8c79f6e1 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202NonRetry400Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202NonRetry400Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for delete202NonRetry400 operation. @@ -43,15 +42,16 @@ public LROSADsDelete202NonRetry400Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/delete/202/retry/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202RetryInvalidHeaderHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202RetryInvalidHeaderHeaders.cs index 66b34d5c76..fde2b1f261 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202RetryInvalidHeaderHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDelete202RetryInvalidHeaderHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for delete202RetryInvalidHeader operation. @@ -43,15 +42,16 @@ public LROSADsDelete202RetryInvalidHeaderHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /foo /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to /bar /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetry400Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetry400Headers.cs index 44897d2e0c..38269f1367 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetry400Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetry400Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteAsyncRelativeRetry400 operation. @@ -48,22 +47,23 @@ public LROSADsDeleteAsyncRelativeRetry400Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/nonretryerror/deleteasync/retry/operationResults/400 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/nonretryerror/deleteasync/retry/operationResults/400 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders.cs index a718f34779..79ff1ee941 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteAsyncRelativeRetryInvalidHeader operation. @@ -46,22 +45,23 @@ public LROSADsDeleteAsyncRelativeRetryInvalidHeaderHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /foo /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /foo /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to /bar /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders.cs index b212a78def..5d1098b177 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteAsyncRelativeRetryInvalidJsonPolling @@ -49,22 +48,23 @@ public LROSADsDeleteAsyncRelativeRetryInvalidJsonPollingHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/error/deleteasync/retry/failed/operationResults/invalidjsonpolling /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/error/deleteasync/retry/failed/operationResults/invalidjsonpolling /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryNoStatusHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryNoStatusHeaders.cs index 8585d54729..e80df25ffa 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryNoStatusHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteAsyncRelativeRetryNoStatusHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteAsyncRelativeRetryNoStatus operation. @@ -48,22 +47,23 @@ public LROSADsDeleteAsyncRelativeRetryNoStatusHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteNonRetry400Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteNonRetry400Headers.cs index 397c484ce6..44e6fce456 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteNonRetry400Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsDeleteNonRetry400Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteNonRetry400 operation. @@ -43,15 +42,16 @@ public LROSADsDeleteNonRetry400Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/delete/202/retry/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NoLocationHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NoLocationHeaders.cs index e8c2ca53f9..b6de6c81b6 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NoLocationHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NoLocationHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for post202NoLocation operation. @@ -42,15 +41,16 @@ public LROSADsPost202NoLocationHeaders() { } /// /// Gets or sets location to poll for result status: will not be set /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NonRetry400Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NonRetry400Headers.cs index a1af7fdf89..b79d387117 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NonRetry400Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202NonRetry400Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for post202NonRetry400 operation. @@ -43,15 +42,16 @@ public LROSADsPost202NonRetry400Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/post/202/retry/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202RetryInvalidHeaderHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202RetryInvalidHeaderHeaders.cs index 36a9924bfb..8c7ae66c89 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202RetryInvalidHeaderHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPost202RetryInvalidHeaderHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for post202RetryInvalidHeader operation. @@ -43,15 +42,16 @@ public LROSADsPost202RetryInvalidHeaderHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /foo /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to /bar /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetry400Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetry400Headers.cs index 96a44ff662..8b0a44ef2b 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetry400Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetry400Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for postAsyncRelativeRetry400 operation. @@ -48,22 +47,23 @@ public LROSADsPostAsyncRelativeRetry400Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/nonretryerror/putasync/retry/operationResults/400 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/nonretryerror/putasync/retry/operationResults/400 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders.cs index 51d157887e..f2a725976b 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for postAsyncRelativeRetryInvalidHeader operation. @@ -45,21 +44,22 @@ public LROSADsPostAsyncRelativeRetryInvalidHeaderHeaders() { } /// /// Gets or sets location to poll for result status: will be set to foo /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to foo /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to /bar /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders.cs index 9b4677769f..abe09d51c9 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for postAsyncRelativeRetryInvalidJsonPolling operation. @@ -48,22 +47,23 @@ public LROSADsPostAsyncRelativeRetryInvalidJsonPollingHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/error/postasync/retry/failed/operationResults/invalidjsonpolling /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/error/postasync/retry/failed/operationResults/invalidjsonpolling /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryNoPayloadHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryNoPayloadHeaders.cs index 473b441149..92d280804d 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryNoPayloadHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostAsyncRelativeRetryNoPayloadHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for postAsyncRelativeRetryNoPayload operation. @@ -48,22 +47,23 @@ public LROSADsPostAsyncRelativeRetryNoPayloadHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/error/putasync/retry/failed/operationResults/nopayload /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/error/putasync/retry/failed/operationResults/nopayload /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostNonRetry400Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostNonRetry400Headers.cs index b674ba6e44..fdd1817b6c 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostNonRetry400Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPostNonRetry400Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for postNonRetry400 operation. @@ -43,15 +42,16 @@ public LROSADsPostNonRetry400Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/retryerror/post/202/retry/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetry400Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetry400Headers.cs index ceb7bfeb69..d97940af47 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetry400Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetry400Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for putAsyncRelativeRetry400 operation. @@ -48,22 +47,23 @@ public LROSADsPutAsyncRelativeRetry400Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/nonretryerror/putasync/retry/operationResults/400 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/nonretryerror/putasync/retry/operationResults/400 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders.cs index 6c16d865ac..f7b8aca2c5 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for putAsyncRelativeRetryInvalidHeader operation. @@ -47,22 +46,23 @@ public LROSADsPutAsyncRelativeRetryInvalidHeaderHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders.cs index 86303febfd..fa0f0b52a5 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for putAsyncRelativeRetryInvalidJsonPolling operation. @@ -47,22 +46,23 @@ public LROSADsPutAsyncRelativeRetryInvalidJsonPollingHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/failed/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/failed/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusHeaders.cs index c4a3158410..dc6e812034 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for putAsyncRelativeRetryNoStatus operation. @@ -47,22 +46,23 @@ public LROSADsPutAsyncRelativeRetryNoStatusHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders.cs index e6264feff9..ec48dd02ce 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for putAsyncRelativeRetryNoStatusPayload operation. @@ -47,22 +46,23 @@ public LROSADsPutAsyncRelativeRetryNoStatusPayloadHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPost202Retry200Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPost202Retry200Headers.cs index 72c31e6ab4..f25c865d0e 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPost202Retry200Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPost202Retry200Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for post202Retry200 operation. @@ -43,15 +42,16 @@ public LROsCustomHeaderPost202Retry200Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/customheader/post/202/retry/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPostAsyncRetrySucceededHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPostAsyncRetrySucceededHeaders.cs index 396f77af2f..29fa5f3cf2 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPostAsyncRetrySucceededHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPostAsyncRetrySucceededHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for postAsyncRetrySucceeded operation. @@ -48,22 +47,23 @@ public LROsCustomHeaderPostAsyncRetrySucceededHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/customheader/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/customheader/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPutAsyncRetrySucceededHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPutAsyncRetrySucceededHeaders.cs index 6d8bb078b2..8c15fab2db 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPutAsyncRetrySucceededHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsCustomHeaderPutAsyncRetrySucceededHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for putAsyncRetrySucceeded operation. @@ -48,22 +47,23 @@ public LROsCustomHeaderPutAsyncRetrySucceededHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/customheader/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/customheader/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202NoRetry204Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202NoRetry204Headers.cs index 76c904d22e..8eca9c011d 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202NoRetry204Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202NoRetry204Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for delete202NoRetry204 operation. @@ -43,15 +42,16 @@ public LROsDelete202NoRetry204Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/delete/202/noretry/204 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202Retry200Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202Retry200Headers.cs index 75485ddbc9..57b1fa80dc 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202Retry200Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDelete202Retry200Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for delete202Retry200 operation. @@ -43,15 +42,16 @@ public LROsDelete202Retry200Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/delete/202/retry/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoHeaderInRetryHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoHeaderInRetryHeaders.cs index 443b0749f3..e6083171b7 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoHeaderInRetryHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoHeaderInRetryHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteAsyncNoHeaderInRetry operation. @@ -40,8 +39,9 @@ public LROsDeleteAsyncNoHeaderInRetryHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/put/noheader/202/204/operationresults /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoRetrySucceededHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoRetrySucceededHeaders.cs index c8bb7f599c..aedafa146b 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoRetrySucceededHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncNoRetrySucceededHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteAsyncNoRetrySucceeded operation. @@ -48,22 +47,23 @@ public LROsDeleteAsyncNoRetrySucceededHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/noretry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/noretry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetryFailedHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetryFailedHeaders.cs index 7547bf19ae..eaa2224c27 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetryFailedHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetryFailedHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteAsyncRetryFailed operation. @@ -47,22 +46,23 @@ public LROsDeleteAsyncRetryFailedHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/failed/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/failed/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrySucceededHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrySucceededHeaders.cs index 3590ddcc6f..b1814623d7 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrySucceededHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrySucceededHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteAsyncRetrySucceeded operation. @@ -48,22 +47,23 @@ public LROsDeleteAsyncRetrySucceededHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrycanceledHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrycanceledHeaders.cs index 430ed9283e..64696108d8 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrycanceledHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteAsyncRetrycanceledHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteAsyncRetrycanceled operation. @@ -47,22 +46,23 @@ public LROsDeleteAsyncRetrycanceledHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/canceled/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/deleteasync/retry/canceled/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteNoHeaderInRetryHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteNoHeaderInRetryHeaders.cs index 7c116bb63b..8b69e20f16 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteNoHeaderInRetryHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteNoHeaderInRetryHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteNoHeaderInRetry operation. @@ -40,8 +39,9 @@ public LROsDeleteNoHeaderInRetryHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/put/noheader/202/204/operationresults /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Accepted200SucceededHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Accepted200SucceededHeaders.cs index 3272b90183..6ef47cacb5 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Accepted200SucceededHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Accepted200SucceededHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteProvisioning202Accepted200Succeeded @@ -44,15 +43,16 @@ public LROsDeleteProvisioning202Accepted200SucceededHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/delete/provisioning/202/accepted/200/succeeded /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202DeletingFailed200Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202DeletingFailed200Headers.cs index 6065b5a468..4bf10492af 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202DeletingFailed200Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202DeletingFailed200Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteProvisioning202DeletingFailed200 operation. @@ -43,15 +42,16 @@ public LROsDeleteProvisioning202DeletingFailed200Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/delete/provisioning/202/deleting/200/failed /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Deletingcanceled200Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Deletingcanceled200Headers.cs index c77eb9a5dd..a16c1dc111 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Deletingcanceled200Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsDeleteProvisioning202Deletingcanceled200Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for deleteProvisioning202Deletingcanceled200 operation. @@ -43,15 +42,16 @@ public LROsDeleteProvisioning202Deletingcanceled200Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/delete/provisioning/202/deleting/200/canceled /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202NoRetry204Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202NoRetry204Headers.cs index b680ee1dca..6de75830f9 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202NoRetry204Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202NoRetry204Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for post202NoRetry204 operation. @@ -43,15 +42,16 @@ public LROsPost202NoRetry204Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/post/202/noretry/204 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202Retry200Headers.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202Retry200Headers.cs index c4a7440b25..6bdb403bc3 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202Retry200Headers.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPost202Retry200Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for post202Retry200 operation. @@ -41,15 +40,16 @@ public LROsPost202Retry200Headers() { } /// Gets or sets location to poll for result status: will be set to /// /lro/post/202/retry/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncNoRetrySucceededHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncNoRetrySucceededHeaders.cs index 62d8363b07..098a49fa62 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncNoRetrySucceededHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncNoRetrySucceededHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for postAsyncNoRetrySucceeded operation. @@ -47,22 +46,23 @@ public LROsPostAsyncNoRetrySucceededHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetryFailedHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetryFailedHeaders.cs index c77111e692..902966bd35 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetryFailedHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetryFailedHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for postAsyncRetryFailed operation. @@ -47,22 +46,23 @@ public LROsPostAsyncRetryFailedHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/failed/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/failed/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrySucceededHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrySucceededHeaders.cs index 7e7ddacd45..4f11997132 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrySucceededHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrySucceededHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for postAsyncRetrySucceeded operation. @@ -47,22 +46,23 @@ public LROsPostAsyncRetrySucceededHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrycanceledHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrycanceledHeaders.cs index 4258642613..f46131f067 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrycanceledHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPostAsyncRetrycanceledHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for postAsyncRetrycanceled operation. @@ -47,22 +46,23 @@ public LROsPostAsyncRetrycanceledHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/canceled/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/canceled/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoHeaderInRetryHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoHeaderInRetryHeaders.cs index 2415282394..e0a88f5e34 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoHeaderInRetryHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoHeaderInRetryHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for putAsyncNoHeaderInRetry operation. @@ -36,8 +35,9 @@ public LROsPutAsyncNoHeaderInRetryHeaders() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrySucceededHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrySucceededHeaders.cs index db1740107f..201ad50ea8 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrySucceededHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrySucceededHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for putAsyncNoRetrySucceeded operation. @@ -44,15 +43,16 @@ public LROsPutAsyncNoRetrySucceededHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/noretry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/noretry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrycanceledHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrycanceledHeaders.cs index 6ec1bf2c43..a3102a52ea 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrycanceledHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncNoRetrycanceledHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for putAsyncNoRetrycanceled operation. @@ -44,15 +43,16 @@ public LROsPutAsyncNoRetrycanceledHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/noretry/canceled/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/noretry/canceled/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetryFailedHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetryFailedHeaders.cs index 9edf122d10..764fbcac92 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetryFailedHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetryFailedHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for putAsyncRetryFailed operation. @@ -47,22 +46,23 @@ public LROsPutAsyncRetryFailedHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/failed/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/failed/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetrySucceededHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetrySucceededHeaders.cs index becca878f7..3c25550317 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetrySucceededHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutAsyncRetrySucceededHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for putAsyncRetrySucceeded operation. @@ -47,22 +46,23 @@ public LROsPutAsyncRetrySucceededHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Azure-AsyncOperation")] + [JsonProperty(PropertyName = "Azure-AsyncOperation")] public string AzureAsyncOperation { get; set; } /// /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/retry/succeeded/operationResults/200 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } /// /// Gets or sets number of milliseconds until the next poll should be /// sent, will be set to zero /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Retry-After")] + [JsonProperty(PropertyName = "Retry-After")] public int? RetryAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutNoHeaderInRetryHeaders.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutNoHeaderInRetryHeaders.cs index 7a27fcc1b2..4cd3156c64 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutNoHeaderInRetryHeaders.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/LROsPutNoHeaderInRetryHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for putNoHeaderInRetry operation. @@ -40,8 +39,9 @@ public LROsPutNoHeaderInRetryHeaders() { } /// Gets or sets location to poll for result status: will be set to /// /lro/putasync/noheader/202/200/operationResults /// - [Newtonsoft.Json.JsonProperty(PropertyName = "location")] + [JsonProperty(PropertyName = "location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/OperationResult.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/OperationResult.cs index ea047b88cf..9d327414a9 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/OperationResult.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/OperationResult.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class OperationResult { @@ -39,13 +38,14 @@ public OperationResult() { } /// 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', /// 'Created', 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public string Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "error")] + [JsonProperty(PropertyName = "error")] public OperationResultError Error { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/OperationResultError.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/OperationResultError.cs index dafb2461d3..e4691be738 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/OperationResultError.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/OperationResultError.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class OperationResultError { @@ -35,14 +34,15 @@ public OperationResultError() { } /// /// Gets or sets the error code for an operation failure /// - [Newtonsoft.Json.JsonProperty(PropertyName = "code")] + [JsonProperty(PropertyName = "code")] public int? Code { get; set; } /// /// Gets or sets the detailed arror message /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/Product.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/Product.cs index cb87b70b0e..5054d3cdd8 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/Product.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/Product.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -16,7 +16,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; [JsonTransformation] public partial class Product : Resource @@ -46,7 +45,7 @@ public Product() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningState")] + [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } /// @@ -54,8 +53,9 @@ public Product() { } /// 'Accepted', 'Creating', 'Created', 'Updating', 'Updated', /// 'Deleting', 'Deleted', 'OK' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningStateValues")] - public string ProvisioningStateValues { get; private set; } + [JsonProperty(PropertyName = "properties.provisioningStateValues")] + public string ProvisioningStateValues { get; protected set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/Resource.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/Resource.cs index ff6e63e5a4..77fb790950 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/Resource.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/Resource.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -16,7 +16,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Resource : IResource { @@ -44,31 +43,32 @@ public Resource() { } /// /// Gets resource Id /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id { get; private set; } + [JsonProperty(PropertyName = "id")] + public string Id { get; protected set; } /// /// Gets resource Type /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] - public string Type { get; private set; } + [JsonProperty(PropertyName = "type")] + public string Type { get; protected set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] + [JsonProperty(PropertyName = "tags")] public IDictionary Tags { get; set; } /// /// Gets or sets resource Location /// - [Newtonsoft.Json.JsonProperty(PropertyName = "location")] + [JsonProperty(PropertyName = "location")] public string Location { get; set; } /// /// Gets resource Name /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name { get; private set; } + [JsonProperty(PropertyName = "name")] + public string Name { get; protected set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/Sku.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/Sku.cs index 5fd9e343d9..a4e0b7888f 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/Sku.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/Sku.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using AcceptanceTestsLro; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Sku { @@ -32,13 +31,14 @@ public Sku() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public string Id { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/SubProduct.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/SubProduct.cs index 6c844264d2..2d699827c3 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/SubProduct.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/SubProduct.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; [JsonTransformation] public partial class SubProduct : SubResource @@ -41,7 +40,7 @@ public SubProduct() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningState")] + [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } /// @@ -49,8 +48,9 @@ public SubProduct() { } /// 'Accepted', 'Creating', 'Created', 'Updating', 'Updated', /// 'Deleting', 'Deleted', 'OK' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningStateValues")] - public string ProvisioningStateValues { get; private set; } + [JsonProperty(PropertyName = "properties.provisioningStateValues")] + public string ProvisioningStateValues { get; protected set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/SubResource.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/SubResource.cs index c21a840b7c..b87ef25f8e 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/SubResource.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Lro/Models/SubResource.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsLro.Models using Microsoft.Rest.Azure; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class SubResource : IResource { @@ -35,8 +34,9 @@ public SubResource() { } /// /// Gets sub Resource Id /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id { get; private set; } + [JsonProperty(PropertyName = "id")] + public string Id { get; protected set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/AutoRestPagingTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/AutoRestPagingTestService.cs index 71703f468f..4502036b23 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/AutoRestPagingTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/AutoRestPagingTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -299,7 +299,8 @@ private void Initialize() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/IAutoRestPagingTestService.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/IAutoRestPagingTestService.cs index 1ae5c064d3..e2ee9f7a42 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/IAutoRestPagingTestService.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/IAutoRestPagingTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.Azure.AcceptanceTestsPaging using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Long-running Operation for AutoRest @@ -65,3 +64,4 @@ public partial interface IAutoRestPagingTestService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/IPagingOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/IPagingOperations.cs index 8a9de64345..dc42879d74 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/IPagingOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/IPagingOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsPaging using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -513,3 +512,4 @@ public partial interface IPagingOperations Task>> GetMultiplePagesFailureUriNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/CustomParameterGroup.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/CustomParameterGroup.cs index 2c2017dfc0..3a2203e889 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/CustomParameterGroup.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/CustomParameterGroup.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.Azure.AcceptanceTestsPaging.Models using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Additional parameters for a set of operations, such as: @@ -41,13 +40,13 @@ public CustomParameterGroup(string apiVersion, string tenant) /// /// Gets or sets sets the api version to use. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public string ApiVersion { get; set; } /// /// Gets or sets sets the tenant to use. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public string Tenant { get; set; } /// @@ -69,3 +68,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/OperationResult.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/OperationResult.cs index 6312546635..e93cf4749c 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/OperationResult.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/OperationResult.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsPaging.Models using AcceptanceTestsPaging; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class OperationResult { @@ -38,8 +37,9 @@ public OperationResult() { } /// 'Succeeded', 'Failed', 'canceled', 'Accepted', 'Creating', /// 'Created', 'Updating', 'Updated', 'Deleting', 'Deleted', 'OK' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public string Status { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/Page.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/Page.cs index efa36f119e..9d2eca2195 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/Page.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/Page.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -15,22 +15,21 @@ namespace Fixtures.Azure.AcceptanceTestsPaging.Models using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; - using System.Net.Http; /// /// Defines a page in Azure responses. /// /// Type of the page content items - [Newtonsoft.Json.JsonObject] + [JsonObject] public class Page : IPage { /// /// Gets the link to the next page. /// - [Newtonsoft.Json.JsonProperty("nextLink")] + [JsonProperty("nextLink")] public string NextPageLink { get; private set; } - [Newtonsoft.Json.JsonProperty("values")] + [JsonProperty("values")] private IList Items{ get; set; } /// @@ -52,3 +51,4 @@ IEnumerator IEnumerable.GetEnumerator() } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/Page1.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/Page1.cs index c3e8d75e2a..172406bf42 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/Page1.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/Page1.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -15,22 +15,21 @@ namespace Fixtures.Azure.AcceptanceTestsPaging.Models using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; - using System.Net.Http; /// /// Defines a page in Azure responses. /// /// Type of the page content items - [Newtonsoft.Json.JsonObject] + [JsonObject] public class Page1 : IPage { /// /// Gets the link to the next page. /// - [Newtonsoft.Json.JsonProperty("odata.nextLink")] + [JsonProperty("odata.nextLink")] public string NextPageLink { get; private set; } - [Newtonsoft.Json.JsonProperty("values")] + [JsonProperty("values")] private IList Items{ get; set; } /// @@ -52,3 +51,4 @@ IEnumerator IEnumerable.GetEnumerator() } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesOptions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesOptions.cs index 8763932096..35f63b7470 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesOptions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesOptions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsPaging.Models using AcceptanceTestsPaging; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Additional parameters for the Paging_GetMultiplePages operation. @@ -44,15 +43,16 @@ public PagingGetMultiplePagesOptions() { } /// Gets or sets sets the maximum number of items to return in the /// response. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public int? Maxresults { get; set; } /// /// Gets or sets sets the maximum time that the server can spend /// processing the request, in seconds. The default is 30 seconds. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public int? Timeout { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetNextOptions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetNextOptions.cs index 753254dc49..d033d63d2d 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetNextOptions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetNextOptions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsPaging.Models using AcceptanceTestsPaging; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Additional parameters for the GetMultiplePagesWithOffsetNext operation. @@ -44,15 +43,16 @@ public PagingGetMultiplePagesWithOffsetNextOptions() { } /// Gets or sets sets the maximum number of items to return in the /// response. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public int? Maxresults { get; set; } /// /// Gets or sets sets the maximum time that the server can spend /// processing the request, in seconds. The default is 30 seconds. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public int? Timeout { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetOptions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetOptions.cs index 3f75cb6b88..ad218a0610 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetOptions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetMultiplePagesWithOffsetOptions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsPaging.Models using AcceptanceTestsPaging; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Additional parameters for the Paging_GetMultiplePagesWithOffset @@ -47,20 +46,20 @@ public PagingGetMultiplePagesWithOffsetOptions() { } /// Gets or sets sets the maximum number of items to return in the /// response. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public int? Maxresults { get; set; } /// /// Gets or sets offset of return value /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public int Offset { get; set; } /// /// Gets or sets sets the maximum time that the server can spend /// processing the request, in seconds. The default is 30 seconds. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public int? Timeout { get; set; } /// @@ -75,3 +74,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetOdataMultiplePagesOptions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetOdataMultiplePagesOptions.cs index b3e67d95fd..5b45417428 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetOdataMultiplePagesOptions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/PagingGetOdataMultiplePagesOptions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsPaging.Models using AcceptanceTestsPaging; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Additional parameters for the Paging_GetOdataMultiplePages operation. @@ -44,15 +43,16 @@ public PagingGetOdataMultiplePagesOptions() { } /// Gets or sets sets the maximum number of items to return in the /// response. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public int? Maxresults { get; set; } /// /// Gets or sets sets the maximum time that the server can spend /// processing the request, in seconds. The default is 30 seconds. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public int? Timeout { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/Product.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/Product.cs index 1643768a6b..d5ac7e776a 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/Product.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/Product.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsPaging.Models using AcceptanceTestsPaging; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Product { @@ -31,8 +30,9 @@ public Product() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties")] + [JsonProperty(PropertyName = "properties")] public ProductProperties Properties { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/ProductProperties.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/ProductProperties.cs index 034e4031ca..d1fd740471 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/ProductProperties.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/Models/ProductProperties.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsPaging.Models using AcceptanceTestsPaging; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class ProductProperties { @@ -32,13 +31,14 @@ public ProductProperties() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public int? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/PagingOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/PagingOperations.cs index 72beea41f9..19e13a8802 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/PagingOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/PagingOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class PagingOperations : IServiceOperations internal PagingOperations(AutoRestPagingTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -4011,3 +4011,4 @@ internal PagingOperations(AutoRestPagingTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/PagingOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/PagingOperationsExtensions.cs index e473972929..4fc82a75fe 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/PagingOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Paging/PagingOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsPaging using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -819,3 +818,4 @@ public static IPage GetMultiplePagesFailureUriNext(this IPagingOperatio } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/GroupOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/GroupOperations.cs index d8b6dc95b6..60d57e91a4 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/GroupOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/GroupOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -37,7 +37,7 @@ internal partial class GroupOperations : IServiceOperations internal GroupOperations(MicrosoftAzureTestUrl client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -228,3 +228,4 @@ internal GroupOperations(MicrosoftAzureTestUrl client) } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/GroupOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/GroupOperationsExtensions.cs index 80ad5d5b2f..3defa048fe 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/GroupOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/GroupOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsSubscriptionIdApiVersion using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -57,3 +56,4 @@ public static SampleResourceGroup GetSampleResourceGroup(this IGroupOperations o } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IGroupOperations.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IGroupOperations.cs index c991cf5a2f..bc74f64d64 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IGroupOperations.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IGroupOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.Azure.AcceptanceTestsSubscriptionIdApiVersion using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -48,3 +47,4 @@ public partial interface IGroupOperations Task> GetSampleResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IMicrosoftAzureTestUrl.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IMicrosoftAzureTestUrl.cs index 2d9c7465b7..b5606afea9 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IMicrosoftAzureTestUrl.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/IMicrosoftAzureTestUrl.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.Azure.AcceptanceTestsSubscriptionIdApiVersion using Microsoft.Rest.Azure; using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Some cool documentation. @@ -75,3 +74,4 @@ public partial interface IMicrosoftAzureTestUrl : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/MicrosoftAzureTestUrl.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/MicrosoftAzureTestUrl.cs index 021951e195..49fea5ea80 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/MicrosoftAzureTestUrl.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/MicrosoftAzureTestUrl.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -310,7 +310,8 @@ private void Initialize() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/Error.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/Error.cs index 275f9c303d..76a0ed7ea4 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsSubscriptionIdApiVersion.Models using AcceptanceTestsSubscriptionIdApiVersion; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -32,13 +31,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "code")] + [JsonProperty(PropertyName = "code")] public int? Code { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/ErrorException.cs index 1306c6150e..778deb8630 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.Azure.AcceptanceTestsSubscriptionIdApiVersion.Models using Azure; using AcceptanceTestsSubscriptionIdApiVersion; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -20,7 +19,7 @@ namespace Fixtures.Azure.AcceptanceTestsSubscriptionIdApiVersion.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -66,7 +65,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -101,3 +100,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/SampleResourceGroup.cs b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/SampleResourceGroup.cs index d4b6fd33aa..a7f8619ed2 100644 --- a/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/SampleResourceGroup.cs +++ b/src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/SubscriptionIdApiVersion/Models/SampleResourceGroup.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.Azure.AcceptanceTestsSubscriptionIdApiVersion.Models using AcceptanceTestsSubscriptionIdApiVersion; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class SampleResourceGroup { @@ -35,14 +34,15 @@ public SampleResourceGroup() { } /// /// Gets or sets resource group name 'testgroup101' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// Gets or sets resource group location 'West US' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "location")] + [JsonProperty(PropertyName = "location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Array.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Array.cs index 8f790f5f2d..5224d6e645 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Array.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Array.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -35,7 +35,7 @@ public partial class Array : IServiceOperations, /// public Array(AutoRestSwaggerBATArrayService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -8120,3 +8120,4 @@ public Array(AutoRestSwaggerBATArrayService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/ArrayExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/ArrayExtensions.cs index 213a86d1e5..a4b250d1a9 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/ArrayExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/ArrayExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyArray using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -1910,3 +1909,4 @@ public static void PutDictionaryValid(this IArray operations, IList /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/IArray.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/IArray.cs index 1bce294ce4..65398f1071 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/IArray.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/IArray.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyArray using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -1125,3 +1124,4 @@ public partial interface IArray Task PutDictionaryValidWithHttpMessagesAsync(IList> arrayBody, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/IAutoRestSwaggerBATArrayService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/IAutoRestSwaggerBATArrayService.cs index 975dc331ae..d921514aea 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/IAutoRestSwaggerBATArrayService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/IAutoRestSwaggerBATArrayService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyArray { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest Swagger BAT @@ -40,3 +39,4 @@ public partial interface IAutoRestSwaggerBATArrayService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Error.cs index 8922d54c0d..915bb8ae95 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyArray.Models using AcceptanceTestsBodyArray; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/ErrorException.cs index 3ccfb1049a..b4b9655dd9 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyArray.Models { using AcceptanceTestsBodyArray; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsBodyArray.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Product.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Product.cs index a268f293b2..a8e8ba2251 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Product.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyArray/Models/Product.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyArray.Models using AcceptanceTestsBodyArray; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Product { @@ -31,13 +30,14 @@ public Product() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "integer")] + [JsonProperty(PropertyName = "integer")] public int? Integer { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "string")] + [JsonProperty(PropertyName = "string")] public string StringProperty { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/AutoRestBoolTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/AutoRestBoolTestService.cs index cb7eddef49..72ffd964f3 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/AutoRestBoolTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/AutoRestBoolTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -114,7 +114,7 @@ public AutoRestBoolTestService(System.Uri baseUri, System.Net.Http.HttpClientHan /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/BoolModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/BoolModel.cs index 505314fdb1..878e9a66ec 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/BoolModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/BoolModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class BoolModel : IServiceOperations, IB /// public BoolModel(AutoRestBoolTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -768,3 +768,4 @@ public BoolModel(AutoRestBoolTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/BoolModelExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/BoolModelExtensions.cs index b48f647969..8c80459fcd 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/BoolModelExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/BoolModelExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyBoolean { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -190,3 +189,4 @@ public static void PutFalse(this IBoolModel operations, bool boolBody) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IAutoRestBoolTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IAutoRestBoolTestService.cs index ac4b20989a..6978c11c5a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IAutoRestBoolTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IAutoRestBoolTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyBoolean { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -40,3 +39,4 @@ public partial interface IAutoRestBoolTestService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IBoolModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IBoolModel.cs index 521e87f971..859f05cc3b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IBoolModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/IBoolModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyBoolean using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -117,3 +116,4 @@ public partial interface IBoolModel Task> GetInvalidWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/Error.cs index 213d7a8dd2..cd10e4d729 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyBoolean.Models using AcceptanceTestsBodyBoolean; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/ErrorException.cs index 09344413cc..eeb5c8146d 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyBoolean/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyBoolean.Models { using AcceptanceTestsBodyBoolean; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsBodyBoolean.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/AutoRestSwaggerBATByteService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/AutoRestSwaggerBATByteService.cs index 9270e24650..1a9d3d9c16 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/AutoRestSwaggerBATByteService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/AutoRestSwaggerBATByteService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -114,7 +114,7 @@ public AutoRestSwaggerBATByteService(System.Uri baseUri, System.Net.Http.HttpCli /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/ByteModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/ByteModel.cs index 44bf865bfc..2696a22674 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/ByteModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/ByteModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class ByteModel : IServiceOperations public ByteModel(AutoRestSwaggerBATByteService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -669,3 +669,4 @@ public ByteModel(AutoRestSwaggerBATByteService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/ByteModelExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/ByteModelExtensions.cs index e8c1f8bb96..f4d7de3dbf 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/ByteModelExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/ByteModelExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyByte { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -163,3 +162,4 @@ public static byte[] GetInvalid(this IByteModel operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/IAutoRestSwaggerBATByteService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/IAutoRestSwaggerBATByteService.cs index 1fee07444e..98f2c18df1 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/IAutoRestSwaggerBATByteService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/IAutoRestSwaggerBATByteService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyByte { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest Swagger BAT @@ -40,3 +39,4 @@ public partial interface IAutoRestSwaggerBATByteService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/IByteModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/IByteModel.cs index d1298839a7..2989fa000c 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/IByteModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/IByteModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyByte using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -107,3 +106,4 @@ public partial interface IByteModel Task> GetInvalidWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/Error.cs index 0254c14309..fdc2d3a499 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyByte.Models using AcceptanceTestsBodyByte; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/ErrorException.cs index f7b3083372..b0e14a1871 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyByte/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyByte.Models { using AcceptanceTestsBodyByte; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsBodyByte.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Array.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Array.cs index fbf5352006..0b6439d7e4 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Array.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Array.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class Array : IServiceOperations, IAr /// public Array(AutoRestComplexTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -660,3 +660,4 @@ public Array(AutoRestComplexTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/ArrayExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/ArrayExtensions.cs index 17b598ca29..bfcbec458b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/ArrayExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/ArrayExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -166,3 +165,4 @@ public static ArrayWrapper GetNotProvided(this IArray operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/AutoRestComplexTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/AutoRestComplexTestService.cs index d1f8f4eb85..2619ccff9a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/AutoRestComplexTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/AutoRestComplexTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -154,7 +154,7 @@ public AutoRestComplexTestService(System.Uri baseUri, System.Net.Http.HttpClient /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -199,6 +199,7 @@ private void Initialize() SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("fishtype")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("fishtype")); CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/BasicOperations.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/BasicOperations.cs index 6f8e12cbf6..96ccb9e04f 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/BasicOperations.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/BasicOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class BasicOperations : IServiceOperations public BasicOperations(AutoRestComplexTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -804,3 +804,4 @@ public BasicOperations(AutoRestComplexTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/BasicOperationsExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/BasicOperationsExtensions.cs index 8078381310..7c983f9647 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/BasicOperationsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/BasicOperationsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -193,3 +192,4 @@ public static Basic GetNotProvided(this IBasicOperations operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Dictionary.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Dictionary.cs index 185bd8b1b9..7b45c385d9 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Dictionary.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Dictionary.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class Dictionary : IServiceOperations /// public Dictionary(AutoRestComplexTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -785,3 +785,4 @@ public Dictionary(AutoRestComplexTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/DictionaryExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/DictionaryExtensions.cs index 51035f35d2..7c00dcfcd1 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/DictionaryExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/DictionaryExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -194,3 +193,4 @@ public static DictionaryWrapper GetNotProvided(this IDictionary operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IArray.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IArray.cs index 2cb155bd13..5e7d4fe389 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IArray.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IArray.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -102,3 +101,4 @@ public partial interface IArray Task> GetNotProvidedWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IAutoRestComplexTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IAutoRestComplexTestService.cs index 4f1eac9314..9a9f9f7d5f 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IAutoRestComplexTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IAutoRestComplexTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -80,3 +79,4 @@ public partial interface IAutoRestComplexTestService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IBasicOperations.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IBasicOperations.cs index 717a1f1244..c46c066846 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IBasicOperations.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IBasicOperations.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -123,3 +122,4 @@ public partial interface IBasicOperations Task> GetNotProvidedWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IDictionary.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IDictionary.cs index 3a95bb971d..33e4fa06af 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IDictionary.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IDictionary.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -118,3 +117,4 @@ public partial interface IDictionary Task> GetNotProvidedWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IInheritance.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IInheritance.cs index faf077678b..321cc4dde9 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IInheritance.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IInheritance.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -61,3 +60,4 @@ public partial interface IInheritance Task PutValidWithHttpMessagesAsync(Siamese complexBody, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphicrecursive.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphicrecursive.cs index 834816d118..3c8a9942de 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphicrecursive.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphicrecursive.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -112,3 +111,4 @@ public partial interface IPolymorphicrecursive Task PutValidWithHttpMessagesAsync(Fish complexBody, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphism.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphism.cs index a617c07bca..6b7a87c935 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphism.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPolymorphism.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -138,3 +137,4 @@ public partial interface IPolymorphism Task PutValidMissingRequiredWithHttpMessagesAsync(Fish complexBody, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPrimitive.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPrimitive.cs index bdcd1e70df..302459cb54 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPrimitive.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IPrimitive.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -403,3 +402,4 @@ public partial interface IPrimitive Task PutByteWithHttpMessagesAsync(byte[] field = default(byte[]), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IReadonlyproperty.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IReadonlyproperty.cs index 3c4373f030..4dc3bff590 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IReadonlyproperty.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/IReadonlyproperty.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -54,3 +53,4 @@ public partial interface IReadonlyproperty Task PutValidWithHttpMessagesAsync(int? size = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Inheritance.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Inheritance.cs index 11c26c9f5d..bb20da05e3 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Inheritance.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Inheritance.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class Inheritance : IServiceOperations public Inheritance(AutoRestComplexTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -296,3 +296,4 @@ public Inheritance(AutoRestComplexTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/InheritanceExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/InheritanceExtensions.cs index 8fdbae09d8..1b4e496960 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/InheritanceExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/InheritanceExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -83,3 +82,4 @@ public static void PutValid(this IInheritance operations, Siamese complexBody) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ArrayWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ArrayWrapper.cs index ca9eefaf1a..2d90cfc785 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ArrayWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ArrayWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class ArrayWrapper { @@ -32,8 +31,9 @@ public ArrayWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "array")] + [JsonProperty(PropertyName = "array")] public IList Array { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Basic.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Basic.cs index 68b677001b..27d4ac6004 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Basic.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Basic.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using AcceptanceTestsBodyComplex; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Basic { @@ -40,7 +39,7 @@ public Basic() { } /// /// Gets or sets basic Id /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public int? Id { get; set; } /// @@ -49,15 +48,16 @@ public Basic() { } /// does not fit on a single line /// and a line break. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// Gets or sets possible values include: 'cyan', 'Magenta', 'YELLOW', /// 'blacK' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "color")] + [JsonProperty(PropertyName = "color")] public string Color { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/BooleanWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/BooleanWrapper.cs index 51a65a7460..eae94032a5 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/BooleanWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/BooleanWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using AcceptanceTestsBodyComplex; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class BooleanWrapper { @@ -31,13 +30,14 @@ public BooleanWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field_true")] + [JsonProperty(PropertyName = "field_true")] public bool? FieldTrue { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field_false")] + [JsonProperty(PropertyName = "field_false")] public bool? FieldFalse { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ByteWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ByteWrapper.cs index bb86c1c9e4..45b8be69ae 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ByteWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ByteWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using AcceptanceTestsBodyComplex; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class ByteWrapper { @@ -30,8 +29,9 @@ public ByteWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field")] + [JsonProperty(PropertyName = "field")] public byte[] Field { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/CMYKColors.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/CMYKColors.cs index 0985f334e4..0254fdb85c 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/CMYKColors.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/CMYKColors.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models { using AcceptanceTestsBodyComplex; - using System.Net.Http; /// /// Defines values for CMYKColors. @@ -22,3 +21,4 @@ public static class CMYKColors public const string BlacK = "blacK"; } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cat.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cat.cs index d8edda72e9..5d01755ba1 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cat.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cat.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Cat : Pet { @@ -34,13 +33,14 @@ public Cat() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "color")] + [JsonProperty(PropertyName = "color")] public string Color { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "hates")] + [JsonProperty(PropertyName = "hates")] public IList Hates { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cookiecuttershark.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cookiecuttershark.cs index dbb9e0589f..accf2ea178 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cookiecuttershark.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Cookiecuttershark.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; [Newtonsoft.Json.JsonObject("cookiecuttershark")] public partial class Cookiecuttershark : Shark @@ -43,3 +42,4 @@ public override void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DateWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DateWrapper.cs index 2ea5ed7437..b99417715b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DateWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DateWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class DateWrapper { @@ -33,15 +32,16 @@ public DateWrapper() { } /// /// - [Newtonsoft.Json.JsonConverter(typeof(DateJsonConverter))] - [Newtonsoft.Json.JsonProperty(PropertyName = "field")] + [JsonConverter(typeof(DateJsonConverter))] + [JsonProperty(PropertyName = "field")] public System.DateTime? Field { get; set; } /// /// - [Newtonsoft.Json.JsonConverter(typeof(DateJsonConverter))] - [Newtonsoft.Json.JsonProperty(PropertyName = "leap")] + [JsonConverter(typeof(DateJsonConverter))] + [JsonProperty(PropertyName = "leap")] public System.DateTime? Leap { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DatetimeWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DatetimeWrapper.cs index b6a06db617..5cb394436e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DatetimeWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DatetimeWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using AcceptanceTestsBodyComplex; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class DatetimeWrapper { @@ -31,13 +30,14 @@ public DatetimeWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field")] + [JsonProperty(PropertyName = "field")] public System.DateTime? Field { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "now")] + [JsonProperty(PropertyName = "now")] public System.DateTime? Now { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Datetimerfc1123Wrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Datetimerfc1123Wrapper.cs index e26f1d5100..80c96c2787 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Datetimerfc1123Wrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Datetimerfc1123Wrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Datetimerfc1123Wrapper { @@ -33,15 +32,16 @@ public Datetimerfc1123Wrapper() { } /// /// - [Newtonsoft.Json.JsonConverter(typeof(DateTimeRfc1123JsonConverter))] - [Newtonsoft.Json.JsonProperty(PropertyName = "field")] + [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] + [JsonProperty(PropertyName = "field")] public System.DateTime? Field { get; set; } /// /// - [Newtonsoft.Json.JsonConverter(typeof(DateTimeRfc1123JsonConverter))] - [Newtonsoft.Json.JsonProperty(PropertyName = "now")] + [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] + [JsonProperty(PropertyName = "now")] public System.DateTime? Now { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DictionaryWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DictionaryWrapper.cs index 3425ca8be0..4d567546e7 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DictionaryWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DictionaryWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class DictionaryWrapper { @@ -32,8 +31,9 @@ public DictionaryWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "defaultProgram")] + [JsonProperty(PropertyName = "defaultProgram")] public IDictionary DefaultProgram { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Dog.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Dog.cs index a1ecd501a1..ee855c9af6 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Dog.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Dog.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using AcceptanceTestsBodyComplex; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Dog : Pet { @@ -31,8 +30,9 @@ public Dog() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "food")] + [JsonProperty(PropertyName = "food")] public string Food { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DoubleWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DoubleWrapper.cs index 87bac548f2..6f2764c773 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DoubleWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DoubleWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using AcceptanceTestsBodyComplex; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class DoubleWrapper { @@ -31,13 +30,14 @@ public DoubleWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field1")] + [JsonProperty(PropertyName = "field1")] public double? Field1 { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose")] + [JsonProperty(PropertyName = "field_56_zeros_after_the_dot_and_negative_zero_before_dot_and_this_is_a_long_field_name_on_purpose")] public double? Field56ZerosAfterTheDotAndNegativeZeroBeforeDotAndThisIsALongFieldNameOnPurpose { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DurationWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DurationWrapper.cs index 15b2d47d1a..7371481313 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DurationWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/DurationWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using AcceptanceTestsBodyComplex; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class DurationWrapper { @@ -30,8 +29,9 @@ public DurationWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field")] + [JsonProperty(PropertyName = "field")] public System.TimeSpan? Field { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Error.cs index 6eb5175f53..e1d25cd491 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using AcceptanceTestsBodyComplex; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ErrorException.cs index d6dd8075fc..7f22026ddf 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models { using AcceptanceTestsBodyComplex; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Fish.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Fish.cs index f027d4a5ad..eed5a6161c 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Fish.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Fish.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Fish { @@ -34,17 +33,17 @@ public Fish() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "species")] + [JsonProperty(PropertyName = "species")] public string Species { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "length")] + [JsonProperty(PropertyName = "length")] public double Length { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "siblings")] + [JsonProperty(PropertyName = "siblings")] public IList Siblings { get; set; } /// @@ -68,3 +67,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/FloatWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/FloatWrapper.cs index 27e9d5bbb9..6810849d42 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/FloatWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/FloatWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using AcceptanceTestsBodyComplex; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class FloatWrapper { @@ -31,13 +30,14 @@ public FloatWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field1")] + [JsonProperty(PropertyName = "field1")] public double? Field1 { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field2")] + [JsonProperty(PropertyName = "field2")] public double? Field2 { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Goblinshark.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Goblinshark.cs index 5553cba61a..3def98b855 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Goblinshark.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Goblinshark.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; [Newtonsoft.Json.JsonObject("goblin")] public partial class Goblinshark : Shark @@ -34,7 +33,7 @@ public Goblinshark() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "jawsize")] + [JsonProperty(PropertyName = "jawsize")] public int? Jawsize { get; set; } /// @@ -49,3 +48,4 @@ public override void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/IntWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/IntWrapper.cs index e89c4e2573..b97921893a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/IntWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/IntWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using AcceptanceTestsBodyComplex; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class IntWrapper { @@ -31,13 +30,14 @@ public IntWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field1")] + [JsonProperty(PropertyName = "field1")] public int? Field1 { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field2")] + [JsonProperty(PropertyName = "field2")] public int? Field2 { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/LongWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/LongWrapper.cs index bf3921e18a..567ec21ff9 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/LongWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/LongWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using AcceptanceTestsBodyComplex; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class LongWrapper { @@ -31,13 +30,14 @@ public LongWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field1")] + [JsonProperty(PropertyName = "field1")] public long? Field1 { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field2")] + [JsonProperty(PropertyName = "field2")] public long? Field2 { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Pet.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Pet.cs index 59c02d611f..40d065f26c 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Pet.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Pet.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using AcceptanceTestsBodyComplex; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Pet { @@ -31,13 +30,14 @@ public Pet() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public int? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ReadonlyObj.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ReadonlyObj.cs index 8fe5632011..ebc0f1e3f7 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ReadonlyObj.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/ReadonlyObj.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using AcceptanceTestsBodyComplex; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class ReadonlyObj { @@ -31,13 +30,14 @@ public ReadonlyObj() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id { get; private set; } + [JsonProperty(PropertyName = "id")] + public string Id { get; protected set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "size")] + [JsonProperty(PropertyName = "size")] public int? Size { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Salmon.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Salmon.cs index 5c55c3907b..9db7b5d64b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Salmon.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Salmon.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; [Newtonsoft.Json.JsonObject("salmon")] public partial class Salmon : Fish @@ -35,12 +34,12 @@ public Salmon() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "location")] + [JsonProperty(PropertyName = "location")] public string Location { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "iswild")] + [JsonProperty(PropertyName = "iswild")] public bool? Iswild { get; set; } /// @@ -55,3 +54,4 @@ public override void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Sawshark.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Sawshark.cs index d333f507cc..d097d33500 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Sawshark.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Sawshark.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; [Newtonsoft.Json.JsonObject("sawshark")] public partial class Sawshark : Shark @@ -34,7 +33,7 @@ public Sawshark() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "picture")] + [JsonProperty(PropertyName = "picture")] public byte[] Picture { get; set; } /// @@ -49,3 +48,4 @@ public override void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Shark.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Shark.cs index a3cde757fc..26387bbff3 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Shark.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Shark.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; [Newtonsoft.Json.JsonObject("shark")] public partial class Shark : Fish @@ -35,12 +34,12 @@ public Shark() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "age")] + [JsonProperty(PropertyName = "age")] public int? Age { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "birthday")] + [JsonProperty(PropertyName = "birthday")] public System.DateTime Birthday { get; set; } /// @@ -55,3 +54,4 @@ public override void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Siamese.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Siamese.cs index b995471a00..956604b55e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Siamese.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/Siamese.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Siamese : Cat { @@ -33,8 +32,9 @@ public Siamese() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "breed")] + [JsonProperty(PropertyName = "breed")] public string Breed { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/StringWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/StringWrapper.cs index 55ae321b39..6aec9ff3d5 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/StringWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Models/StringWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex.Models using AcceptanceTestsBodyComplex; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class StringWrapper { @@ -32,18 +31,19 @@ public StringWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field")] + [JsonProperty(PropertyName = "field")] public string Field { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "empty")] + [JsonProperty(PropertyName = "empty")] public string Empty { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "null")] + [JsonProperty(PropertyName = "null")] public string NullProperty { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphicrecursive.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphicrecursive.cs index 223d91fe0a..065d5759d5 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphicrecursive.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphicrecursive.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class Polymorphicrecursive : IServiceOperations public Polymorphicrecursive(AutoRestComplexTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -350,3 +350,4 @@ public Polymorphicrecursive(AutoRestComplexTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/PolymorphicrecursiveExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/PolymorphicrecursiveExtensions.cs index 28be76822f..787b06c8e8 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/PolymorphicrecursiveExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/PolymorphicrecursiveExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -183,3 +182,4 @@ public static void PutValid(this IPolymorphicrecursive operations, Fish complexB } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphism.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphism.cs index d2a86b058d..acb9d47a5f 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphism.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Polymorphism.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class Polymorphism : IServiceOperations public Polymorphism(AutoRestComplexTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -482,3 +482,4 @@ public Polymorphism(AutoRestComplexTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/PolymorphismExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/PolymorphismExtensions.cs index 6b2db1e7ba..b9bea0b8b6 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/PolymorphismExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/PolymorphismExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -228,3 +227,4 @@ public static void PutValidMissingRequired(this IPolymorphism operations, Fish c } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Primitive.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Primitive.cs index 9ec2a96ac6..4e8a0dbe2c 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Primitive.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Primitive.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class Primitive : IServiceOperations, /// public Primitive(AutoRestComplexTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -2750,3 +2750,4 @@ public Primitive(AutoRestComplexTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/PrimitiveExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/PrimitiveExtensions.cs index ecdc1389aa..2dce36cb24 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/PrimitiveExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/PrimitiveExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -669,3 +668,4 @@ public static ByteWrapper GetByte(this IPrimitive operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Readonlyproperty.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Readonlyproperty.cs index 39995f3981..79700526d5 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Readonlyproperty.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/Readonlyproperty.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class Readonlyproperty : IServiceOperations public Readonlyproperty(AutoRestComplexTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -291,3 +291,4 @@ public Readonlyproperty(AutoRestComplexTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/ReadonlypropertyExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/ReadonlypropertyExtensions.cs index 3bcb1c8547..bea599bf30 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/ReadonlypropertyExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyComplex/ReadonlypropertyExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyComplex { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -77,3 +76,4 @@ public static ReadonlyObj GetValid(this IReadonlyproperty operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/AutoRestDateTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/AutoRestDateTestService.cs index 76f30d57cb..fced23b6ba 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/AutoRestDateTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/AutoRestDateTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -114,7 +114,7 @@ public AutoRestDateTestService(System.Uri baseUri, System.Net.Http.HttpClientHan /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/Date.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/Date.cs index f4e6cb4c2c..81a92c4da3 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/Date.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/Date.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -35,7 +35,7 @@ public partial class Date : IServiceOperations, IDate /// public Date(AutoRestDateTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -1019,3 +1019,4 @@ public Date(AutoRestDateTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/DateExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/DateExtensions.cs index 8957f946ae..53a2af8197 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/DateExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/DateExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyDate { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -246,3 +245,4 @@ public static void PutMinDate(this IDate operations, System.DateTime dateBody) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/IAutoRestDateTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/IAutoRestDateTestService.cs index 2d8b148ff6..7c51b73957 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/IAutoRestDateTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/IAutoRestDateTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyDate { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -40,3 +39,4 @@ public partial interface IAutoRestDateTestService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/IDate.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/IDate.cs index 5074254f47..420c549855 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/IDate.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/IDate.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyDate using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -149,3 +148,4 @@ public partial interface IDate Task> GetMinDateWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/Error.cs index 2471674fbb..d7c2facada 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyDate.Models using AcceptanceTestsBodyDate; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/ErrorException.cs index bb2bb22ccd..affe487d97 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDate/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyDate.Models { using AcceptanceTestsBodyDate; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsBodyDate.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/AutoRestDateTimeTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/AutoRestDateTimeTestService.cs index c10e71b33f..d37717bd2b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/AutoRestDateTimeTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/AutoRestDateTimeTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -114,7 +114,7 @@ public AutoRestDateTimeTestService(System.Uri baseUri, System.Net.Http.HttpClien /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Datetime.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Datetime.cs index ce10b9feee..6ab84eef93 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Datetime.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Datetime.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class Datetime : IServiceOperations, /// public Datetime(AutoRestDateTimeTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -2339,3 +2339,4 @@ public Datetime(AutoRestDateTimeTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/DatetimeExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/DatetimeExtensions.cs index 4394f70b7e..8e24e67552 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/DatetimeExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/DatetimeExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyDateTime { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -570,3 +569,4 @@ public static void PutLocalNegativeOffsetMinDateTime(this IDatetime operations, } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IAutoRestDateTimeTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IAutoRestDateTimeTestService.cs index de52d6fc09..4813bd5c34 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IAutoRestDateTimeTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IAutoRestDateTimeTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyDateTime { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -40,3 +39,4 @@ public partial interface IAutoRestDateTimeTestService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IDatetime.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IDatetime.cs index d9b62e8cfb..308385de71 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IDatetime.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/IDatetime.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyDateTime using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -327,3 +326,4 @@ public partial interface IDatetime Task> GetLocalNegativeOffsetMinDateTimeWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/Error.cs index ab574436de..cb7072266c 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyDateTime.Models using AcceptanceTestsBodyDateTime; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/ErrorException.cs index af664bb777..f3cb65f0fa 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTime/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyDateTime.Models { using AcceptanceTestsBodyDateTime; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsBodyDateTime.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/AutoRestRFC1123DateTimeTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/AutoRestRFC1123DateTimeTestService.cs index ea9d2fe7a3..91ba538cc7 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/AutoRestRFC1123DateTimeTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/AutoRestRFC1123DateTimeTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -114,7 +114,7 @@ public AutoRestRFC1123DateTimeTestService(System.Uri baseUri, System.Net.Http.Ht /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Datetimerfc1123.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Datetimerfc1123.cs index 8681b19ea6..cce82d6331 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Datetimerfc1123.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Datetimerfc1123.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -35,7 +35,7 @@ public partial class Datetimerfc1123 : IServiceOperations public Datetimerfc1123(AutoRestRFC1123DateTimeTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -1144,3 +1144,4 @@ public Datetimerfc1123(AutoRestRFC1123DateTimeTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Datetimerfc1123Extensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Datetimerfc1123Extensions.cs index e372d57899..773675b8f2 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Datetimerfc1123Extensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Datetimerfc1123Extensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyDateTimeRfc1123 { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -274,3 +273,4 @@ public static void PutUtcMinDateTime(this IDatetimerfc1123 operations, System.Da } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IAutoRestRFC1123DateTimeTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IAutoRestRFC1123DateTimeTestService.cs index f4ccec8a0e..2a11382f83 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IAutoRestRFC1123DateTimeTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IAutoRestRFC1123DateTimeTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyDateTimeRfc1123 { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -40,3 +39,4 @@ public partial interface IAutoRestRFC1123DateTimeTestService : System.IDisposabl } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IDatetimerfc1123.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IDatetimerfc1123.cs index 9a88b02706..58e57a0d7b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IDatetimerfc1123.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/IDatetimerfc1123.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyDateTimeRfc1123 using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -165,3 +164,4 @@ public partial interface IDatetimerfc1123 Task> GetUtcMinDateTimeWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/Error.cs index 5e7232809b..01bf8dabde 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyDateTimeRfc1123.Models using AcceptanceTestsBodyDateTimeRfc1123; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/ErrorException.cs index 7892ce3944..d50196a316 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDateTimeRfc1123/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyDateTimeRfc1123.Models { using AcceptanceTestsBodyDateTimeRfc1123; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsBodyDateTimeRfc1123.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/AutoRestSwaggerBATdictionaryService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/AutoRestSwaggerBATdictionaryService.cs index 4a63e52caa..bf7fdc7b24 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/AutoRestSwaggerBATdictionaryService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/AutoRestSwaggerBATdictionaryService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -114,7 +114,7 @@ public AutoRestSwaggerBATdictionaryService(System.Uri baseUri, System.Net.Http.H /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Dictionary.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Dictionary.cs index e689487204..255c032bba 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Dictionary.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Dictionary.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -35,7 +35,7 @@ public partial class Dictionary : IServiceOperations public Dictionary(AutoRestSwaggerBATdictionaryService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -8130,3 +8130,4 @@ public Dictionary(AutoRestSwaggerBATdictionaryService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/DictionaryExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/DictionaryExtensions.cs index 0c20ab5587..5603e37a2d 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/DictionaryExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/DictionaryExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyDictionary using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -1919,3 +1918,4 @@ public static void PutDictionaryValid(this IDictionary operations, IDictionary /// Test Infrastructure for AutoRest Swagger BAT @@ -40,3 +39,4 @@ public partial interface IAutoRestSwaggerBATdictionaryService : System.IDisposab } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/IDictionary.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/IDictionary.cs index 4ff9062c92..b5d9079890 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/IDictionary.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/IDictionary.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyDictionary using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -1133,3 +1132,4 @@ public partial interface IDictionary Task PutDictionaryValidWithHttpMessagesAsync(IDictionary> arrayBody, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Error.cs index 8599d6acde..27b21556bf 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyDictionary.Models using AcceptanceTestsBodyDictionary; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/ErrorException.cs index 5065426a8d..4c2e622b3a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyDictionary.Models { using AcceptanceTestsBodyDictionary; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsBodyDictionary.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Widget.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Widget.cs index e6c92730ad..bf93fe359a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Widget.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDictionary/Models/Widget.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyDictionary.Models using AcceptanceTestsBodyDictionary; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Widget { @@ -31,13 +30,14 @@ public Widget() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "integer")] + [JsonProperty(PropertyName = "integer")] public int? Integer { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "string")] + [JsonProperty(PropertyName = "string")] public string StringProperty { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/AutoRestDurationTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/AutoRestDurationTestService.cs index f45b933c68..2f5681fe1a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/AutoRestDurationTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/AutoRestDurationTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -114,7 +114,7 @@ public AutoRestDurationTestService(System.Uri baseUri, System.Net.Http.HttpClien /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Duration.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Duration.cs index 59b10e9a78..e719212f70 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Duration.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Duration.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class Duration : IServiceOperations, /// public Duration(AutoRestDurationTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -533,3 +533,4 @@ public Duration(AutoRestDurationTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/DurationExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/DurationExtensions.cs index 371a1b19cd..4d0645d0f5 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/DurationExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/DurationExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyDuration { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -133,3 +132,4 @@ public static void PutPositiveDuration(this IDuration operations, System.TimeSpa } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IAutoRestDurationTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IAutoRestDurationTestService.cs index 9c1993d579..2e7e93713a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IAutoRestDurationTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IAutoRestDurationTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyDuration { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -40,3 +39,4 @@ public partial interface IAutoRestDurationTestService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IDuration.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IDuration.cs index bb411394c0..10565db656 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IDuration.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/IDuration.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyDuration using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -86,3 +85,4 @@ public partial interface IDuration Task> GetInvalidWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/Error.cs index 6a78dda9bc..ce6528e0e6 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyDuration.Models using AcceptanceTestsBodyDuration; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/ErrorException.cs index 85aceace51..501cecd113 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyDuration/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyDuration.Models { using AcceptanceTestsBodyDuration; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsBodyDuration.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/AutoRestSwaggerBATFileService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/AutoRestSwaggerBATFileService.cs index 0c4ff1ca79..9d4116bf34 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/AutoRestSwaggerBATFileService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/AutoRestSwaggerBATFileService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -114,7 +114,7 @@ public AutoRestSwaggerBATFileService(System.Uri baseUri, System.Net.Http.HttpCli /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/Files.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/Files.cs index 0f9d543875..93a477aaf9 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/Files.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/Files.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -35,7 +35,7 @@ public partial class Files : IServiceOperations, /// public Files(AutoRestSwaggerBATFileService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -385,3 +385,4 @@ public Files(AutoRestSwaggerBATFileService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/FilesExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/FilesExtensions.cs index 77a6b95b85..4e77e23ffd 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/FilesExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/FilesExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyFile { using Models; using System.IO; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -102,3 +101,4 @@ public static Stream GetEmptyFile(this IFiles operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/IAutoRestSwaggerBATFileService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/IAutoRestSwaggerBATFileService.cs index 3fcabb5aae..c94c0e5f68 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/IAutoRestSwaggerBATFileService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/IAutoRestSwaggerBATFileService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyFile { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest Swagger BAT @@ -40,3 +39,4 @@ public partial interface IAutoRestSwaggerBATFileService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/IFiles.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/IFiles.cs index 86975efd5b..c8020f5335 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/IFiles.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/IFiles.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsBodyFile using System.Collections; using System.Collections.Generic; using System.IO; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -72,3 +71,4 @@ public partial interface IFiles Task> GetEmptyFileWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/Error.cs index f772fac96f..ca605bc7cd 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyFile.Models using AcceptanceTestsBodyFile; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/ErrorException.cs index 3cfb755172..582a865f1c 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFile/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyFile.Models { using AcceptanceTestsBodyFile; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsBodyFile.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/AutoRestSwaggerBATFormDataService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/AutoRestSwaggerBATFormDataService.cs index ad7fc4e03e..0b071e3320 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/AutoRestSwaggerBATFormDataService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/AutoRestSwaggerBATFormDataService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -114,7 +114,7 @@ public AutoRestSwaggerBATFormDataService(System.Uri baseUri, System.Net.Http.Htt /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Formdata.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Formdata.cs index 1c4889eea9..8e93dff7d3 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Formdata.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Formdata.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -36,7 +36,7 @@ public partial class Formdata : IServiceOperations public Formdata(AutoRestSwaggerBATFormDataService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -131,8 +131,8 @@ public Formdata(AutoRestSwaggerBATFormDataService client) System.Net.Http.Headers.ContentDispositionHeaderValue _contentDispositionHeaderValue = new System.Net.Http.Headers.ContentDispositionHeaderValue("form-data"); _contentDispositionHeaderValue.Name = "fileContent"; _contentDispositionHeaderValue.FileName = _fileContentAsFileStream.Name; - _fileContent.Headers.ContentDisposition = _contentDispositionHeaderValue; - } + _fileContent.Headers.ContentDisposition = _contentDispositionHeaderValue; + } _multiPartContent.Add(_fileContent, "fileContent"); } if (fileName != null) @@ -328,3 +328,4 @@ public Formdata(AutoRestSwaggerBATFormDataService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/FormdataExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/FormdataExtensions.cs index 136c62d234..bd735b6fb8 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/FormdataExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/FormdataExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyFormData { using Models; using System.IO; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -93,3 +92,4 @@ public static Stream UploadFileViaBody(this IFormdata operations, Stream fileCon } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IAutoRestSwaggerBATFormDataService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IAutoRestSwaggerBATFormDataService.cs index fe347e6cf1..473ebb6e93 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IAutoRestSwaggerBATFormDataService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IAutoRestSwaggerBATFormDataService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyFormData { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest Swagger BAT @@ -40,3 +39,4 @@ public partial interface IAutoRestSwaggerBATFormDataService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IFormdata.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IFormdata.cs index cf59040c05..8db774c1ec 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IFormdata.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/IFormdata.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsBodyFormData using System.Collections; using System.Collections.Generic; using System.IO; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -72,3 +71,4 @@ public partial interface IFormdata Task> UploadFileViaBodyWithHttpMessagesAsync(Stream fileContent, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/Error.cs index e50b1b6afc..0074aeec3d 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyFormData.Models using AcceptanceTestsBodyFormData; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/ErrorException.cs index 4914fde7cc..e708d4f78a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyFormData/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyFormData.Models { using AcceptanceTestsBodyFormData; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsBodyFormData.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/AutoRestIntegerTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/AutoRestIntegerTestService.cs index 2379a331d5..439d97d4af 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/AutoRestIntegerTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/AutoRestIntegerTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -114,7 +114,7 @@ public AutoRestIntegerTestService(System.Uri baseUri, System.Net.Http.HttpClient /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IAutoRestIntegerTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IAutoRestIntegerTestService.cs index ed746a5594..f06655c1fa 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IAutoRestIntegerTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IAutoRestIntegerTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyInteger { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -40,3 +39,4 @@ public partial interface IAutoRestIntegerTestService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IIntModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IIntModel.cs index d008cc56a4..2897495107 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IIntModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IIntModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyInteger using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -242,3 +241,4 @@ public partial interface IIntModel Task> GetNullUnixTimeWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IntModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IntModel.cs index ac964181bf..555292c0de 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IntModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IntModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -35,7 +35,7 @@ public partial class IntModel : IServiceOperations, /// public IntModel(AutoRestIntegerTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -1724,3 +1724,4 @@ public IntModel(AutoRestIntegerTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IntModelExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IntModelExtensions.cs index 050ad23600..f9db988e35 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IntModelExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/IntModelExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyInteger { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -417,3 +416,4 @@ public static void PutUnixTimeDate(this IIntModel operations, System.DateTime in } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/Error.cs index eeb52e49a5..11dfa21dc5 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyInteger.Models using AcceptanceTestsBodyInteger; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/ErrorException.cs index 582548d76c..f129cd3c28 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyInteger/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyInteger.Models { using AcceptanceTestsBodyInteger; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsBodyInteger.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/AutoRestNumberTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/AutoRestNumberTestService.cs index c509d8a465..242e79051b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/AutoRestNumberTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/AutoRestNumberTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -114,7 +114,7 @@ public AutoRestNumberTestService(System.Uri baseUri, System.Net.Http.HttpClientH /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/IAutoRestNumberTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/IAutoRestNumberTestService.cs index 048753822c..662541eb0b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/IAutoRestNumberTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/IAutoRestNumberTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyNumber { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -40,3 +39,4 @@ public partial interface IAutoRestNumberTestService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/INumber.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/INumber.cs index b2acc4d23a..92eda6727c 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/INumber.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/INumber.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyNumber using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -397,3 +396,4 @@ public partial interface INumber Task> GetSmallDecimalWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/Error.cs index 8acadafcb2..2f9f8a75a3 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyNumber.Models using AcceptanceTestsBodyNumber; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/ErrorException.cs index 159a2bce1c..ac8033bc77 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyNumber.Models { using AcceptanceTestsBodyNumber; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsBodyNumber.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Number.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Number.cs index 19fe50e340..66da18407e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Number.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/Number.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class Number : IServiceOperations, INu /// public Number(AutoRestNumberTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -2898,3 +2898,4 @@ public Number(AutoRestNumberTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/NumberExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/NumberExtensions.cs index 6ed5e4cc67..c0770486d5 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/NumberExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyNumber/NumberExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyNumber { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -702,3 +701,4 @@ public static void PutSmallDecimal(this INumber operations, decimal numberBody) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/AutoRestSwaggerBATService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/AutoRestSwaggerBATService.cs index aaa0df4184..ca853b87f2 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/AutoRestSwaggerBATService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/AutoRestSwaggerBATService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -119,7 +119,7 @@ public AutoRestSwaggerBATService(System.Uri baseUri, System.Net.Http.HttpClientH /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -155,6 +155,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/EnumModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/EnumModel.cs index 21772ab3c1..3b62b2fb75 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/EnumModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/EnumModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class EnumModel : IServiceOperations, /// public EnumModel(AutoRestSwaggerBATService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -768,3 +768,4 @@ public EnumModel(AutoRestSwaggerBATService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/EnumModelExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/EnumModelExtensions.cs index cb1ef6ba22..254b771d35 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/EnumModelExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/EnumModelExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyString { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -205,3 +204,4 @@ public static RefColorConstant GetReferencedConstant(this IEnumModel operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/IAutoRestSwaggerBATService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/IAutoRestSwaggerBATService.cs index 3d24398fed..9196dd1823 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/IAutoRestSwaggerBATService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/IAutoRestSwaggerBATService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyString { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest Swagger BAT @@ -45,3 +44,4 @@ public partial interface IAutoRestSwaggerBATService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/IEnumModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/IEnumModel.cs index 49d29752c9..4640a87f80 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/IEnumModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/IEnumModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyString using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -123,3 +122,4 @@ public partial interface IEnumModel Task PutReferencedConstantWithHttpMessagesAsync(string field1 = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/IStringModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/IStringModel.cs index 8b43e9758d..3c8dc05d97 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/IStringModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/IStringModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsBodyString using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -255,3 +254,4 @@ public partial interface IStringModel Task> GetNullBase64UrlEncodedWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Colors.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Colors.cs index 3936f44f84..c5436941f4 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Colors.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Colors.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,21 +11,21 @@ namespace Fixtures.AcceptanceTestsBodyString.Models using AcceptanceTestsBodyString; using Newtonsoft.Json; using Newtonsoft.Json.Converters; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; /// /// Defines values for Colors. /// - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public enum Colors { - [System.Runtime.Serialization.EnumMember(Value = "red color")] + [EnumMember(Value = "red color")] Redcolor, - [System.Runtime.Serialization.EnumMember(Value = "green-color")] + [EnumMember(Value = "green-color")] GreenColor, - [System.Runtime.Serialization.EnumMember(Value = "blue_color")] + [EnumMember(Value = "blue_color")] BlueColor } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Error.cs index cccf2f49e8..8e13dd4165 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyString.Models using AcceptanceTestsBodyString; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/ErrorException.cs index f781d41a99..36d9a6a060 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsBodyString.Models { using AcceptanceTestsBodyString; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsBodyString.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/RefColorConstant.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/RefColorConstant.cs index 2ee0d8e374..ac4e6e0109 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/RefColorConstant.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/Models/RefColorConstant.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsBodyString.Models using AcceptanceTestsBodyString; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class RefColorConstant { @@ -39,14 +38,15 @@ static RefColorConstant() /// /// Gets or sets sample string. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "field1")] + [JsonProperty(PropertyName = "field1")] public string Field1 { get; set; } /// /// Referenced Color Constant Description. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "ColorConstant")] + [JsonProperty(PropertyName = "ColorConstant")] public static string ColorConstant { get; private set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/StringModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/StringModel.cs index a398452ae4..6fcddd70d1 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/StringModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/StringModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -35,7 +35,7 @@ public partial class StringModel : IServiceOperations /// public StringModel(AutoRestSwaggerBATService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -1654,3 +1654,4 @@ public StringModel(AutoRestSwaggerBATService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/StringModelExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/StringModelExtensions.cs index 473fd4c243..a671fb5a93 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/StringModelExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/BodyString/StringModelExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsBodyString { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -413,3 +412,4 @@ public static byte[] GetNullBase64UrlEncoded(this IStringModel operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/BoolModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/BoolModel.cs index ea991367f2..25938a7426 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/BoolModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/BoolModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class BoolModel : IServiceOperations, IBoolMode /// public BoolModel(CompositeBoolInt client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -768,3 +768,4 @@ public BoolModel(CompositeBoolInt client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/BoolModelExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/BoolModelExtensions.cs index a510cca5c6..a8af5d8ae2 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/BoolModelExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/BoolModelExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsCompositeBoolIntClient { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -190,3 +189,4 @@ public static void PutFalse(this IBoolModel operations, bool boolBody) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/CompositeBoolInt.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/CompositeBoolInt.cs index 8147a39558..656ef1bae7 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/CompositeBoolInt.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/CompositeBoolInt.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -120,7 +120,7 @@ public CompositeBoolInt(System.Uri baseUri, System.Net.Http.HttpClientHandler ro /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -156,6 +156,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IBoolModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IBoolModel.cs index 973d999670..e71a621234 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IBoolModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IBoolModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsCompositeBoolIntClient using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -117,3 +116,4 @@ public partial interface IBoolModel Task> GetInvalidWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/ICompositeBoolInt.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/ICompositeBoolInt.cs index ef6abefd5e..50f2c7fb05 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/ICompositeBoolInt.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/ICompositeBoolInt.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsCompositeBoolIntClient { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Composite Swagger Client that represents merging body boolean and body @@ -46,3 +45,4 @@ public partial interface ICompositeBoolInt : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IIntModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IIntModel.cs index 4a9c9d950d..8aeeeff5f4 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IIntModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IIntModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsCompositeBoolIntClient using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -242,3 +241,4 @@ public partial interface IIntModel Task> GetNullUnixTimeWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IntModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IntModel.cs index 484050c1b5..29f0d73982 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IntModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IntModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -35,7 +35,7 @@ public partial class IntModel : IServiceOperations, IIntModel /// public IntModel(CompositeBoolInt client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -1724,3 +1724,4 @@ public IntModel(CompositeBoolInt client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IntModelExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IntModelExtensions.cs index a477738bc7..55fe7a66bc 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IntModelExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/IntModelExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsCompositeBoolIntClient { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -417,3 +416,4 @@ public static void PutUnixTimeDate(this IIntModel operations, System.DateTime in } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/Error.cs index 3ea2709566..311f624317 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsCompositeBoolIntClient.Models using AcceptanceTestsCompositeBoolIntClient; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/ErrorException.cs index def56aacd2..af9eb337c7 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CompositeBoolIntClient/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsCompositeBoolIntClient.Models { using AcceptanceTestsCompositeBoolIntClient; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsCompositeBoolIntClient.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs index a50aa61369..85f7853d91 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/AutoRestParameterizedHostTestClient.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -74,7 +74,7 @@ public AutoRestParameterizedHostTestClient(System.Net.Http.HttpClientHandler roo /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -110,6 +110,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs index eb1f5bf7f9..26838a9ac3 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IAutoRestParameterizedHostTestClient.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsCustomBaseUri { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -45,3 +44,4 @@ public partial interface IAutoRestParameterizedHostTestClient : System.IDisposab } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IPaths.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IPaths.cs index 3e64a268d8..e0d2088f2f 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IPaths.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/IPaths.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsCustomBaseUri using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -42,3 +41,4 @@ public partial interface IPaths Task GetEmptyWithHttpMessagesAsync(string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs index bf662b9be1..0d820019bc 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsCustomBaseUri.Models using AcceptanceTestsCustomBaseUri; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs index bf279d5852..3f4940475b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsCustomBaseUri.Models { using AcceptanceTestsCustomBaseUri; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsCustomBaseUri.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Paths.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Paths.cs index b2c576c66d..d6c6d761a8 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Paths.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/Paths.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class Paths : IServiceOperations public Paths(AutoRestParameterizedHostTestClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -169,3 +169,4 @@ public Paths(AutoRestParameterizedHostTestClient client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsExtensions.cs index 1d9b38adff..a549390c3a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUri/PathsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsCustomBaseUri { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -51,3 +50,4 @@ public static void GetEmpty(this IPaths operations, string accountName) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/AutoRestParameterizedCustomHostTestClient.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/AutoRestParameterizedCustomHostTestClient.cs index 7283740915..43ca90dff5 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/AutoRestParameterizedCustomHostTestClient.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/AutoRestParameterizedCustomHostTestClient.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -80,7 +80,7 @@ public AutoRestParameterizedCustomHostTestClient(System.Net.Http.HttpClientHandl /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -116,6 +116,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IAutoRestParameterizedCustomHostTestClient.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IAutoRestParameterizedCustomHostTestClient.cs index 07c2eeb48f..31c559bd1e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IAutoRestParameterizedCustomHostTestClient.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IAutoRestParameterizedCustomHostTestClient.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsCustomBaseUriMoreOptions { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -50,3 +49,4 @@ public partial interface IAutoRestParameterizedCustomHostTestClient : System.IDi } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IPaths.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IPaths.cs index cca8eab6dc..dbd34788f9 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IPaths.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/IPaths.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsCustomBaseUriMoreOptions using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -51,3 +50,4 @@ public partial interface IPaths Task GetEmptyWithHttpMessagesAsync(string vault, string secret, string keyName, string keyVersion = "v1", Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/Error.cs index 17c383313d..32bb61fd02 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsCustomBaseUriMoreOptions.Models using AcceptanceTestsCustomBaseUriMoreOptions; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/ErrorException.cs index 6554edaeb3..f3a1e22942 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsCustomBaseUriMoreOptions.Models { using AcceptanceTestsCustomBaseUriMoreOptions; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsCustomBaseUriMoreOptions.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Paths.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Paths.cs index 6202e3c1bb..7cd25f5fbe 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Paths.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/Paths.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class Paths : IServiceOperations public Paths(AutoRestParameterizedCustomHostTestClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -205,3 +205,4 @@ public Paths(AutoRestParameterizedCustomHostTestClient client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/PathsExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/PathsExtensions.cs index d0055d5295..13c8972d22 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/PathsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/CustomBaseUriMoreOptions/PathsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsCustomBaseUriMoreOptions { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -69,3 +68,4 @@ public static void GetEmpty(this IPaths operations, string vault, string secret, } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/AutoRestSwaggerBATHeaderService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/AutoRestSwaggerBATHeaderService.cs index e4a9b45f12..6301571899 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/AutoRestSwaggerBATHeaderService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/AutoRestSwaggerBATHeaderService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -114,7 +114,7 @@ public AutoRestSwaggerBATHeaderService(System.Uri baseUri, System.Net.Http.HttpC /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Header.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Header.cs index 1c32e8b6d1..75a81f1672 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Header.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Header.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -35,7 +35,7 @@ public partial class Header : IServiceOperations public Header(AutoRestSwaggerBATHeaderService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -3892,3 +3892,4 @@ public Header(AutoRestSwaggerBATHeaderService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/HeaderExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/HeaderExtensions.cs index 6c81a3d3af..04802722f1 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/HeaderExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/HeaderExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsHeader { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -1069,3 +1068,4 @@ public static void CustomRequestId(this IHeader operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/IAutoRestSwaggerBATHeaderService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/IAutoRestSwaggerBATHeaderService.cs index e41338f3e9..91f5ff773f 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/IAutoRestSwaggerBATHeaderService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/IAutoRestSwaggerBATHeaderService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsHeader { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -40,3 +39,4 @@ public partial interface IAutoRestSwaggerBATHeaderService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/IHeader.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/IHeader.cs index d6b0ac6ea8..756688e050 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/IHeader.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/IHeader.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsHeader using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -630,3 +629,4 @@ public partial interface IHeader Task CustomRequestIdWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/Error.cs index 9c223b160f..596263d2ef 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models using AcceptanceTestsHeader; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/ErrorException.cs index 01a955ecc7..8b17f7723c 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models { using AcceptanceTestsHeader; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsHeader.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/GreyscaleColors.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/GreyscaleColors.cs index ead9b7e751..749dafc8cc 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/GreyscaleColors.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/GreyscaleColors.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,21 +11,21 @@ namespace Fixtures.AcceptanceTestsHeader.Models using AcceptanceTestsHeader; using Newtonsoft.Json; using Newtonsoft.Json.Converters; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; /// /// Defines values for GreyscaleColors. /// - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public enum GreyscaleColors { - [System.Runtime.Serialization.EnumMember(Value = "White")] + [EnumMember(Value = "White")] White, - [System.Runtime.Serialization.EnumMember(Value = "black")] + [EnumMember(Value = "black")] Black, - [System.Runtime.Serialization.EnumMember(Value = "GREY")] + [EnumMember(Value = "GREY")] GREY } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseBoolHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseBoolHeaders.cs index 477271fbcf..81d6c90fbd 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseBoolHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseBoolHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models using AcceptanceTestsHeader; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for responseBool operation. @@ -36,8 +35,9 @@ public HeaderResponseBoolHeaders() { } /// /// Gets or sets response with header value "value": true or false /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public bool? Value { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseByteHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseByteHeaders.cs index 67fa818148..01f446493a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseByteHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseByteHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models using AcceptanceTestsHeader; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for responseByte operation. @@ -36,8 +35,9 @@ public HeaderResponseByteHeaders() { } /// /// Gets or sets response with header values "啊齄丂狛狜隣郎隣兀﨩" /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public byte[] Value { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDateHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDateHeaders.cs index 6258fd812a..a7fa5706a2 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDateHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDateHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for responseDate operation. @@ -39,9 +38,10 @@ public HeaderResponseDateHeaders() { } /// Gets or sets response with header values "2010-01-01" or /// "0001-01-01" /// - [Newtonsoft.Json.JsonConverter(typeof(DateJsonConverter))] - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonConverter(typeof(DateJsonConverter))] + [JsonProperty(PropertyName = "value")] public System.DateTime? Value { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeHeaders.cs index cb3f880541..910535ccaf 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models using AcceptanceTestsHeader; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for responseDatetime operation. @@ -39,8 +38,9 @@ public HeaderResponseDatetimeHeaders() { } /// Gets or sets response with header values "2010-01-01T12:34:56Z" or /// "0001-01-01T00:00:00Z" /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public System.DateTime? Value { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeRfc1123Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeRfc1123Headers.cs index b24d1a2e9b..4b8dbbc682 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeRfc1123Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDatetimeRfc1123Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for responseDatetimeRfc1123 operation. @@ -41,9 +40,10 @@ public HeaderResponseDatetimeRfc1123Headers() { } /// Gets or sets response with header values "Wed, 01 Jan 2010 12:34:56 /// GMT" or "Mon, 01 Jan 0001 00:00:00 GMT" /// - [Newtonsoft.Json.JsonConverter(typeof(DateTimeRfc1123JsonConverter))] - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonConverter(typeof(DateTimeRfc1123JsonConverter))] + [JsonProperty(PropertyName = "value")] public System.DateTime? Value { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDoubleHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDoubleHeaders.cs index 3305a0b8c7..09fc975e15 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDoubleHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDoubleHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models using AcceptanceTestsHeader; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for responseDouble operation. @@ -38,8 +37,9 @@ public HeaderResponseDoubleHeaders() { } /// /// Gets or sets response with header value "value": 7e120 or -3.0 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public double? Value { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDurationHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDurationHeaders.cs index 2a151636ed..3e2be5bd1a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDurationHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseDurationHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models using AcceptanceTestsHeader; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for responseDuration operation. @@ -38,8 +37,9 @@ public HeaderResponseDurationHeaders() { } /// /// Gets or sets response with header values "P123DT22H14M12.011S" /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public System.TimeSpan? Value { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseEnumHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseEnumHeaders.cs index 02d12a11e1..bb0266de56 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseEnumHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseEnumHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models using AcceptanceTestsHeader; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for responseEnum operation. @@ -37,8 +36,9 @@ public HeaderResponseEnumHeaders() { } /// Gets or sets response with header values "GREY" or null. Possible /// values include: 'White', 'black', 'GREY' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public GreyscaleColors? Value { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseExistingKeyHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseExistingKeyHeaders.cs index a7164291ee..be140a0b72 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseExistingKeyHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseExistingKeyHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models using AcceptanceTestsHeader; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for responseExistingKey operation. @@ -38,8 +37,9 @@ public HeaderResponseExistingKeyHeaders() { } /// /// Gets or sets response with header value "User-Agent": "overwrite" /// - [Newtonsoft.Json.JsonProperty(PropertyName = "User-Agent")] + [JsonProperty(PropertyName = "User-Agent")] public string UserAgent { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseFloatHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseFloatHeaders.cs index 3200b63b0e..91b8ea7119 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseFloatHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseFloatHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models using AcceptanceTestsHeader; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for responseFloat operation. @@ -36,8 +35,9 @@ public HeaderResponseFloatHeaders() { } /// /// Gets or sets response with header value "value": 0.07 or -3.0 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public double? Value { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseIntegerHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseIntegerHeaders.cs index f7c27366dc..e8bb18deaa 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseIntegerHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseIntegerHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models using AcceptanceTestsHeader; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for responseInteger operation. @@ -38,8 +37,9 @@ public HeaderResponseIntegerHeaders() { } /// /// Gets or sets response with header value "value": 1 or -2 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public int? Value { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseLongHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseLongHeaders.cs index ea39ab12dc..89cf6e6c69 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseLongHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseLongHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models using AcceptanceTestsHeader; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for responseLong operation. @@ -36,8 +35,9 @@ public HeaderResponseLongHeaders() { } /// /// Gets or sets response with header value "value": 105 or -2 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public long? Value { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseProtectedKeyHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseProtectedKeyHeaders.cs index c98b300c58..906c4f6a88 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseProtectedKeyHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseProtectedKeyHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models using AcceptanceTestsHeader; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for responseProtectedKey operation. @@ -38,8 +37,9 @@ public HeaderResponseProtectedKeyHeaders() { } /// /// Gets or sets response with header value "Content-Type": "text/html" /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Content-Type")] + [JsonProperty(PropertyName = "Content-Type")] public string ContentType { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseStringHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseStringHeaders.cs index a7a52f4137..3bf7dd7a6e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseStringHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Header/Models/HeaderResponseStringHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHeader.Models using AcceptanceTestsHeader; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for responseString operation. @@ -39,8 +38,9 @@ public HeaderResponseStringHeaders() { } /// Gets or sets response with header values "The quick brown fox jumps /// over the lazy dog" or null or "" /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public string Value { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/AutoRestHttpInfrastructureTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/AutoRestHttpInfrastructureTestService.cs index 49c5f8e014..76f281c86f 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/AutoRestHttpInfrastructureTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/AutoRestHttpInfrastructureTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -144,7 +144,7 @@ public AutoRestHttpInfrastructureTestService(System.Uri baseUri, System.Net.Http /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -185,6 +185,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpClientFailure.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpClientFailure.cs index 6167fc5fe3..1b7211b0ab 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpClientFailure.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpClientFailure.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class HttpClientFailure : IServiceOperations public HttpClientFailure(AutoRestHttpInfrastructureTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -2892,3 +2892,4 @@ public HttpClientFailure(AutoRestHttpInfrastructureTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpClientFailureExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpClientFailureExtensions.cs index 2d476ab08b..baa223258e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpClientFailureExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpClientFailureExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsHttp { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -742,3 +741,4 @@ public static Error Head429(this IHttpClientFailure operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpFailure.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpFailure.cs index b1588462d8..89764257cc 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpFailure.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpFailure.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class HttpFailure : IServiceOperations public HttpFailure(AutoRestHttpInfrastructureTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -409,3 +409,4 @@ public HttpFailure(AutoRestHttpInfrastructureTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpFailureExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpFailureExtensions.cs index 602ca264de..101f163c6f 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpFailureExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpFailureExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsHttp { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -104,3 +103,4 @@ public static partial class HttpFailureExtensions } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRedirects.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRedirects.cs index 7b8ffdd0b4..6f2c115b2e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRedirects.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRedirects.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class HttpRedirects : IServiceOperations public HttpRedirects(AutoRestHttpInfrastructureTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -1900,3 +1900,4 @@ public HttpRedirects(AutoRestHttpInfrastructureTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRedirectsExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRedirectsExtensions.cs index 9ad8df6e6b..42d4141516 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRedirectsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRedirectsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -496,3 +495,4 @@ public static HttpRedirectsGet307Headers Get307(this IHttpRedirects operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRetry.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRetry.cs index d780e75940..264e94716f 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRetry.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRetry.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class HttpRetry : IServiceOperations public HttpRetry(AutoRestHttpInfrastructureTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -940,3 +940,4 @@ public HttpRetry(AutoRestHttpInfrastructureTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRetryExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRetryExtensions.cs index 271a2907fa..11c845cc5f 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRetryExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpRetryExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsHttp { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -256,3 +255,4 @@ public static void Get502(this IHttpRetry operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpServerFailure.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpServerFailure.cs index 866e479517..2dea0790b7 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpServerFailure.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpServerFailure.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class HttpServerFailure : IServiceOperations public HttpServerFailure(AutoRestHttpInfrastructureTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -540,3 +540,4 @@ public HttpServerFailure(AutoRestHttpInfrastructureTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpServerFailureExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpServerFailureExtensions.cs index 78b606f805..360018d75c 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpServerFailureExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpServerFailureExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsHttp { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -144,3 +143,4 @@ public static Error Get501(this IHttpServerFailure operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpSuccess.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpSuccess.cs index 1618f41408..c94194cc32 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpSuccess.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpSuccess.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class HttpSuccess : IServiceOperations public HttpSuccess(AutoRestHttpInfrastructureTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -2081,3 +2081,4 @@ public HttpSuccess(AutoRestHttpInfrastructureTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpSuccessExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpSuccessExtensions.cs index 00cc565144..f113a2024c 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpSuccessExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/HttpSuccessExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsHttp { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -557,3 +556,4 @@ public static void Head404(this IHttpSuccess operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IAutoRestHttpInfrastructureTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IAutoRestHttpInfrastructureTestService.cs index 5603ac1959..eaf9ab8592 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IAutoRestHttpInfrastructureTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IAutoRestHttpInfrastructureTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsHttp { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -70,3 +69,4 @@ public partial interface IAutoRestHttpInfrastructureTestService : System.IDispos } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpClientFailure.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpClientFailure.cs index d7065b74a3..b9e0bab0aa 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpClientFailure.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpClientFailure.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsHttp using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -384,3 +383,4 @@ public partial interface IHttpClientFailure Task> Head429WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpFailure.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpFailure.cs index 93ebd709e1..b116c7d3bc 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpFailure.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpFailure.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsHttp using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -71,3 +70,4 @@ public partial interface IHttpFailure Task> GetNoModelEmptyWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRedirects.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRedirects.cs index 5fdca08dc2..c8442c31fe 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRedirects.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRedirects.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsHttp using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -248,3 +247,4 @@ public partial interface IHttpRedirects Task> Delete307WithHttpMessagesAsync(bool? booleanValue = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRetry.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRetry.cs index 22842904c6..52d482e17b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRetry.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpRetry.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsHttp using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -145,3 +144,4 @@ public partial interface IHttpRetry Task Patch504WithHttpMessagesAsync(bool? booleanValue = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpServerFailure.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpServerFailure.cs index a2d18ea356..e14b26712b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpServerFailure.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpServerFailure.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsHttp using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -85,3 +84,4 @@ public partial interface IHttpServerFailure Task> Delete505WithHttpMessagesAsync(bool? booleanValue = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpSuccess.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpSuccess.cs index 765842e910..3a0edd2b2b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpSuccess.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IHttpSuccess.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsHttp using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -302,3 +301,4 @@ public partial interface IHttpSuccess Task Head404WithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IMultipleResponses.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IMultipleResponses.cs index 34c009ff1e..a39529da0d 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IMultipleResponses.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/IMultipleResponses.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsHttp using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -533,3 +532,4 @@ public partial interface IMultipleResponses Task> Get200ModelA202ValidWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/A.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/A.cs index 3c2c2489ee..43cd077444 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/A.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/A.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class A { @@ -30,8 +29,9 @@ public A() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "statusCode")] + [JsonProperty(PropertyName = "statusCode")] public string StatusCode { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/B.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/B.cs index 57f48f5a0d..ddcd3ca9b6 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/B.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/B.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class B : A { @@ -31,8 +30,9 @@ public B() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "textStatusCode")] + [JsonProperty(PropertyName = "textStatusCode")] public string TextStatusCode { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/C.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/C.cs index 9135950618..2a29a1340e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/C.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/C.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class C { @@ -30,8 +29,9 @@ public C() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "httpCode")] + [JsonProperty(PropertyName = "httpCode")] public string HttpCode { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/D.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/D.cs index f824263aee..4427011df1 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/D.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/D.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class D { @@ -30,8 +29,9 @@ public D() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "httpStatusCode")] + [JsonProperty(PropertyName = "httpStatusCode")] public string HttpStatusCode { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/Error.cs index 8e1a4e231c..822a47dbe5 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/ErrorException.cs index 223d3e05af..646cb5cea7 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models { using AcceptanceTestsHttp; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsHttp.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsDelete307Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsDelete307Headers.cs index 3e01ead774..624f365f61 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsDelete307Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsDelete307Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for delete307 operation. @@ -39,8 +38,9 @@ public HttpRedirectsDelete307Headers() { } /// Gets or sets the redirect location for this request. Possible /// values include: '/http/success/delete/200' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet300Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet300Headers.cs index 002fe2bb0d..4d64f0f557 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet300Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet300Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for get300 operation. @@ -37,8 +36,9 @@ public HttpRedirectsGet300Headers() { } /// Gets or sets the redirect location for this request. Possible /// values include: '/http/success/get/200' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet301Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet301Headers.cs index a2d799f64d..b612a169ad 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet301Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet301Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for get301 operation. @@ -37,8 +36,9 @@ public HttpRedirectsGet301Headers() { } /// Gets or sets the redirect location for this request. Possible /// values include: '/http/success/get/200' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet302Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet302Headers.cs index b8da5f203b..b234baab72 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet302Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet302Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for get302 operation. @@ -37,8 +36,9 @@ public HttpRedirectsGet302Headers() { } /// Gets or sets the redirect location for this request. Possible /// values include: '/http/success/get/200' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet307Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet307Headers.cs index 51455a0aba..4c4aa8ab33 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet307Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsGet307Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for get307 operation. @@ -37,8 +36,9 @@ public HttpRedirectsGet307Headers() { } /// Gets or sets the redirect location for this request. Possible /// values include: '/http/success/get/200' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead300Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead300Headers.cs index fc026ae8e7..f3f9536c8a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead300Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead300Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for head300 operation. @@ -39,8 +38,9 @@ public HttpRedirectsHead300Headers() { } /// Gets or sets the redirect location for this request. Possible /// values include: '/http/success/head/200' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead301Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead301Headers.cs index e1a6ab6a34..5f8970e8e8 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead301Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead301Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for head301 operation. @@ -39,8 +38,9 @@ public HttpRedirectsHead301Headers() { } /// Gets or sets the redirect location for this request. Possible /// values include: '/http/success/head/200' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead302Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead302Headers.cs index 11b92e34fc..dbe18f98bd 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead302Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead302Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for head302 operation. @@ -39,8 +38,9 @@ public HttpRedirectsHead302Headers() { } /// Gets or sets the redirect location for this request. Possible /// values include: '/http/success/head/200' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead307Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead307Headers.cs index 296b54e7ff..e2869215ce 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead307Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsHead307Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for head307 operation. @@ -39,8 +38,9 @@ public HttpRedirectsHead307Headers() { } /// Gets or sets the redirect location for this request. Possible /// values include: '/http/success/head/200' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch302Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch302Headers.cs index 208e947e90..cd0bde26f2 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch302Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch302Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for patch302 operation. @@ -39,8 +38,9 @@ public HttpRedirectsPatch302Headers() { } /// Gets or sets the redirect location for this request. Possible /// values include: '/http/failure/500' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch307Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch307Headers.cs index 156ef4974b..abc75168d0 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch307Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPatch307Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for patch307 operation. @@ -39,8 +38,9 @@ public HttpRedirectsPatch307Headers() { } /// Gets or sets the redirect location for this request. Possible /// values include: '/http/success/patch/200' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost303Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost303Headers.cs index afb2c0f136..3c9c3b6dfb 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost303Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost303Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for post303 operation. @@ -39,8 +38,9 @@ public HttpRedirectsPost303Headers() { } /// Gets or sets the redirect location for this request. Possible /// values include: '/http/success/get/200' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost307Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost307Headers.cs index 47daa2e798..998cf927d3 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost307Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPost307Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for post307 operation. @@ -39,8 +38,9 @@ public HttpRedirectsPost307Headers() { } /// Gets or sets the redirect location for this request. Possible /// values include: '/http/success/post/200' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut301Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut301Headers.cs index 022690522e..77b35e0726 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut301Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut301Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for put301 operation. @@ -37,8 +36,9 @@ public HttpRedirectsPut301Headers() { } /// Gets or sets the redirect location for this request. Possible /// values include: '/http/failure/500' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut307Headers.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut307Headers.cs index 726b8c22e7..f42068e910 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut307Headers.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/HttpRedirectsPut307Headers.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models using AcceptanceTestsHttp; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for put307 operation. @@ -37,8 +36,9 @@ public HttpRedirectsPut307Headers() { } /// Gets or sets the redirect location for this request. Possible /// values include: '/http/success/put/200' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "Location")] + [JsonProperty(PropertyName = "Location")] public string Location { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/MyException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/MyException.cs index 139ad028f8..ebf3fb1f0e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/MyException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/Models/MyException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsHttp.Models { using AcceptanceTestsHttp; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsHttp.Models /// /// Exception thrown for an invalid response with A information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class MyException : RestException @@ -65,7 +64,7 @@ public MyException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the MyException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/MultipleResponses.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/MultipleResponses.cs index de1956130c..f1a3d84ada 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/MultipleResponses.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/MultipleResponses.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class MultipleResponses : IServiceOperations public MultipleResponses(AutoRestHttpInfrastructureTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -4139,3 +4139,4 @@ public MultipleResponses(AutoRestHttpInfrastructureTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/MultipleResponsesExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/MultipleResponsesExtensions.cs index ceec7ac4a0..54cef03993 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/MultipleResponsesExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Http/MultipleResponsesExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsHttp { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -953,3 +952,4 @@ public static A Get200ModelA202Valid(this IMultipleResponses operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/AutoRestResourceFlatteningTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/AutoRestResourceFlatteningTestService.cs index a79eaa6cab..6310783311 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/AutoRestResourceFlatteningTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/AutoRestResourceFlatteningTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -111,7 +111,7 @@ public AutoRestResourceFlatteningTestService(System.Uri baseUri, System.Net.Http /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -147,7 +147,7 @@ private void Initialize() }; CustomInitialize(); DeserializationSettings.Converters.Add(new TransformationJsonConverter()); - } + } /// /// Put External Resource as an Array /// @@ -1378,3 +1378,4 @@ private void Initialize() } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/AutoRestResourceFlatteningTestServiceExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/AutoRestResourceFlatteningTestServiceExtensions.cs index 6cd361087a..6df7df80fe 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/AutoRestResourceFlatteningTestServiceExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/AutoRestResourceFlatteningTestServiceExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsModelFlattening using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -347,3 +346,4 @@ public static SimpleProduct PutSimpleProductWithGrouping(this IAutoRestResourceF } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/IAutoRestResourceFlatteningTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/IAutoRestResourceFlatteningTestService.cs index c7437adff7..ac1af608ef 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/IAutoRestResourceFlatteningTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/IAutoRestResourceFlatteningTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsModelFlattening using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -172,3 +171,4 @@ public partial interface IAutoRestResourceFlatteningTestService : System.IDispos } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/BaseProduct.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/BaseProduct.cs index fa9e54ff4a..26ddc19d2a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/BaseProduct.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/BaseProduct.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsModelFlattening.Models using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// The product documentation. @@ -44,13 +43,13 @@ public BaseProduct() { } /// Francisco will have a different product_id than uberX in Los /// Angeles. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "base_product_id")] + [JsonProperty(PropertyName = "base_product_id")] public string ProductId { get; set; } /// /// Gets or sets description of product. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "base_product_description")] + [JsonProperty(PropertyName = "base_product_description")] public string Description { get; set; } /// @@ -68,3 +67,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Error.cs index 9f163ae033..8d0f79f109 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsModelFlattening.Models using AcceptanceTestsModelFlattening; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -32,18 +31,19 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "parentError")] + [JsonProperty(PropertyName = "parentError")] public Error ParentError { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ErrorException.cs index c95c68aecd..e8ff2cfcf7 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsModelFlattening.Models { using AcceptanceTestsModelFlattening; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsModelFlattening.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenParameterGroup.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenParameterGroup.cs index e043a4a567..f36497df60 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenParameterGroup.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenParameterGroup.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsModelFlattening.Models using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Additional parameters for the PutSimpleProductWithGrouping operation. @@ -52,7 +51,7 @@ public FlattenParameterGroup() { } /// /// Gets or sets product name with value 'groupproduct' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public string Name { get; set; } /// @@ -61,31 +60,31 @@ public FlattenParameterGroup() { } /// Francisco will have a different product_id than uberX in Los /// Angeles. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public string ProductId { get; set; } /// /// Gets or sets description of product. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public string Description { get; set; } /// /// Gets or sets display name of product. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public string MaxProductDisplayName { get; set; } /// /// Gets or sets generic URL value. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public string GenericValue { get; set; } /// /// Gets or sets URL value. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "")] + [JsonProperty(PropertyName = "")] public string Odatavalue { get; set; } /// @@ -111,3 +110,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenedProduct.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenedProduct.cs index ee8b154114..c31f35f9a1 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenedProduct.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/FlattenedProduct.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -15,7 +15,6 @@ namespace Fixtures.AcceptanceTestsModelFlattening.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; /// /// Flattened product. @@ -51,12 +50,12 @@ public FlattenedProduct() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.p\\.name")] + [JsonProperty(PropertyName = "properties.p\\.name")] public string Pname { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.type")] + [JsonProperty(PropertyName = "properties.type")] public string FlattenedProductType { get; set; } /// @@ -64,13 +63,14 @@ public FlattenedProduct() { } /// 'Accepted', 'Creating', 'Created', 'Updating', 'Updated', /// 'Deleting', 'Deleted', 'OK' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningStateValues")] - public string ProvisioningStateValues { get; private set; } + [JsonProperty(PropertyName = "properties.provisioningStateValues")] + public string ProvisioningStateValues { get; protected set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties.provisioningState")] + [JsonProperty(PropertyName = "properties.provisioningState")] public string ProvisioningState { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/GenericUrl.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/GenericUrl.cs index c2186b95b5..2fd9a3e6da 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/GenericUrl.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/GenericUrl.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsModelFlattening.Models using AcceptanceTestsModelFlattening; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// The Generic URL. @@ -35,8 +34,9 @@ public GenericUrl() { } /// /// Gets or sets generic URL value. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "generic_value")] + [JsonProperty(PropertyName = "generic_value")] public string GenericValue { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Resource.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Resource.cs index 904533d214..081f6bb608 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Resource.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/Resource.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsModelFlattening.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Resource { @@ -41,31 +40,32 @@ public Resource() { } /// /// Gets resource Id /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id { get; private set; } + [JsonProperty(PropertyName = "id")] + public string Id { get; protected set; } /// /// Gets resource Type /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] - public string Type { get; private set; } + [JsonProperty(PropertyName = "type")] + public string Type { get; protected set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] + [JsonProperty(PropertyName = "tags")] public IDictionary Tags { get; set; } /// /// Gets or sets resource Location /// - [Newtonsoft.Json.JsonProperty(PropertyName = "location")] + [JsonProperty(PropertyName = "location")] public string Location { get; set; } /// /// Gets resource Name /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name { get; private set; } + [JsonProperty(PropertyName = "name")] + public string Name { get; protected set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ResourceCollection.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ResourceCollection.cs index f8cba4920f..cd560884a5 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ResourceCollection.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/ResourceCollection.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsModelFlattening.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class ResourceCollection { @@ -34,18 +33,19 @@ public ResourceCollection() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "productresource")] + [JsonProperty(PropertyName = "productresource")] public FlattenedProduct Productresource { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "arrayofresources")] + [JsonProperty(PropertyName = "arrayofresources")] public IList Arrayofresources { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "dictionaryofresources")] + [JsonProperty(PropertyName = "dictionaryofresources")] public IDictionary Dictionaryofresources { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/SimpleProduct.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/SimpleProduct.cs index 4f1e261c91..56ff0fc27e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/SimpleProduct.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ModelFlattening/Models/SimpleProduct.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsModelFlattening.Models using Microsoft.Rest.Serialization; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// The product documentation. @@ -56,25 +55,25 @@ static SimpleProduct() /// /// Gets or sets display name of product. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "details.max_product_display_name")] + [JsonProperty(PropertyName = "details.max_product_display_name")] public string MaxProductDisplayName { get; set; } /// /// Gets or sets generic URL value. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "details.max_product_image.generic_value")] + [JsonProperty(PropertyName = "details.max_product_image.generic_value")] public string GenericValue { get; set; } /// /// Gets or sets URL value. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "details.max_product_image.@odata\\.value")] + [JsonProperty(PropertyName = "details.max_product_image.@odata\\.value")] public string Odatavalue { get; set; } /// /// Capacity of product. For example, 4 people. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "details.max_product_capacity")] + [JsonProperty(PropertyName = "details.max_product_capacity")] public static string Capacity { get; private set; } /// @@ -93,3 +92,4 @@ public override void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AutoRestParameterFlattening.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AutoRestParameterFlattening.cs index 9880587fac..cc434c0d66 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AutoRestParameterFlattening.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AutoRestParameterFlattening.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -114,7 +114,7 @@ public AutoRestParameterFlattening(System.Uri baseUri, System.Net.Http.HttpClien /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AvailabilitySets.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AvailabilitySets.cs index f6f80e2be6..01eaa934ca 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AvailabilitySets.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AvailabilitySets.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -33,7 +33,7 @@ public partial class AvailabilitySets : IServiceOperations public AvailabilitySets(AutoRestParameterFlattening client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -191,3 +191,4 @@ public AvailabilitySets(AutoRestParameterFlattening client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AvailabilitySetsExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AvailabilitySetsExtensions.cs index d47706525b..b32fdb7d7e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AvailabilitySetsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/AvailabilitySetsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsParameterFlattening using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -65,3 +64,4 @@ public static void Update(this IAvailabilitySets operations, string resourceGrou } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAutoRestParameterFlattening.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAutoRestParameterFlattening.cs index 94e223ac95..1d5af99b8e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAutoRestParameterFlattening.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAutoRestParameterFlattening.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsParameterFlattening { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Resource Flattening for AutoRest @@ -40,3 +39,4 @@ public partial interface IAutoRestParameterFlattening : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAvailabilitySets.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAvailabilitySets.cs index 04aec940e7..820197ca9d 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAvailabilitySets.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/IAvailabilitySets.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsParameterFlattening using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -48,3 +47,4 @@ public partial interface IAvailabilitySets Task UpdateWithHttpMessagesAsync(string resourceGroupName, string avset, IDictionary tags, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/Models/AvailabilitySetUpdateParameters.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/Models/AvailabilitySetUpdateParameters.cs index 1e920539b0..7076b09183 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/Models/AvailabilitySetUpdateParameters.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/ParameterFlattening/Models/AvailabilitySetUpdateParameters.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.AcceptanceTestsParameterFlattening.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class AvailabilitySetUpdateParameters { @@ -40,7 +39,7 @@ public AvailabilitySetUpdateParameters(IDictionary tags) /// /// A description about the set of tags. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] + [JsonProperty(PropertyName = "tags")] public IDictionary Tags { get; set; } /// @@ -58,3 +57,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/AutoRestReportService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/AutoRestReportService.cs index 6ffed0373f..60ae55f247 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/AutoRestReportService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/AutoRestReportService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -111,7 +111,7 @@ public AutoRestReportService(System.Uri baseUri, System.Net.Http.HttpClientHandl /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -145,7 +145,7 @@ private void Initialize() } }; CustomInitialize(); - } + } /// /// Get test coverage report /// @@ -273,3 +273,4 @@ private void Initialize() } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/AutoRestReportServiceExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/AutoRestReportServiceExtensions.cs index a3ec134bd7..a4c6060f14 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/AutoRestReportServiceExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/AutoRestReportServiceExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsReport using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -50,3 +49,4 @@ public static partial class AutoRestReportServiceExtensions } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/IAutoRestReportService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/IAutoRestReportService.cs index 5b35bbb7f8..c8c968af79 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/IAutoRestReportService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/IAutoRestReportService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsReport using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -51,3 +50,4 @@ public partial interface IAutoRestReportService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/Models/Error.cs index 7e62866490..f859428252 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsReport.Models using AcceptanceTestsReport; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/Models/ErrorException.cs index ccba6c4aa7..5df6af9c2e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Report/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsReport.Models { using AcceptanceTestsReport; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsReport.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/AutoRestRequiredOptionalTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/AutoRestRequiredOptionalTestService.cs index 8f4202f04c..24d28fb367 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/AutoRestRequiredOptionalTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/AutoRestRequiredOptionalTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -134,7 +134,7 @@ public AutoRestRequiredOptionalTestService(System.Uri baseUri, System.Net.Http.H /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -170,6 +170,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ExplicitModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ExplicitModel.cs index f28822bfb0..6aa20a5acd 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ExplicitModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ExplicitModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class ExplicitModel : IServiceOperations public ExplicitModel(AutoRestRequiredOptionalTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -2829,3 +2829,4 @@ public ExplicitModel(AutoRestRequiredOptionalTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ExplicitModelExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ExplicitModelExtensions.cs index 6da3ba99c0..0397d69881 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ExplicitModelExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ExplicitModelExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -737,3 +736,4 @@ public static Error PostRequiredArrayHeader(this IExplicitModel operations, ILis } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IAutoRestRequiredOptionalTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IAutoRestRequiredOptionalTestService.cs index f047cf3971..17f02b050a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IAutoRestRequiredOptionalTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IAutoRestRequiredOptionalTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -60,3 +59,4 @@ public partial interface IAutoRestRequiredOptionalTestService : System.IDisposab } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IExplicitModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IExplicitModel.cs index 22a70c74a2..54a68d8fca 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IExplicitModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IExplicitModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -402,3 +401,4 @@ public partial interface IExplicitModel Task PostOptionalArrayHeaderWithHttpMessagesAsync(IList headerParameter = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IImplicitModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IImplicitModel.cs index e89d361c24..b0091ef825 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IImplicitModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/IImplicitModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -131,3 +130,4 @@ public partial interface IImplicitModel Task> GetOptionalGlobalQueryWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ImplicitModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ImplicitModel.cs index ad4298ae3d..5dea4437a1 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ImplicitModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ImplicitModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class ImplicitModel : IServiceOperations public ImplicitModel(AutoRestRequiredOptionalTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -908,3 +908,4 @@ public ImplicitModel(AutoRestRequiredOptionalTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ImplicitModelExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ImplicitModelExtensions.cs index c67b65194e..323d7f6bc4 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ImplicitModelExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/ImplicitModelExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -223,3 +222,4 @@ public static Error GetOptionalGlobalQuery(this IImplicitModel operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayOptionalWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayOptionalWrapper.cs index bb7acbb085..f756c189c9 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayOptionalWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayOptionalWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class ArrayOptionalWrapper { @@ -32,8 +31,9 @@ public ArrayOptionalWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public IList Value { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayWrapper.cs index dd7a53eb26..e0c6891528 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ArrayWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class ArrayWrapper { @@ -33,7 +32,7 @@ public ArrayWrapper(IList value) /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public IList Value { get; set; } /// @@ -51,3 +50,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassOptionalWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassOptionalWrapper.cs index 556e0ec47a..0d86d5b845 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassOptionalWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassOptionalWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional.Models using AcceptanceTestsRequiredOptional; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class ClassOptionalWrapper { @@ -30,7 +29,7 @@ public ClassOptionalWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public Product Value { get; set; } /// @@ -48,3 +47,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassWrapper.cs index 2bd79d2550..ae915f2eb7 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ClassWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional.Models using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class ClassWrapper { @@ -31,7 +30,7 @@ public ClassWrapper(Product value) /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public Product Value { get; set; } /// @@ -53,3 +52,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Error.cs index e05034a375..8616d767b9 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional.Models using AcceptanceTestsRequiredOptional; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ErrorException.cs index 401dca4c4f..2775659017 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional.Models { using AcceptanceTestsRequiredOptional; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsRequiredOptional.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntOptionalWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntOptionalWrapper.cs index fe714412f9..ddbcc53255 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntOptionalWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntOptionalWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional.Models using AcceptanceTestsRequiredOptional; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class IntOptionalWrapper { @@ -30,8 +29,9 @@ public IntOptionalWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public int? Value { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntWrapper.cs index 8d51dcf152..2d5d1d61ab 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/IntWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional.Models using AcceptanceTestsRequiredOptional; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class IntWrapper { @@ -30,7 +29,7 @@ public IntWrapper(int value) /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public int Value { get; set; } /// @@ -45,3 +44,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Product.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Product.cs index 9c2a247b84..d30f3a3de8 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Product.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/Product.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional.Models using AcceptanceTestsRequiredOptional; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Product { @@ -31,12 +30,12 @@ public Product() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public int Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// @@ -51,3 +50,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringOptionalWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringOptionalWrapper.cs index f18f618f12..72438a0ddd 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringOptionalWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringOptionalWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional.Models using AcceptanceTestsRequiredOptional; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class StringOptionalWrapper { @@ -30,8 +29,9 @@ public StringOptionalWrapper() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public string Value { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringWrapper.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringWrapper.cs index 8325227284..c305ba27ac 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringWrapper.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/RequiredOptional/Models/StringWrapper.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsRequiredOptional.Models using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class StringWrapper { @@ -31,7 +30,7 @@ public StringWrapper(string value) /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public string Value { get; set; } /// @@ -49,3 +48,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/AutoRestUrlTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/AutoRestUrlTestService.cs index 517aae2c23..bbcbac2e4e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/AutoRestUrlTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/AutoRestUrlTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -134,7 +134,7 @@ public AutoRestUrlTestService(System.Uri baseUri, System.Net.Http.HttpClientHand /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -171,6 +171,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IAutoRestUrlTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IAutoRestUrlTestService.cs index c0bc9a72a6..1bd604f997 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IAutoRestUrlTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IAutoRestUrlTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsUrl { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -60,3 +59,4 @@ public partial interface IAutoRestUrlTestService : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IPathItems.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IPathItems.cs index 56e7a80110..1573d5838f 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IPathItems.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IPathItems.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsUrl using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -154,3 +153,4 @@ public partial interface IPathItems Task GetLocalPathItemQueryNullWithHttpMessagesAsync(string localStringPath, string pathItemStringPath, string localStringQuery = default(string), string pathItemStringQuery = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IPaths.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IPaths.cs index 33dfb37def..d4e7e2a335 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IPaths.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IPaths.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsUrl using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -425,3 +424,4 @@ public partial interface IPaths Task UnixTimeUrlWithHttpMessagesAsync(System.DateTime unixTimeUrlPath, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IQueries.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IQueries.cs index 56d1d7ab3e..ffe1bd3a0c 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IQueries.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/IQueries.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsUrl using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -541,3 +540,4 @@ public partial interface IQueries Task ArrayStringPipesValidWithHttpMessagesAsync(IList arrayQuery = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Models/Error.cs index 46e75faba0..7f5369138b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsUrl.Models using AcceptanceTestsUrl; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Models/ErrorException.cs index 1b8447069d..6d019f78e5 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsUrl.Models { using AcceptanceTestsUrl; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsUrl.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Models/UriColor.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Models/UriColor.cs index 740a6cbde5..c8b9a0761d 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Models/UriColor.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Models/UriColor.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,21 +11,21 @@ namespace Fixtures.AcceptanceTestsUrl.Models using AcceptanceTestsUrl; using Newtonsoft.Json; using Newtonsoft.Json.Converters; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; /// /// Defines values for UriColor. /// - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public enum UriColor { - [System.Runtime.Serialization.EnumMember(Value = "red color")] + [EnumMember(Value = "red color")] Redcolor, - [System.Runtime.Serialization.EnumMember(Value = "green color")] + [EnumMember(Value = "green color")] Greencolor, - [System.Runtime.Serialization.EnumMember(Value = "blue color")] + [EnumMember(Value = "blue color")] Bluecolor } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/PathItems.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/PathItems.cs index 3b5768a9fc..f532ed2e8e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/PathItems.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/PathItems.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class PathItems : IServiceOperations, IPa /// public PathItems(AutoRestUrlTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -681,3 +681,4 @@ public PathItems(AutoRestUrlTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/PathItemsExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/PathItemsExtensions.cs index 53e779f8f5..88c96b87ad 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/PathItemsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/PathItemsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsUrl { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -242,3 +241,4 @@ public static partial class PathItemsExtensions } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Paths.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Paths.cs index dd9bcff89d..a96142fa9c 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Paths.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Paths.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -35,7 +35,7 @@ public partial class Paths : IServiceOperations, IPaths /// public Paths(AutoRestUrlTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -2892,3 +2892,4 @@ public Paths(AutoRestUrlTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/PathsExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/PathsExtensions.cs index 2dfb074947..61de2fe52f 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/PathsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/PathsExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsUrl using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -744,3 +743,4 @@ public static void UnixTimeUrl(this IPaths operations, System.DateTime unixTimeU } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Queries.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Queries.cs index f186ae3521..809cfe419d 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Queries.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/Queries.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -35,7 +35,7 @@ public partial class Queries : IServiceOperations, IQuer /// public Queries(AutoRestUrlTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -3969,3 +3969,4 @@ public Queries(AutoRestUrlTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/QueriesExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/QueriesExtensions.cs index 7d5f4f7cf0..4ddfa2525e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/QueriesExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Url/QueriesExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsUrl using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -1000,3 +999,4 @@ public static void DateTimeValid(this IQueries operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/AutoRestUrlMutliCollectionFormatTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/AutoRestUrlMutliCollectionFormatTestService.cs index 46cd38edbf..79e6c10c87 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/AutoRestUrlMutliCollectionFormatTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/AutoRestUrlMutliCollectionFormatTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -114,7 +114,7 @@ public AutoRestUrlMutliCollectionFormatTestService(System.Uri baseUri, System.Ne /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/IAutoRestUrlMutliCollectionFormatTestService.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/IAutoRestUrlMutliCollectionFormatTestService.cs index 849f4ab214..5972efb755 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/IAutoRestUrlMutliCollectionFormatTestService.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/IAutoRestUrlMutliCollectionFormatTestService.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsUrlMultiCollectionFormat { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// Test Infrastructure for AutoRest @@ -40,3 +39,4 @@ public partial interface IAutoRestUrlMutliCollectionFormatTestService : System.I } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/IQueries.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/IQueries.cs index 343a22336e..e1def16776 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/IQueries.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/IQueries.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AcceptanceTestsUrlMultiCollectionFormat using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -73,3 +72,4 @@ public partial interface IQueries Task ArrayStringMultiValidWithHttpMessagesAsync(IList arrayQuery = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/Models/Error.cs index fe8c745ce8..58641130ba 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsUrlMultiCollectionFormat.Models using AcceptanceTestsUrlMultiCollectionFormat; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -31,13 +30,14 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public int? Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/Models/ErrorException.cs index 8c08e61ba1..856ce04215 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsUrlMultiCollectionFormat.Models { using AcceptanceTestsUrlMultiCollectionFormat; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsUrlMultiCollectionFormat.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/Queries.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/Queries.cs index e885351e33..97a726d7e2 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/Queries.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/Queries.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class Queries : IServiceOperations public Queries(AutoRestUrlMutliCollectionFormatTestService client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -431,3 +431,4 @@ public Queries(AutoRestUrlMutliCollectionFormatTestService client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/QueriesExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/QueriesExtensions.cs index 202c239281..331ab83f6e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/QueriesExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/UrlMultiCollectionFormat/QueriesExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsUrlMultiCollectionFormat using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -119,3 +118,4 @@ public static partial class QueriesExtensions } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/AutoRestValidationTest.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/AutoRestValidationTest.cs index 255c82836f..208be794ef 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/AutoRestValidationTest.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/AutoRestValidationTest.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -122,7 +122,7 @@ public AutoRestValidationTest(System.Uri baseUri, System.Net.Http.HttpClientHand /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -156,7 +156,7 @@ private void Initialize() } }; CustomInitialize(); - } + } /// /// Validates input parameters on the method. See swagger for details. /// @@ -788,3 +788,4 @@ private void Initialize() } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/AutoRestValidationTestExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/AutoRestValidationTestExtensions.cs index 1041518c67..9377b87c2a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/AutoRestValidationTestExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/AutoRestValidationTestExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AcceptanceTestsValidation { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -149,3 +148,4 @@ public static void GetWithConstantInPath(this IAutoRestValidationTest operations } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/IAutoRestValidationTest.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/IAutoRestValidationTest.cs index c44591d70f..7d146f71ec 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/IAutoRestValidationTest.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/IAutoRestValidationTest.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AcceptanceTestsValidation using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -105,3 +104,4 @@ public partial interface IAutoRestValidationTest : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ChildProduct.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ChildProduct.cs index 67b187b1ee..f8cf381ce5 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ChildProduct.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ChildProduct.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsValidation.Models using AcceptanceTestsValidation; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// The product documentation. @@ -42,14 +41,15 @@ static ChildProduct() /// /// Gets or sets count /// - [Newtonsoft.Json.JsonProperty(PropertyName = "count")] + [JsonProperty(PropertyName = "count")] public int? Count { get; set; } /// /// Constant string /// - [Newtonsoft.Json.JsonProperty(PropertyName = "constProperty")] + [JsonProperty(PropertyName = "constProperty")] public static string ConstProperty { get; private set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ConstantProduct.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ConstantProduct.cs index 6d00f09d6c..0b22f69289 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ConstantProduct.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ConstantProduct.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsValidation.Models using AcceptanceTestsValidation; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// The product documentation. @@ -35,14 +34,15 @@ static ConstantProduct() /// /// Constant string /// - [Newtonsoft.Json.JsonProperty(PropertyName = "constProperty")] + [JsonProperty(PropertyName = "constProperty")] public static string ConstProperty { get; private set; } /// /// Constant string2 /// - [Newtonsoft.Json.JsonProperty(PropertyName = "constProperty2")] + [JsonProperty(PropertyName = "constProperty2")] public static string ConstProperty2 { get; private set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/EnumConst.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/EnumConst.cs index 79a498386d..4f714744f8 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/EnumConst.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/EnumConst.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,17 +11,17 @@ namespace Fixtures.AcceptanceTestsValidation.Models using AcceptanceTestsValidation; using Newtonsoft.Json; using Newtonsoft.Json.Converters; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; /// /// Defines values for EnumConst. /// - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public enum EnumConst { - [System.Runtime.Serialization.EnumMember(Value = "constant_string_as_enum")] + [EnumMember(Value = "constant_string_as_enum")] ConstantStringAsEnum } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Error.cs index aa4d8ae15f..e8602f2076 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AcceptanceTestsValidation.Models using AcceptanceTestsValidation; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -32,18 +31,19 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "code")] + [JsonProperty(PropertyName = "code")] public int? Code { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "fields")] + [JsonProperty(PropertyName = "fields")] public string Fields { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ErrorException.cs index 7606f7c396..0a0b196e62 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.AcceptanceTestsValidation.Models { using AcceptanceTestsValidation; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.AcceptanceTestsValidation.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Product.cs b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Product.cs index 1d511c18cb..12a81138bf 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Product.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/AcceptanceTests/Validation/Models/Product.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.AcceptanceTestsValidation.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; /// /// The product documentation. @@ -62,48 +61,48 @@ static Product() /// Gets or sets non required array of unique items from 0 to 6 /// elements. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "display_names")] + [JsonProperty(PropertyName = "display_names")] public IList DisplayNames { get; set; } /// /// Gets or sets non required int betwen 0 and 100 exclusive. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "capacity")] + [JsonProperty(PropertyName = "capacity")] public int? Capacity { get; set; } /// /// Gets or sets image URL representing the product. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "image")] + [JsonProperty(PropertyName = "image")] public string Image { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "child")] + [JsonProperty(PropertyName = "child")] public ChildProduct Child { get; set; } /// /// Gets or sets constant string as Enum. Possible values include: /// 'constant_string_as_enum' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "constStringAsEnum")] + [JsonProperty(PropertyName = "constStringAsEnum")] public EnumConst? ConstStringAsEnum { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "constChild")] + [JsonProperty(PropertyName = "constChild")] public static ConstantProduct ConstChild { get; private set; } /// /// Constant int /// - [Newtonsoft.Json.JsonProperty(PropertyName = "constInt")] + [JsonProperty(PropertyName = "constInt")] public static int ConstInt { get; private set; } /// /// Constant string /// - [Newtonsoft.Json.JsonProperty(PropertyName = "constString")] + [JsonProperty(PropertyName = "constString")] public static string ConstString { get; private set; } /// @@ -151,3 +150,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Get.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Get.cs index 27889eaacb..9f454b98a5 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Get.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Get.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -34,7 +34,7 @@ public partial class Get : IServiceOperations, IGet /// public Get(PetStoreonHeroku client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -184,3 +184,4 @@ public Get(PetStoreonHeroku client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/GetExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/GetExtensions.cs index 3aef70d67d..e1149414ed 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/GetExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/GetExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AdditionalProperties using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -50,3 +49,4 @@ public static IList Pets(this IGet operations, int? limit = 11) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IGet.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IGet.cs index d1e42ab161..86402d1a12 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IGet.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IGet.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AdditionalProperties using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -39,3 +38,4 @@ public partial interface IGet Task>> PetsWithHttpMessagesAsync(int? limit = 11, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IPetStoreonHeroku.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IPetStoreonHeroku.cs index a463b7eb62..d059e37083 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IPetStoreonHeroku.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IPetStoreonHeroku.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,11 +10,10 @@ namespace Fixtures.AdditionalProperties { using Models; using Newtonsoft.Json; - using System.Net.Http; /// /// **This example has a working backend hosted in Heroku** - /// + /// /// public partial interface IPetStoreonHeroku : System.IDisposable { @@ -51,3 +50,4 @@ public partial interface IPetStoreonHeroku : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IPost.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IPost.cs index fd239ca1b1..71d007be4e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IPost.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IPost.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AdditionalProperties using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -39,3 +38,4 @@ public partial interface IPost Task PetsWithHttpMessagesAsync(Pet pet, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IPut.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IPut.cs index 69d4e1707b..35ee6399ae 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IPut.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/IPut.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.AdditionalProperties using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -39,3 +38,4 @@ public partial interface IPut Task PetsWithHttpMessagesAsync(Pet pet, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/Feature.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/Feature.cs index ed2504315a..3f0a4b737e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/Feature.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/Feature.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.AdditionalProperties.Models using AdditionalProperties; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Feature { @@ -31,13 +30,14 @@ public Feature() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "foo")] + [JsonProperty(PropertyName = "foo")] public string Foo { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "bar")] + [JsonProperty(PropertyName = "bar")] public int? Bar { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/Pet.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/Pet.cs index 096c1538e8..ee54b614fd 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/Pet.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/Pet.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AdditionalProperties.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Pet { @@ -41,33 +40,34 @@ public Pet() { } /// Gets or sets unmatched properties from the message are deserialized /// this collection /// - [Newtonsoft.Json.JsonExtensionData] + [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "birthday")] + [JsonProperty(PropertyName = "birthday")] public int? Birthday { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "wsd")] + [JsonProperty(PropertyName = "wsd")] public WithStringDictionary Wsd { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "wud")] + [JsonProperty(PropertyName = "wud")] public WithUntypedDictionary Wud { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "wtd")] + [JsonProperty(PropertyName = "wtd")] public WithTypedDictionary Wtd { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/WithStringDictionary.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/WithStringDictionary.cs index dc19f98341..e16f5b36ce 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/WithStringDictionary.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/WithStringDictionary.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AdditionalProperties.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class WithStringDictionary { @@ -37,13 +36,14 @@ public WithStringDictionary() { } /// Gets or sets unmatched properties from the message are deserialized /// this collection /// - [Newtonsoft.Json.JsonExtensionData] + [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "abc")] + [JsonProperty(PropertyName = "abc")] public string Abc { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/WithTypedDictionary.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/WithTypedDictionary.cs index 97f636d55f..3f30f55cca 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/WithTypedDictionary.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/WithTypedDictionary.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AdditionalProperties.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class WithTypedDictionary { @@ -37,13 +36,14 @@ public WithTypedDictionary() { } /// Gets or sets unmatched properties from the message are deserialized /// this collection /// - [Newtonsoft.Json.JsonExtensionData] + [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "abc")] + [JsonProperty(PropertyName = "abc")] public string Abc { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/WithUntypedDictionary.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/WithUntypedDictionary.cs index 7cefdbc6d5..5d8c0c188b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/WithUntypedDictionary.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Models/WithUntypedDictionary.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.AdditionalProperties.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class WithUntypedDictionary { @@ -37,13 +36,14 @@ public WithUntypedDictionary() { } /// Gets or sets unmatched properties from the message are deserialized /// this collection /// - [Newtonsoft.Json.JsonExtensionData] + [JsonExtensionData] public IDictionary AdditionalProperties { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "abc")] + [JsonProperty(PropertyName = "abc")] public string Abc { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/PetStoreonHeroku.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/PetStoreonHeroku.cs index 7fc49eab0d..0a88a4889f 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/PetStoreonHeroku.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/PetStoreonHeroku.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -19,7 +19,7 @@ namespace Fixtures.AdditionalProperties /// /// **This example has a working backend hosted in Heroku** - /// + /// /// public partial class PetStoreonHeroku : ServiceClient, IPetStoreonHeroku { @@ -125,7 +125,7 @@ public PetStoreonHeroku(System.Uri baseUri, System.Net.Http.HttpClientHandler ro /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -162,6 +162,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Post.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Post.cs index e91b24549f..bfdc33785a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Post.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Post.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -33,7 +33,7 @@ public partial class Post : IServiceOperations, IPost /// public Post(PetStoreonHeroku client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -158,3 +158,4 @@ public Post(PetStoreonHeroku client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/PostExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/PostExtensions.cs index c663b9a3c5..c0ccb0db98 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/PostExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/PostExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AdditionalProperties { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -45,3 +44,4 @@ public static void Pets(this IPost operations, Pet pet) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Put.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Put.cs index 161124bb7e..af44e2d781 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Put.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/Put.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -33,7 +33,7 @@ public partial class Put : IServiceOperations, IPut /// public Put(PetStoreonHeroku client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -158,3 +158,4 @@ public Put(PetStoreonHeroku client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/PutExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/PutExtensions.cs index 4cbbaa1d24..0cb780e1a6 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/PutExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Additional.Properties/PutExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.AdditionalProperties { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -45,3 +44,4 @@ public static void Pets(this IPut operations, Pet pet) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/ISwaggerDateTimeOffsetClient.cs b/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/ISwaggerDateTimeOffsetClient.cs index ed0ca23c8e..8060016a27 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/ISwaggerDateTimeOffsetClient.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/ISwaggerDateTimeOffsetClient.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.DateTimeOffset using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -108,3 +107,4 @@ public partial interface ISwaggerDateTimeOffsetClient : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/Models/Error.cs index 995d902488..9e24557b68 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.DateTimeOffset.Models using DateTimeOffset; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -32,18 +31,19 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "code")] + [JsonProperty(PropertyName = "code")] public int? Code { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "fields")] + [JsonProperty(PropertyName = "fields")] public string Fields { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/Models/ErrorException.cs index 6f0a899cc6..63b7254949 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.DateTimeOffset.Models { using DateTimeOffset; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.DateTimeOffset.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/Models/Product.cs b/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/Models/Product.cs index 46da792bdc..9ce23c0779 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/Models/Product.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/Models/Product.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -15,7 +15,6 @@ namespace Fixtures.DateTimeOffset.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Product { @@ -37,24 +36,25 @@ public Product() { } /// /// - [Newtonsoft.Json.JsonConverter(typeof(DateJsonConverter))] - [Newtonsoft.Json.JsonProperty(PropertyName = "date")] + [JsonConverter(typeof(DateJsonConverter))] + [JsonProperty(PropertyName = "date")] public System.DateTime? Date { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "dateTime")] + [JsonProperty(PropertyName = "dateTime")] public System.DateTimeOffset? DateTime { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "dateArray")] + [JsonProperty(PropertyName = "dateArray")] public IList DateArray { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "dateTimeArray")] + [JsonProperty(PropertyName = "dateTimeArray")] public IList DateTimeArray { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/SwaggerDateTimeOffsetClient.cs b/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/SwaggerDateTimeOffsetClient.cs index bb67c0410c..84a04d45a8 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/SwaggerDateTimeOffsetClient.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/SwaggerDateTimeOffsetClient.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -111,7 +111,7 @@ public SwaggerDateTimeOffsetClient(System.Uri baseUri, System.Net.Http.HttpClien /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -145,7 +145,7 @@ private void Initialize() } }; CustomInitialize(); - } + } /// /// Product Types /// @@ -736,3 +736,4 @@ private void Initialize() } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/SwaggerDateTimeOffsetClientExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/SwaggerDateTimeOffsetClientExtensions.cs index d78964629f..bb4fb16f4d 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/SwaggerDateTimeOffsetClientExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/DateTimeOffset/SwaggerDateTimeOffsetClientExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.DateTimeOffset { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -180,3 +179,4 @@ public static partial class SwaggerDateTimeOffsetClientExtensions } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/IInternalClient.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/IInternalClient.cs index 48bc368e3d..cd7a2826ff 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/IInternalClient.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/IInternalClient.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.InternalCtors { using Newtonsoft.Json; - using System.Net.Http; /// /// A sample API that uses a petstore as an example to demonstrate features @@ -40,3 +39,4 @@ public partial interface IInternalClient : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/IPets.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/IPets.cs index 711410ef85..d81fc22547 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/IPets.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/IPets.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.InternalCtors using Microsoft.Rest; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -35,3 +34,4 @@ public partial interface IPets Task GetWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/InternalClient.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/InternalClient.cs index 8d866298ff..3339e869d6 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/InternalClient.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/InternalClient.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -114,7 +114,7 @@ internal InternalClient(System.Uri baseUri, System.Net.Http.HttpClientHandler ro /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -149,6 +149,7 @@ private void Initialize() } }; CustomInitialize(); - } + } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/Pets.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/Pets.cs index 8e592a5c8f..866548b2cc 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/Pets.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/Pets.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -32,7 +32,7 @@ public partial class Pets : IServiceOperations, IPets /// public Pets(InternalClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } @@ -143,3 +143,4 @@ public Pets(InternalClient client) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/PetsExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/PetsExtensions.cs index f0417ed532..e50c0b4cc1 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/PetsExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Internal.Ctors/PetsExtensions.cs @@ -1,14 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Fixtures.InternalCtors { - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -44,3 +43,4 @@ public static void Get(this IPets operations) } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/IPolymorphicAnimalStore.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/IPolymorphicAnimalStore.cs index e6bcbb02c4..339b7f8f12 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/IPolymorphicAnimalStore.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/IPolymorphicAnimalStore.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.MirrorPolymorphic using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -60,3 +59,4 @@ public partial interface IPolymorphicAnimalStore : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Animal.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Animal.cs index dab8fdf14b..5bd9cffa25 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Animal.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Animal.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.MirrorPolymorphic.Models using MirrorPolymorphic; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Animal { @@ -34,14 +33,15 @@ public Animal() { } /// /// Gets or sets id. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public string Id { get; set; } /// /// Gets or sets description of a Animal. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "description")] + [JsonProperty(PropertyName = "description")] public string Description { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/BaseCat.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/BaseCat.cs index c155cb1058..f12aa2174e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/BaseCat.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/BaseCat.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.MirrorPolymorphic.Models using MirrorPolymorphic; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class BaseCat : Animal { @@ -35,8 +34,9 @@ public BaseCat() { } /// /// Gets or sets cat color /// - [Newtonsoft.Json.JsonProperty(PropertyName = "color")] + [JsonProperty(PropertyName = "color")] public string Color { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/BurmeseCat.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/BurmeseCat.cs index 5b2862d7ba..587b35d9b4 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/BurmeseCat.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/BurmeseCat.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.MirrorPolymorphic.Models using MirrorPolymorphic; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class BurmeseCat : SiameseCat { @@ -37,8 +36,9 @@ public BurmeseCat() { } /// /// Gets or sets cat nick name /// - [Newtonsoft.Json.JsonProperty(PropertyName = "nickName")] + [JsonProperty(PropertyName = "nickName")] public int? NickName { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Doggy.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Doggy.cs index 8b0510d8b9..18a64915af 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Doggy.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Doggy.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.MirrorPolymorphic.Models using MirrorPolymorphic; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Doggy : Animal { @@ -35,8 +34,9 @@ public Doggy() { } /// /// Gets or sets dog name /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2.cs index 2d7e5a0a4f..754ca4ba60 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.MirrorPolymorphic.Models using MirrorPolymorphic; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error2 { @@ -32,18 +31,19 @@ public Error2() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "code")] + [JsonProperty(PropertyName = "code")] public int? Code { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "fields")] + [JsonProperty(PropertyName = "fields")] public string Fields { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2Exception.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2Exception.cs index b1b9d6e21a..837f3535d4 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2Exception.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Error2Exception.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.MirrorPolymorphic.Models { using MirrorPolymorphic; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.MirrorPolymorphic.Models /// /// Exception thrown for an invalid response with Error2 information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class Error2Exception : RestException @@ -65,7 +64,7 @@ public Error2Exception(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the Error2Exception class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/HimalayanCat.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/HimalayanCat.cs index a3e5ffd7c0..dc9429ea55 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/HimalayanCat.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/HimalayanCat.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.MirrorPolymorphic.Models using MirrorPolymorphic; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class HimalayanCat : SiameseCat { @@ -37,8 +36,9 @@ public HimalayanCat() { } /// /// Gets or sets cat hair length /// - [Newtonsoft.Json.JsonProperty(PropertyName = "hairLength")] + [JsonProperty(PropertyName = "hairLength")] public int? HairLength { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Horsey.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Horsey.cs index 201afadbc8..3389d516d3 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Horsey.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/Horsey.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.MirrorPolymorphic.Models using MirrorPolymorphic; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Horsey : Animal { @@ -35,8 +34,9 @@ public Horsey() { } /// /// Gets or sets horse breed /// - [Newtonsoft.Json.JsonProperty(PropertyName = "breed")] + [JsonProperty(PropertyName = "breed")] public string Breed { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/PersianCat.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/PersianCat.cs index 0e86efadf4..f121a1926b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/PersianCat.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/PersianCat.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.MirrorPolymorphic.Models using MirrorPolymorphic; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class PersianCat : BaseCat { @@ -36,8 +35,9 @@ public PersianCat() { } /// /// Gets or sets cat size /// - [Newtonsoft.Json.JsonProperty(PropertyName = "size")] + [JsonProperty(PropertyName = "size")] public int? Size { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/SiameseCat.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/SiameseCat.cs index 853f1bb1f3..96364b6cd8 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/SiameseCat.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/Models/SiameseCat.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.MirrorPolymorphic.Models using MirrorPolymorphic; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class SiameseCat : BaseCat { @@ -36,8 +35,9 @@ public SiameseCat() { } /// /// Gets or sets cat length /// - [Newtonsoft.Json.JsonProperty(PropertyName = "length")] + [JsonProperty(PropertyName = "length")] public int? Length { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/PolymorphicAnimalStore.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/PolymorphicAnimalStore.cs index c4c1a29fe9..21fe8a4b71 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/PolymorphicAnimalStore.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/PolymorphicAnimalStore.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -111,7 +111,7 @@ public PolymorphicAnimalStore(System.Uri baseUri, System.Net.Http.HttpClientHand /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -147,7 +147,7 @@ private void Initialize() SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("dtype")); DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("dtype")); CustomInitialize(); - } + } /// /// Product Types /// @@ -291,3 +291,4 @@ private void Initialize() } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/PolymorphicAnimalStoreExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/PolymorphicAnimalStoreExtensions.cs index 692df5e604..54ccbd4966 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/PolymorphicAnimalStoreExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Polymorphic/PolymorphicAnimalStoreExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.MirrorPolymorphic { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -66,3 +65,4 @@ public static partial class PolymorphicAnimalStoreExtensions } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/ISwaggerDataTypesClient.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/ISwaggerDataTypesClient.cs index 6180f6bfae..dd23404878 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/ISwaggerDataTypesClient.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/ISwaggerDataTypesClient.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.MirrorPrimitives using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -108,3 +107,4 @@ public partial interface ISwaggerDataTypesClient : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/Models/Error.cs index 163d1e5725..ca9ca7fe43 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.MirrorPrimitives.Models using MirrorPrimitives; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -32,18 +31,19 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "code")] + [JsonProperty(PropertyName = "code")] public int? Code { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "fields")] + [JsonProperty(PropertyName = "fields")] public string Fields { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/Models/ErrorException.cs index 484ed902d0..c660ef5a45 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.MirrorPrimitives.Models { using MirrorPrimitives; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.MirrorPrimitives.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/Models/Product.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/Models/Product.cs index cb25d49d0e..b547dd9af7 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/Models/Product.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/Models/Product.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -15,7 +15,6 @@ namespace Fixtures.MirrorPrimitives.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Product { @@ -62,141 +61,142 @@ public Product() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "integer")] + [JsonProperty(PropertyName = "integer")] public int? Integer { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "int")] + [JsonProperty(PropertyName = "int")] public int? IntProperty { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "long")] + [JsonProperty(PropertyName = "long")] public long? LongProperty { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "number")] + [JsonProperty(PropertyName = "number")] public double? Number { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "float")] + [JsonProperty(PropertyName = "float")] public double? FloatProperty { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "double")] + [JsonProperty(PropertyName = "double")] public double? DoubleProperty { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "byte")] + [JsonProperty(PropertyName = "byte")] public byte[] ByteProperty { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "string")] + [JsonProperty(PropertyName = "string")] public string StringProperty { get; set; } /// /// - [Newtonsoft.Json.JsonConverter(typeof(Base64UrlJsonConverter))] - [Newtonsoft.Json.JsonProperty(PropertyName = "base64url")] + [JsonConverter(typeof(Base64UrlJsonConverter))] + [JsonProperty(PropertyName = "base64url")] public byte[] Base64url { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "uuid")] + [JsonProperty(PropertyName = "uuid")] public System.Guid? Uuid { get; set; } /// /// Gets or sets possible values include: 'red', 'blue', 'green' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "enum")] + [JsonProperty(PropertyName = "enum")] public string EnumProperty { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "boolean")] + [JsonProperty(PropertyName = "boolean")] public bool? Boolean { get; set; } /// /// - [Newtonsoft.Json.JsonConverter(typeof(DateJsonConverter))] - [Newtonsoft.Json.JsonProperty(PropertyName = "date")] + [JsonConverter(typeof(DateJsonConverter))] + [JsonProperty(PropertyName = "date")] public System.DateTime? Date { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "dateTime")] + [JsonProperty(PropertyName = "dateTime")] public System.DateTime? DateTime { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "integerArray")] + [JsonProperty(PropertyName = "integerArray")] public IList IntegerArray { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "intArray")] + [JsonProperty(PropertyName = "intArray")] public IList IntArray { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "longArray")] + [JsonProperty(PropertyName = "longArray")] public IList LongArray { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "numberArray")] + [JsonProperty(PropertyName = "numberArray")] public IList NumberArray { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "floatArray")] + [JsonProperty(PropertyName = "floatArray")] public IList FloatArray { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "doubleArray")] + [JsonProperty(PropertyName = "doubleArray")] public IList DoubleArray { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "byteArray")] + [JsonProperty(PropertyName = "byteArray")] public IList ByteArray { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "booleanArray")] + [JsonProperty(PropertyName = "booleanArray")] public IList BooleanArray { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "stringArray")] + [JsonProperty(PropertyName = "stringArray")] public IList StringArray { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "base64urlArray")] + [JsonProperty(PropertyName = "base64urlArray")] public IList Base64urlArray { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "dateArray")] + [JsonProperty(PropertyName = "dateArray")] public IList DateArray { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "dateTimeArray")] + [JsonProperty(PropertyName = "dateTimeArray")] public IList DateTimeArray { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "uuidArray")] + [JsonProperty(PropertyName = "uuidArray")] public IList UuidArray { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/SwaggerDataTypesClient.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/SwaggerDataTypesClient.cs index 5918f8251b..339e672d97 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/SwaggerDataTypesClient.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/SwaggerDataTypesClient.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -111,7 +111,7 @@ public SwaggerDataTypesClient(System.Uri baseUri, System.Net.Http.HttpClientHand /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -145,7 +145,7 @@ private void Initialize() } }; CustomInitialize(); - } + } /// /// Product Types /// @@ -736,3 +736,4 @@ private void Initialize() } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/SwaggerDataTypesClientExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/SwaggerDataTypesClientExtensions.cs index a3e01a1ab4..2ce6fab1ae 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/SwaggerDataTypesClientExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Primitives/SwaggerDataTypesClientExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.MirrorPrimitives { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -180,3 +179,4 @@ public static partial class SwaggerDataTypesClientExtensions } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/IRecursiveTypesAPI.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/IRecursiveTypesAPI.cs index 548a4e9dd5..dadc85d811 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/IRecursiveTypesAPI.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/IRecursiveTypesAPI.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.MirrorRecursiveTypes using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -69,3 +68,4 @@ public partial interface IRecursiveTypesAPI : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Error.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Error.cs index 270e3e7e1f..d2cbbd7647 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Error.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Error.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.MirrorRecursiveTypes.Models using MirrorRecursiveTypes; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Error { @@ -32,18 +31,19 @@ public Error() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "code")] + [JsonProperty(PropertyName = "code")] public int? Code { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "fields")] + [JsonProperty(PropertyName = "fields")] public string Fields { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/ErrorException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/ErrorException.cs index 0d4c803331..1988bc1013 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/ErrorException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/ErrorException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.MirrorRecursiveTypes.Models { using MirrorRecursiveTypes; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.MirrorRecursiveTypes.Models /// /// Exception thrown for an invalid response with Error information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorException : RestException @@ -65,7 +64,7 @@ public ErrorException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Product.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Product.cs index 94caf38591..c0e662cf95 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Product.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/Models/Product.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.MirrorRecursiveTypes.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Product { @@ -42,18 +41,19 @@ public Product() { } /// Francisco will have a different product_id than uberX in Los /// Angeles. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "product_id")] + [JsonProperty(PropertyName = "product_id")] public string ProductId { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "parentProduct")] + [JsonProperty(PropertyName = "parentProduct")] public Product ParentProduct { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "innerProducts")] + [JsonProperty(PropertyName = "innerProducts")] public IList InnerProducts { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/RecursiveTypesAPI.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/RecursiveTypesAPI.cs index 530be80ae8..49e6f40255 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/RecursiveTypesAPI.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/RecursiveTypesAPI.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -111,7 +111,7 @@ public RecursiveTypesAPI(System.Uri baseUri, System.Net.Http.HttpClientHandler r /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -145,7 +145,7 @@ private void Initialize() } }; CustomInitialize(); - } + } /// /// Products /// @@ -319,3 +319,4 @@ private void Initialize() } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/RecursiveTypesAPIExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/RecursiveTypesAPIExtensions.cs index 9b1852be3d..12b354395a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/RecursiveTypesAPIExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.RecursiveTypes/RecursiveTypesAPIExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -9,7 +9,6 @@ namespace Fixtures.MirrorRecursiveTypes { using Models; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -84,3 +83,4 @@ public static partial class RecursiveTypesAPIExtensions } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/ISequenceRequestResponseTest.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/ISequenceRequestResponseTest.cs index d057e21387..42a9258eaf 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/ISequenceRequestResponseTest.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/ISequenceRequestResponseTest.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.MirrorSequences using Newtonsoft.Json; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -83,3 +82,4 @@ public partial interface ISequenceRequestResponseTest : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModel.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModel.cs index ce98d96054..880a2b83a8 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModel.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModel.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.MirrorSequences.Models using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class ErrorModel { @@ -32,12 +31,12 @@ public ErrorModel(int code, string message) /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "code")] + [JsonProperty(PropertyName = "code")] public int Code { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } /// @@ -55,3 +54,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModelException.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModelException.cs index c52280536f..022032d8c4 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModelException.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/ErrorModelException.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -10,7 +10,6 @@ namespace Fixtures.MirrorSequences.Models { using MirrorSequences; using Microsoft.Rest; - using System.Net.Http; using System.Runtime; using System.Runtime.Serialization; using System.Security; @@ -19,7 +18,7 @@ namespace Fixtures.MirrorSequences.Models /// /// Exception thrown for an invalid response with ErrorModel information. /// -#if !PORTABLE +#if !PORTABLE [System.Serializable] #endif public class ErrorModelException : RestException @@ -65,7 +64,7 @@ public ErrorModelException(string message, System.Exception innerException) { } -#if !PORTABLE +#if !PORTABLE /// /// Initializes a new instance of the ErrorModelException class. /// @@ -100,3 +99,4 @@ public override void GetObjectData(SerializationInfo info, StreamingContext cont #endif } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/Pet.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/Pet.cs index 93c39da648..88e69d69b2 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/Pet.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/Pet.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.MirrorSequences.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Pet { @@ -36,22 +35,22 @@ public Pet() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "styles")] + [JsonProperty(PropertyName = "styles")] public IList Styles { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tag")] + [JsonProperty(PropertyName = "tag")] public string Tag { get; set; } /// @@ -79,3 +78,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/PetStyle.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/PetStyle.cs index 6eafd5ede7..b7af59fb16 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/PetStyle.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/Models/PetStyle.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.MirrorSequences.Models using Microsoft.Rest; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class PetStyle { @@ -31,7 +30,7 @@ public PetStyle(string name) /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// @@ -49,3 +48,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/SequenceRequestResponseTest.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/SequenceRequestResponseTest.cs index ae60911f6c..a3a02d4912 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/SequenceRequestResponseTest.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/SequenceRequestResponseTest.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -112,7 +112,7 @@ public SequenceRequestResponseTest(System.Uri baseUri, System.Net.Http.HttpClien /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -146,7 +146,7 @@ private void Initialize() } }; CustomInitialize(); - } + } /// /// Creates a new pet in the store. Duplicates are allowed /// @@ -585,3 +585,4 @@ private void Initialize() } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/SequenceRequestResponseTestExtensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/SequenceRequestResponseTestExtensions.cs index 7ae0bee44c..85ac560101 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/SequenceRequestResponseTestExtensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/Mirror.Sequences/SequenceRequestResponseTestExtensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.MirrorSequences using Models; using System.Collections; using System.Collections.Generic; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -124,3 +123,4 @@ public static IList AddPet(this ISequenceRequestResponseTest operations, IL } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/ISwaggerPetstoreV2.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/ISwaggerPetstoreV2.cs index 30877a5f87..bd8e34f918 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/ISwaggerPetstoreV2.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/ISwaggerPetstoreV2.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.PetstoreV2 using System.Collections; using System.Collections.Generic; using System.IO; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -358,3 +357,4 @@ public partial interface ISwaggerPetstoreV2 : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/ApiResponse.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/ApiResponse.cs index 9b449c806c..9c40b67b11 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/ApiResponse.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/ApiResponse.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2.Models using PetstoreV2; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class ApiResponse { @@ -32,18 +31,19 @@ public ApiResponse() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "code")] + [JsonProperty(PropertyName = "code")] public int? Code { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] + [JsonProperty(PropertyName = "type")] public string Type { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Category.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Category.cs index 9e5a2cc1ba..ec3275b85b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Category.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Category.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2.Models using PetstoreV2; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Category { @@ -31,13 +30,14 @@ public Category() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/LoginUserHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/LoginUserHeaders.cs index c3c38495d1..1ac85734c3 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/LoginUserHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/LoginUserHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2.Models using PetstoreV2; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for loginUser operation. @@ -37,14 +36,15 @@ public LoginUserHeaders() { } /// /// Gets or sets calls per hour allowed by the user /// - [Newtonsoft.Json.JsonProperty(PropertyName = "X-Rate-Limit")] + [JsonProperty(PropertyName = "X-Rate-Limit")] public int? XRateLimit { get; set; } /// /// Gets or sets date in UTC when toekn expires /// - [Newtonsoft.Json.JsonProperty(PropertyName = "X-Expires-After")] + [JsonProperty(PropertyName = "X-Expires-After")] public System.DateTime? XExpiresAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Order.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Order.cs index 85e8d552c9..c88f7c3c8c 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Order.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Order.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2.Models using PetstoreV2; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Order { @@ -37,35 +36,36 @@ public Order() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "petId")] + [JsonProperty(PropertyName = "petId")] public long? PetId { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "quantity")] + [JsonProperty(PropertyName = "quantity")] public int? Quantity { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "shipDate")] + [JsonProperty(PropertyName = "shipDate")] public System.DateTime? ShipDate { get; set; } /// /// Gets or sets order Status. Possible values include: 'placed', /// 'approved', 'delivered' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public string Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "complete")] + [JsonProperty(PropertyName = "complete")] public bool? Complete { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Pet.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Pet.cs index a741ef8d73..a8ee79ebf4 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Pet.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Pet.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.PetstoreV2.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Pet { @@ -43,49 +42,49 @@ public Pet() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "category")] + [JsonProperty(PropertyName = "category")] public Category Category { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "photoUrls")] + [JsonProperty(PropertyName = "photoUrls")] public IList PhotoUrls { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] + [JsonProperty(PropertyName = "tags")] public IList Tags { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "sByte")] + [JsonProperty(PropertyName = "sByte")] public byte[] SByteProperty { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "birthday")] + [JsonProperty(PropertyName = "birthday")] public System.DateTime? Birthday { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "dictionary")] + [JsonProperty(PropertyName = "dictionary")] public IDictionary Dictionary { get; set; } /// /// Gets or sets pet status in the store. Possible values include: /// 'available', 'pending', 'sold' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public string Status { get; set; } /// @@ -107,3 +106,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Tag.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Tag.cs index fb7b6cfaf7..bba00b12bf 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Tag.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/Tag.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2.Models using PetstoreV2; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Tag { @@ -31,13 +30,14 @@ public Tag() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/User.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/User.cs index 02d159ee30..a501e14da4 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/User.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/Models/User.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2.Models using PetstoreV2; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class User { @@ -38,44 +37,45 @@ public User() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "username")] + [JsonProperty(PropertyName = "username")] public string Username { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "firstName")] + [JsonProperty(PropertyName = "firstName")] public string FirstName { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "lastName")] + [JsonProperty(PropertyName = "lastName")] public string LastName { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "email")] + [JsonProperty(PropertyName = "email")] public string Email { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "password")] + [JsonProperty(PropertyName = "password")] public string Password { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "phone")] + [JsonProperty(PropertyName = "phone")] public string Phone { get; set; } /// /// Gets or sets user Status /// - [Newtonsoft.Json.JsonProperty(PropertyName = "userStatus")] + [JsonProperty(PropertyName = "userStatus")] public int? UserStatus { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/SwaggerPetstoreV2.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/SwaggerPetstoreV2.cs index 3d6b149f1c..e32aec7037 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/SwaggerPetstoreV2.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/SwaggerPetstoreV2.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -244,7 +244,7 @@ public SwaggerPetstoreV2(System.Uri baseUri, ServiceClientCredentials credential /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -278,7 +278,7 @@ private void Initialize() } }; CustomInitialize(); - } + } /// /// Add a new pet to the store /// @@ -1060,8 +1060,8 @@ private void Initialize() System.Net.Http.Headers.ContentDispositionHeaderValue _contentDispositionHeaderValue = new System.Net.Http.Headers.ContentDispositionHeaderValue("form-data"); _contentDispositionHeaderValue.Name = "fileContent"; _contentDispositionHeaderValue.FileName = _fileContentAsFileStream.Name; - _fileContent.Headers.ContentDisposition = _contentDispositionHeaderValue; - } + _fileContent.Headers.ContentDisposition = _contentDispositionHeaderValue; + } _multiPartContent.Add(_fileContent, "fileContent"); } if (fileName != null) @@ -2815,3 +2815,4 @@ private void Initialize() } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/SwaggerPetstoreV2Extensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/SwaggerPetstoreV2Extensions.cs index 9439f503f0..eea1b837d6 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/SwaggerPetstoreV2Extensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2/SwaggerPetstoreV2Extensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.PetstoreV2 using System.Collections; using System.Collections.Generic; using System.IO; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -721,3 +720,4 @@ public static void DeleteUser(this ISwaggerPetstoreV2 operations, string usernam } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/ISwaggerPetstoreV2.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/ISwaggerPetstoreV2.cs index 785f295019..aaf7888c9f 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/ISwaggerPetstoreV2.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/ISwaggerPetstoreV2.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.PetstoreV2AllSync using System.Collections; using System.Collections.Generic; using System.IO; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -352,3 +351,4 @@ public partial interface ISwaggerPetstoreV2 : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/ApiResponse.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/ApiResponse.cs index 89eb653ea6..3882c0c5d2 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/ApiResponse.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/ApiResponse.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2AllSync.Models using PetstoreV2AllSync; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class ApiResponse { @@ -32,18 +31,19 @@ public ApiResponse() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "code")] + [JsonProperty(PropertyName = "code")] public int? Code { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] + [JsonProperty(PropertyName = "type")] public string Type { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Category.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Category.cs index 1824d17aca..27ea4c9378 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Category.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Category.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2AllSync.Models using PetstoreV2AllSync; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Category { @@ -31,13 +30,14 @@ public Category() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/LoginUserHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/LoginUserHeaders.cs index 87a64a8b18..e24bc8f5ff 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/LoginUserHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/LoginUserHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2AllSync.Models using PetstoreV2AllSync; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for loginUser operation. @@ -37,14 +36,15 @@ public LoginUserHeaders() { } /// /// Gets or sets calls per hour allowed by the user /// - [Newtonsoft.Json.JsonProperty(PropertyName = "X-Rate-Limit")] + [JsonProperty(PropertyName = "X-Rate-Limit")] public int? XRateLimit { get; set; } /// /// Gets or sets date in UTC when toekn expires /// - [Newtonsoft.Json.JsonProperty(PropertyName = "X-Expires-After")] + [JsonProperty(PropertyName = "X-Expires-After")] public System.DateTime? XExpiresAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Order.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Order.cs index 9eabe2754f..a47d8fc8bd 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Order.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Order.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2AllSync.Models using PetstoreV2AllSync; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Order { @@ -37,35 +36,36 @@ public Order() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "petId")] + [JsonProperty(PropertyName = "petId")] public long? PetId { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "quantity")] + [JsonProperty(PropertyName = "quantity")] public int? Quantity { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "shipDate")] + [JsonProperty(PropertyName = "shipDate")] public System.DateTime? ShipDate { get; set; } /// /// Gets or sets order Status. Possible values include: 'placed', /// 'approved', 'delivered' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public string Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "complete")] + [JsonProperty(PropertyName = "complete")] public bool? Complete { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Pet.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Pet.cs index 27d983a7e0..b46ef5c6f2 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Pet.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Pet.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.PetstoreV2AllSync.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Pet { @@ -43,49 +42,49 @@ public Pet() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "category")] + [JsonProperty(PropertyName = "category")] public Category Category { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "photoUrls")] + [JsonProperty(PropertyName = "photoUrls")] public IList PhotoUrls { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] + [JsonProperty(PropertyName = "tags")] public IList Tags { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "sByte")] + [JsonProperty(PropertyName = "sByte")] public byte[] SByteProperty { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "birthday")] + [JsonProperty(PropertyName = "birthday")] public System.DateTime? Birthday { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "dictionary")] + [JsonProperty(PropertyName = "dictionary")] public IDictionary Dictionary { get; set; } /// /// Gets or sets pet status in the store. Possible values include: /// 'available', 'pending', 'sold' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public string Status { get; set; } /// @@ -107,3 +106,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Tag.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Tag.cs index 1fb10e44fc..9974869cfd 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Tag.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/Tag.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2AllSync.Models using PetstoreV2AllSync; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Tag { @@ -31,13 +30,14 @@ public Tag() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/User.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/User.cs index 9837bac937..03c822102d 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/User.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/Models/User.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2AllSync.Models using PetstoreV2AllSync; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class User { @@ -38,44 +37,45 @@ public User() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "username")] + [JsonProperty(PropertyName = "username")] public string Username { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "firstName")] + [JsonProperty(PropertyName = "firstName")] public string FirstName { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "lastName")] + [JsonProperty(PropertyName = "lastName")] public string LastName { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "email")] + [JsonProperty(PropertyName = "email")] public string Email { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "password")] + [JsonProperty(PropertyName = "password")] public string Password { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "phone")] + [JsonProperty(PropertyName = "phone")] public string Phone { get; set; } /// /// Gets or sets user Status /// - [Newtonsoft.Json.JsonProperty(PropertyName = "userStatus")] + [JsonProperty(PropertyName = "userStatus")] public int? UserStatus { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/SwaggerPetstoreV2.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/SwaggerPetstoreV2.cs index e79448e43a..13eafbc7eb 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/SwaggerPetstoreV2.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/SwaggerPetstoreV2.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -117,7 +117,7 @@ public SwaggerPetstoreV2(System.Uri baseUri, System.Net.Http.HttpClientHandler r /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -151,7 +151,7 @@ private void Initialize() } }; CustomInitialize(); - } + } /// /// Add a new pet to the store /// @@ -903,8 +903,8 @@ private void Initialize() System.Net.Http.Headers.ContentDispositionHeaderValue _contentDispositionHeaderValue = new System.Net.Http.Headers.ContentDispositionHeaderValue("form-data"); _contentDispositionHeaderValue.Name = "fileContent"; _contentDispositionHeaderValue.FileName = _fileContentAsFileStream.Name; - _fileContent.Headers.ContentDisposition = _contentDispositionHeaderValue; - } + _fileContent.Headers.ContentDisposition = _contentDispositionHeaderValue; + } _multiPartContent.Add(_fileContent, "fileContent"); } if (fileName != null) @@ -2574,3 +2574,4 @@ private void Initialize() } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/SwaggerPetstoreV2Extensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/SwaggerPetstoreV2Extensions.cs index c8b28b6c3a..66a09a1ef6 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/SwaggerPetstoreV2Extensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2AllSync/SwaggerPetstoreV2Extensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -13,7 +13,6 @@ namespace Fixtures.PetstoreV2AllSync using System.Collections; using System.Collections.Generic; using System.IO; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -1086,3 +1085,4 @@ public static HttpOperationResponse DeleteUserWithHttpMessages(this ISwaggerPets } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/ISwaggerPetstoreV2.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/ISwaggerPetstoreV2.cs index 2aa2a3466a..243040acf7 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/ISwaggerPetstoreV2.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/ISwaggerPetstoreV2.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.PetstoreV2NoSync using System.Collections; using System.Collections.Generic; using System.IO; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -352,3 +351,4 @@ public partial interface ISwaggerPetstoreV2 : System.IDisposable } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/ApiResponse.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/ApiResponse.cs index 8a599baa56..3a812b9e19 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/ApiResponse.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/ApiResponse.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2NoSync.Models using PetstoreV2NoSync; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class ApiResponse { @@ -32,18 +31,19 @@ public ApiResponse() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "code")] + [JsonProperty(PropertyName = "code")] public int? Code { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] + [JsonProperty(PropertyName = "type")] public string Type { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Category.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Category.cs index 542c1948d1..c29ff8d0d6 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Category.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Category.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2NoSync.Models using PetstoreV2NoSync; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Category { @@ -31,13 +30,14 @@ public Category() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/LoginUserHeaders.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/LoginUserHeaders.cs index 1604ccdc81..6cb81c48f3 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/LoginUserHeaders.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/LoginUserHeaders.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2NoSync.Models using PetstoreV2NoSync; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; /// /// Defines headers for loginUser operation. @@ -37,14 +36,15 @@ public LoginUserHeaders() { } /// /// Gets or sets calls per hour allowed by the user /// - [Newtonsoft.Json.JsonProperty(PropertyName = "X-Rate-Limit")] + [JsonProperty(PropertyName = "X-Rate-Limit")] public int? XRateLimit { get; set; } /// /// Gets or sets date in UTC when toekn expires /// - [Newtonsoft.Json.JsonProperty(PropertyName = "X-Expires-After")] + [JsonProperty(PropertyName = "X-Expires-After")] public System.DateTime? XExpiresAfter { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Order.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Order.cs index 29eac99eec..1873b1353a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Order.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Order.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2NoSync.Models using PetstoreV2NoSync; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Order { @@ -37,35 +36,36 @@ public Order() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "petId")] + [JsonProperty(PropertyName = "petId")] public long? PetId { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "quantity")] + [JsonProperty(PropertyName = "quantity")] public int? Quantity { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "shipDate")] + [JsonProperty(PropertyName = "shipDate")] public System.DateTime? ShipDate { get; set; } /// /// Gets or sets order Status. Possible values include: 'placed', /// 'approved', 'delivered' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public string Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "complete")] + [JsonProperty(PropertyName = "complete")] public bool? Complete { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Pet.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Pet.cs index 62901e93ef..27c08e3ffd 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Pet.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Pet.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -14,7 +14,6 @@ namespace Fixtures.PetstoreV2NoSync.Models using System.Collections; using System.Collections.Generic; using System.Linq; - using System.Net.Http; public partial class Pet { @@ -43,49 +42,49 @@ public Pet() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "category")] + [JsonProperty(PropertyName = "category")] public Category Category { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "photoUrls")] + [JsonProperty(PropertyName = "photoUrls")] public IList PhotoUrls { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] + [JsonProperty(PropertyName = "tags")] public IList Tags { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "sByte")] + [JsonProperty(PropertyName = "sByte")] public byte[] SByteProperty { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "birthday")] + [JsonProperty(PropertyName = "birthday")] public System.DateTime? Birthday { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "dictionary")] + [JsonProperty(PropertyName = "dictionary")] public IDictionary Dictionary { get; set; } /// /// Gets or sets pet status in the store. Possible values include: /// 'available', 'pending', 'sold' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public string Status { get; set; } /// @@ -107,3 +106,4 @@ public virtual void Validate() } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Tag.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Tag.cs index 3e61d0ea74..b5d3bb720e 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Tag.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/Tag.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2NoSync.Models using PetstoreV2NoSync; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class Tag { @@ -31,13 +30,14 @@ public Tag() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/User.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/User.cs index 94d5c5457d..4a153bee9c 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/User.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/Models/User.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -11,7 +11,6 @@ namespace Fixtures.PetstoreV2NoSync.Models using PetstoreV2NoSync; using Newtonsoft.Json; using System.Linq; - using System.Net.Http; public partial class User { @@ -38,44 +37,45 @@ public User() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "username")] + [JsonProperty(PropertyName = "username")] public string Username { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "firstName")] + [JsonProperty(PropertyName = "firstName")] public string FirstName { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "lastName")] + [JsonProperty(PropertyName = "lastName")] public string LastName { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "email")] + [JsonProperty(PropertyName = "email")] public string Email { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "password")] + [JsonProperty(PropertyName = "password")] public string Password { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "phone")] + [JsonProperty(PropertyName = "phone")] public string Phone { get; set; } /// /// Gets or sets user Status /// - [Newtonsoft.Json.JsonProperty(PropertyName = "userStatus")] + [JsonProperty(PropertyName = "userStatus")] public int? UserStatus { get; set; } } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/SwaggerPetstoreV2.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/SwaggerPetstoreV2.cs index fc0e4e1ba1..6e8f3f9f0a 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/SwaggerPetstoreV2.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/SwaggerPetstoreV2.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -117,7 +117,7 @@ public SwaggerPetstoreV2(System.Uri baseUri, System.Net.Http.HttpClientHandler r /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. @@ -151,7 +151,7 @@ private void Initialize() } }; CustomInitialize(); - } + } /// /// Add a new pet to the store /// @@ -903,8 +903,8 @@ private void Initialize() System.Net.Http.Headers.ContentDispositionHeaderValue _contentDispositionHeaderValue = new System.Net.Http.Headers.ContentDispositionHeaderValue("form-data"); _contentDispositionHeaderValue.Name = "fileContent"; _contentDispositionHeaderValue.FileName = _fileContentAsFileStream.Name; - _fileContent.Headers.ContentDisposition = _contentDispositionHeaderValue; - } + _fileContent.Headers.ContentDisposition = _contentDispositionHeaderValue; + } _multiPartContent.Add(_fileContent, "fileContent"); } if (fileName != null) @@ -2574,3 +2574,4 @@ private void Initialize() } } + diff --git a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/SwaggerPetstoreV2Extensions.cs b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/SwaggerPetstoreV2Extensions.cs index b193c9cdd6..59d48d240b 100644 --- a/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/SwaggerPetstoreV2Extensions.cs +++ b/src/generator/AutoRest.CSharp.Tests/Expected/PetstoreV2NoSync/SwaggerPetstoreV2Extensions.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. -// +// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. @@ -12,7 +12,6 @@ namespace Fixtures.PetstoreV2NoSync using System.Collections; using System.Collections.Generic; using System.IO; - using System.Net.Http; using System.Threading; using System.Threading.Tasks; @@ -414,3 +413,4 @@ public static partial class SwaggerPetstoreV2Extensions } } + From d9e780511b95abfca11f38f368fd7083476462d1 Mon Sep 17 00:00:00 2001 From: Garrett Serack Date: Fri, 18 Nov 2016 15:16:59 -0800 Subject: [PATCH 07/10] regenerated samples (line endings) --- .../IStorageAccountsOperations.cs | 26 +- .../Azure.CSharp/IStorageManagementClient.cs | 4 +- .../Azure.CSharp/IUsageOperations.cs | 8 +- .../Azure.CSharp/Models/AccountStatus.cs | 11 +- .../Azure.CSharp/Models/AccountType.cs | 17 +- .../Models/CheckNameAvailabilityResult.cs | 8 +- .../Azure.CSharp/Models/CustomDomain.cs | 11 +- .../Azure.CSharp/Models/Endpoints.cs | 10 +- .../azure-storage/Azure.CSharp/Models/Page.cs | 24 +- .../Azure.CSharp/Models/ProvisioningState.cs | 13 +- .../Azure.CSharp/Models/Reason.cs | 11 +- .../Azure.CSharp/Models/Resource.cs | 28 +- .../Azure.CSharp/Models/StorageAccount.cs | 12 +- ...eAccountCheckNameAvailabilityParameters.cs | 11 +- .../Models/StorageAccountCreateParameters.cs | 26 +- .../Azure.CSharp/Models/StorageAccountKeys.cs | 6 +- .../Models/StorageAccountProperties.cs | 28 +- ...torageAccountPropertiesCreateParameters.cs | 4 +- ...torageAccountPropertiesUpdateParameters.cs | 10 +- .../StorageAccountRegenerateKeyParameters.cs | 9 +- .../Models/StorageAccountUpdateParameters.cs | 22 +- .../Azure.CSharp/Models/Usage.cs | 15 +- .../Azure.CSharp/Models/UsageName.cs | 6 +- .../Azure.CSharp/Models/UsageUnit.cs | 19 +- .../Azure.CSharp/StorageAccountsOperations.cs | 744 +++++++------- .../StorageAccountsOperationsExtensions.cs | 51 +- .../Azure.CSharp/StorageManagementClient.cs | 83 +- .../Azure.CSharp/UsageOperations.cs | 90 +- .../Azure.CSharp/UsageOperationsExtensions.cs | 13 +- Samples/petstore/CSharp/ISwaggerPetstore.cs | 52 +- Samples/petstore/CSharp/Models/Category.cs | 6 +- Samples/petstore/CSharp/Models/Order.cs | 16 +- Samples/petstore/CSharp/Models/Pet.cs | 29 +- Samples/petstore/CSharp/Models/Tag.cs | 6 +- Samples/petstore/CSharp/Models/User.cs | 18 +- Samples/petstore/CSharp/SwaggerPetstore.cs | 941 +++++++++--------- .../CSharp/SwaggerPetstoreExtensions.cs | 107 +- 37 files changed, 1329 insertions(+), 1166 deletions(-) diff --git a/Samples/azure-storage/Azure.CSharp/IStorageAccountsOperations.cs b/Samples/azure-storage/Azure.CSharp/IStorageAccountsOperations.cs index f1a8c362cb..1a1e5a6def 100644 --- a/Samples/azure-storage/Azure.CSharp/IStorageAccountsOperations.cs +++ b/Samples/azure-storage/Azure.CSharp/IStorageAccountsOperations.cs @@ -1,8 +1,13 @@ namespace Petstore { + using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; /// /// StorageAccountsOperations operations. @@ -32,7 +37,7 @@ public partial interface IStorageAccountsOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> CheckNameAvailabilityWithHttpMessagesAsync(StorageAccountCheckNameAvailabilityParameters accountName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> CheckNameAvailabilityWithHttpMessagesAsync(StorageAccountCheckNameAvailabilityParameters accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Asynchronously creates a new storage account with the specified /// parameters. Existing accounts cannot be updated with this API and @@ -66,7 +71,7 @@ public partial interface IStorageAccountsOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountCreateParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a storage account in Microsoft Azure. /// @@ -90,7 +95,7 @@ public partial interface IStorageAccountsOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Returns the properties for the specified storage account including /// but not limited to name, account type, location, and account @@ -120,7 +125,7 @@ public partial interface IStorageAccountsOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> GetPropertiesWithHttpMessagesAsync(string resourceGroupName, string accountName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> GetPropertiesWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates the account type or tags for a storage account. It can also /// be used to add a custom domain (note that custom domains cannot be @@ -163,7 +168,7 @@ public partial interface IStorageAccountsOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountUpdateParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists the access keys for the specified storage account. /// @@ -188,7 +193,7 @@ public partial interface IStorageAccountsOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string accountName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all the storage accounts available under the subscription. /// Note that storage keys are not returned; use the ListKeys operation @@ -209,7 +214,7 @@ public partial interface IStorageAccountsOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Lists all the storage accounts available under the given resource /// group. Note that storage keys are not returned; use the ListKeys @@ -233,7 +238,7 @@ public partial interface IStorageAccountsOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Regenerates the access keys for the specified storage account. /// @@ -264,7 +269,7 @@ public partial interface IStorageAccountsOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountRegenerateKeyParameters regenerateKey, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountRegenerateKeyParameters regenerateKey, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Asynchronously creates a new storage account with the specified /// parameters. Existing accounts cannot be updated with this API and @@ -298,6 +303,7 @@ public partial interface IStorageAccountsOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountCreateParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/Samples/azure-storage/Azure.CSharp/IStorageManagementClient.cs b/Samples/azure-storage/Azure.CSharp/IStorageManagementClient.cs index 0acd025281..c0796581ab 100644 --- a/Samples/azure-storage/Azure.CSharp/IStorageManagementClient.cs +++ b/Samples/azure-storage/Azure.CSharp/IStorageManagementClient.cs @@ -4,6 +4,7 @@ namespace Petstore using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; + using Newtonsoft.Json; /// /// The Storage Management Client. @@ -28,7 +29,7 @@ public partial interface IStorageManagementClient : System.IDisposable /// /// Credentials needed for the client to connect to Azure. /// - Microsoft.Rest.ServiceClientCredentials Credentials { get; } + ServiceClientCredentials Credentials { get; } /// /// Gets subscription credentials which uniquely identify Microsoft @@ -72,3 +73,4 @@ public partial interface IStorageManagementClient : System.IDisposable } } + diff --git a/Samples/azure-storage/Azure.CSharp/IUsageOperations.cs b/Samples/azure-storage/Azure.CSharp/IUsageOperations.cs index a82d8549c6..e0ffa83109 100644 --- a/Samples/azure-storage/Azure.CSharp/IUsageOperations.cs +++ b/Samples/azure-storage/Azure.CSharp/IUsageOperations.cs @@ -1,8 +1,13 @@ namespace Petstore { + using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; /// /// UsageOperations operations. @@ -28,6 +33,7 @@ public partial interface IUsageOperations /// /// Thrown when a required parameter is null /// - System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/AccountStatus.cs b/Samples/azure-storage/Azure.CSharp/Models/AccountStatus.cs index eea1fcf74d..ced995a745 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/AccountStatus.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/AccountStatus.cs @@ -1,16 +1,21 @@ namespace Petstore.Models { + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; /// /// Defines values for AccountStatus. /// - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public enum AccountStatus { - [System.Runtime.Serialization.EnumMember(Value = "Available")] + [EnumMember(Value = "Available")] Available, - [System.Runtime.Serialization.EnumMember(Value = "Unavailable")] + [EnumMember(Value = "Unavailable")] Unavailable } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/AccountType.cs b/Samples/azure-storage/Azure.CSharp/Models/AccountType.cs index 90a6a4f8fd..391efbb94f 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/AccountType.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/AccountType.cs @@ -1,22 +1,27 @@ namespace Petstore.Models { + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; /// /// Defines values for AccountType. /// - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public enum AccountType { - [System.Runtime.Serialization.EnumMember(Value = "Standard_LRS")] + [EnumMember(Value = "Standard_LRS")] StandardLRS, - [System.Runtime.Serialization.EnumMember(Value = "Standard_ZRS")] + [EnumMember(Value = "Standard_ZRS")] StandardZRS, - [System.Runtime.Serialization.EnumMember(Value = "Standard_GRS")] + [EnumMember(Value = "Standard_GRS")] StandardGRS, - [System.Runtime.Serialization.EnumMember(Value = "Standard_RAGRS")] + [EnumMember(Value = "Standard_RAGRS")] StandardRAGRS, - [System.Runtime.Serialization.EnumMember(Value = "Premium_LRS")] + [EnumMember(Value = "Premium_LRS")] PremiumLRS } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/CheckNameAvailabilityResult.cs b/Samples/azure-storage/Azure.CSharp/Models/CheckNameAvailabilityResult.cs index 4bd2604a1c..e244d1c60d 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/CheckNameAvailabilityResult.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/CheckNameAvailabilityResult.cs @@ -1,6 +1,7 @@ namespace Petstore.Models { + using Newtonsoft.Json; using System.Linq; /// @@ -40,7 +41,7 @@ public CheckNameAvailabilityResult() { } /// for you to use. If true, the name is available. If false, the name /// has already been taken or invalid and cannot be used. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "nameAvailable")] + [JsonProperty(PropertyName = "nameAvailable")] public bool? NameAvailable { get; set; } /// @@ -48,14 +49,15 @@ public CheckNameAvailabilityResult() { } /// Reason element is only returned if NameAvailable is false. Possible /// values include: 'AccountNameInvalid', 'AlreadyExists' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "reason")] + [JsonProperty(PropertyName = "reason")] public Reason? Reason { get; set; } /// /// Gets an error message explaining the Reason value in more detail. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "message")] + [JsonProperty(PropertyName = "message")] public string Message { get; set; } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/CustomDomain.cs b/Samples/azure-storage/Azure.CSharp/Models/CustomDomain.cs index ea2f43622f..f93918b643 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/CustomDomain.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/CustomDomain.cs @@ -1,6 +1,8 @@ namespace Petstore.Models { + using Microsoft.Rest; + using Newtonsoft.Json; using System.Linq; /// @@ -31,28 +33,29 @@ public CustomDomain() { } /// /// Gets or sets the custom domain name. Name is the CNAME source. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// Gets or sets indicates whether indirect CName validation is /// enabled. Default value is false. This should only be set on updates /// - [Newtonsoft.Json.JsonProperty(PropertyName = "useSubDomain")] + [JsonProperty(PropertyName = "useSubDomain")] public bool? UseSubDomain { get; set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { if (Name == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Name"); + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); } } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/Endpoints.cs b/Samples/azure-storage/Azure.CSharp/Models/Endpoints.cs index bf17ae39f5..0dcf180ce5 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/Endpoints.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/Endpoints.cs @@ -1,6 +1,7 @@ namespace Petstore.Models { + using Newtonsoft.Json; using System.Linq; /// @@ -32,26 +33,27 @@ public Endpoints() { } /// /// Gets the blob endpoint. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "blob")] + [JsonProperty(PropertyName = "blob")] public string Blob { get; set; } /// /// Gets the queue endpoint. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "queue")] + [JsonProperty(PropertyName = "queue")] public string Queue { get; set; } /// /// Gets the table endpoint. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "table")] + [JsonProperty(PropertyName = "table")] public string Table { get; set; } /// /// Gets the file endpoint. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "file")] + [JsonProperty(PropertyName = "file")] public string File { get; set; } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/Page.cs b/Samples/azure-storage/Azure.CSharp/Models/Page.cs index aaf42d184a..42c3d682a1 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/Page.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/Page.cs @@ -1,39 +1,45 @@ namespace Petstore.Models { + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; /// /// Defines a page in Azure responses. /// /// Type of the page content items - [Newtonsoft.Json.JsonObject] - public class Page : Microsoft.Rest.Azure.IPage + [JsonObject] + public class Page : IPage { /// /// Gets the link to the next page. /// - [Newtonsoft.Json.JsonProperty("")] - public System.String NextPageLink { get; private set; } + [JsonProperty("")] + public string NextPageLink { get; private set; } - [Newtonsoft.Json.JsonProperty("value")] - private System.Collections.Generic.IList Items{ get; set; } + [JsonProperty("value")] + private IList Items{ get; set; } /// /// Returns an enumerator that iterates through the collection. /// /// A an enumerator that can be used to iterate through the collection. - public System.Collections.Generic.IEnumerator GetEnumerator() + public IEnumerator GetEnumerator() { - return (Items == null) ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); } /// /// Returns an enumerator that iterates through the collection. /// /// A an enumerator that can be used to iterate through the collection. - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/ProvisioningState.cs b/Samples/azure-storage/Azure.CSharp/Models/ProvisioningState.cs index fa1b42f705..d973b58255 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/ProvisioningState.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/ProvisioningState.cs @@ -1,18 +1,23 @@ namespace Petstore.Models { + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; /// /// Defines values for ProvisioningState. /// - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public enum ProvisioningState { - [System.Runtime.Serialization.EnumMember(Value = "Creating")] + [EnumMember(Value = "Creating")] Creating, - [System.Runtime.Serialization.EnumMember(Value = "ResolvingDNS")] + [EnumMember(Value = "ResolvingDNS")] ResolvingDNS, - [System.Runtime.Serialization.EnumMember(Value = "Succeeded")] + [EnumMember(Value = "Succeeded")] Succeeded } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/Reason.cs b/Samples/azure-storage/Azure.CSharp/Models/Reason.cs index f103d28c19..b944649230 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/Reason.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/Reason.cs @@ -1,16 +1,21 @@ namespace Petstore.Models { + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; /// /// Defines values for Reason. /// - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public enum Reason { - [System.Runtime.Serialization.EnumMember(Value = "AccountNameInvalid")] + [EnumMember(Value = "AccountNameInvalid")] AccountNameInvalid, - [System.Runtime.Serialization.EnumMember(Value = "AlreadyExists")] + [EnumMember(Value = "AlreadyExists")] AlreadyExists } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/Resource.cs b/Samples/azure-storage/Azure.CSharp/Models/Resource.cs index 7b7eee48d2..c030f1ccc5 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/Resource.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/Resource.cs @@ -1,9 +1,14 @@ namespace Petstore.Models { + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; - public partial class Resource : Microsoft.Rest.Azure.IResource + public partial class Resource : IResource { /// /// Initializes a new instance of the Resource class. @@ -18,7 +23,7 @@ public Resource() { } /// Resource type /// Resource location /// Resource tags - public Resource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary)) + public Resource(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary)) { Id = id; Name = name; @@ -30,32 +35,33 @@ public Resource() { } /// /// Gets resource Id /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public string Id { get; private set; } + [JsonProperty(PropertyName = "id")] + public string Id { get; protected set; } /// /// Gets resource name /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] - public string Name { get; private set; } + [JsonProperty(PropertyName = "name")] + public string Name { get; protected set; } /// /// Gets resource type /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] - public string Type { get; private set; } + [JsonProperty(PropertyName = "type")] + public string Type { get; protected set; } /// /// Gets or sets resource location /// - [Newtonsoft.Json.JsonProperty(PropertyName = "location")] + [JsonProperty(PropertyName = "location")] public string Location { get; set; } /// /// Gets or sets resource tags /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] - public System.Collections.Generic.IDictionary Tags { get; set; } + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/StorageAccount.cs b/Samples/azure-storage/Azure.CSharp/Models/StorageAccount.cs index 096bab2532..842fb1b7f3 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/StorageAccount.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/StorageAccount.cs @@ -1,6 +1,9 @@ namespace Petstore.Models { + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -21,7 +24,7 @@ public StorageAccount() { } /// Resource type /// Resource location /// Resource tags - public StorageAccount(string id = default(string), string name = default(string), string type = default(string), string location = default(string), System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), StorageAccountProperties properties = default(StorageAccountProperties)) + public StorageAccount(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), StorageAccountProperties properties = default(StorageAccountProperties)) : base(id, name, type, location, tags) { Properties = properties; @@ -29,7 +32,7 @@ public StorageAccount() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties")] + [JsonProperty(PropertyName = "properties")] public StorageAccountProperties Properties { get; set; } /// @@ -40,10 +43,11 @@ public StorageAccount() { } /// public virtual void Validate() { - if (this.Properties != null) + if (Properties != null) { - this.Properties.Validate(); + Properties.Validate(); } } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountCheckNameAvailabilityParameters.cs b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountCheckNameAvailabilityParameters.cs index 59a269d294..52308d0c1a 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountCheckNameAvailabilityParameters.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountCheckNameAvailabilityParameters.cs @@ -1,6 +1,8 @@ namespace Petstore.Models { + using Microsoft.Rest; + using Newtonsoft.Json; using System.Linq; public partial class StorageAccountCheckNameAvailabilityParameters @@ -23,26 +25,27 @@ public StorageAccountCheckNameAvailabilityParameters() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "type")] + [JsonProperty(PropertyName = "type")] public string Type { get; set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { if (Name == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Name"); + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); } } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountCreateParameters.cs b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountCreateParameters.cs index 4da6a0c965..877d7199c5 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountCreateParameters.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountCreateParameters.cs @@ -1,12 +1,17 @@ namespace Petstore.Models { + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// /// The parameters to provide for the account. /// - public partial class StorageAccountCreateParameters : Microsoft.Rest.Azure.IResource + public partial class StorageAccountCreateParameters : IResource { /// /// Initializes a new instance of the StorageAccountCreateParameters @@ -20,7 +25,7 @@ public StorageAccountCreateParameters() { } /// /// Resource location /// Resource tags - public StorageAccountCreateParameters(string location, System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), StorageAccountPropertiesCreateParameters properties = default(StorageAccountPropertiesCreateParameters)) + public StorageAccountCreateParameters(string location, IDictionary tags = default(IDictionary), StorageAccountPropertiesCreateParameters properties = default(StorageAccountPropertiesCreateParameters)) { Location = location; Tags = tags; @@ -30,36 +35,37 @@ public StorageAccountCreateParameters() { } /// /// Gets or sets resource location /// - [Newtonsoft.Json.JsonProperty(PropertyName = "location")] + [JsonProperty(PropertyName = "location")] public string Location { get; set; } /// /// Gets or sets resource tags /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] - public System.Collections.Generic.IDictionary Tags { get; set; } + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties")] + [JsonProperty(PropertyName = "properties")] public StorageAccountPropertiesCreateParameters Properties { get; set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { if (Location == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Location"); + throw new ValidationException(ValidationRules.CannotBeNull, "Location"); } - if (this.Properties != null) + if (Properties != null) { - this.Properties.Validate(); + Properties.Validate(); } } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountKeys.cs b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountKeys.cs index c6da7cd31e..548f8c5800 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountKeys.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountKeys.cs @@ -1,6 +1,7 @@ namespace Petstore.Models { + using Newtonsoft.Json; using System.Linq; /// @@ -27,14 +28,15 @@ public StorageAccountKeys() { } /// /// Gets the value of key 1. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "key1")] + [JsonProperty(PropertyName = "key1")] public string Key1 { get; set; } /// /// Gets the value of key 2. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "key2")] + [JsonProperty(PropertyName = "key2")] public string Key2 { get; set; } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountProperties.cs b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountProperties.cs index 802b57fec3..65a57f0778 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountProperties.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountProperties.cs @@ -1,6 +1,7 @@ namespace Petstore.Models { + using Newtonsoft.Json; using System.Linq; public partial class StorageAccountProperties @@ -70,7 +71,7 @@ public StorageAccountProperties() { } /// was called. Possible values include: 'Creating', 'ResolvingDNS', /// 'Succeeded' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "provisioningState")] + [JsonProperty(PropertyName = "provisioningState")] public ProvisioningState? ProvisioningState { get; set; } /// @@ -78,7 +79,7 @@ public StorageAccountProperties() { } /// 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', 'Standard_RAGRS', /// 'Premium_LRS' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "accountType")] + [JsonProperty(PropertyName = "accountType")] public AccountType? AccountType { get; set; } /// @@ -86,13 +87,13 @@ public StorageAccountProperties() { } /// blob, queue or table object.Note that StandardZRS and PremiumLRS /// accounts only return the blob endpoint. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "primaryEndpoints")] + [JsonProperty(PropertyName = "primaryEndpoints")] public Endpoints PrimaryEndpoints { get; set; } /// /// Gets the location of the primary for the storage account. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "primaryLocation")] + [JsonProperty(PropertyName = "primaryLocation")] public string PrimaryLocation { get; set; } /// @@ -100,7 +101,7 @@ public StorageAccountProperties() { } /// storage account is available or unavailable. Possible values /// include: 'Available', 'Unavailable' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "statusOfPrimary")] + [JsonProperty(PropertyName = "statusOfPrimary")] public AccountStatus? StatusOfPrimary { get; set; } /// @@ -110,7 +111,7 @@ public StorageAccountProperties() { } /// instance. Only available if the accountType is StandardGRS or /// StandardRAGRS. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "lastGeoFailoverTime")] + [JsonProperty(PropertyName = "lastGeoFailoverTime")] public System.DateTime? LastGeoFailoverTime { get; set; } /// @@ -118,7 +119,7 @@ public StorageAccountProperties() { } /// account. Only available if the accountType is StandardGRS or /// StandardRAGRS. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "secondaryLocation")] + [JsonProperty(PropertyName = "secondaryLocation")] public string SecondaryLocation { get; set; } /// @@ -127,20 +128,20 @@ public StorageAccountProperties() { } /// accountType is StandardGRS or StandardRAGRS. Possible values /// include: 'Available', 'Unavailable' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "statusOfSecondary")] + [JsonProperty(PropertyName = "statusOfSecondary")] public AccountStatus? StatusOfSecondary { get; set; } /// /// Gets the creation date and time of the storage account in UTC. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "creationTime")] + [JsonProperty(PropertyName = "creationTime")] public System.DateTime? CreationTime { get; set; } /// /// Gets the user assigned custom domain assigned to this storage /// account. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "customDomain")] + [JsonProperty(PropertyName = "customDomain")] public CustomDomain CustomDomain { get; set; } /// @@ -149,7 +150,7 @@ public StorageAccountProperties() { } /// storage account. Only available if the accountType is /// StandardRAGRS. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "secondaryEndpoints")] + [JsonProperty(PropertyName = "secondaryEndpoints")] public Endpoints SecondaryEndpoints { get; set; } /// @@ -160,10 +161,11 @@ public StorageAccountProperties() { } /// public virtual void Validate() { - if (this.CustomDomain != null) + if (CustomDomain != null) { - this.CustomDomain.Validate(); + CustomDomain.Validate(); } } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesCreateParameters.cs b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesCreateParameters.cs index e999571ecc..169a637bfc 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesCreateParameters.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesCreateParameters.cs @@ -1,6 +1,7 @@ namespace Petstore.Models { + using Newtonsoft.Json; using System.Linq; public partial class StorageAccountPropertiesCreateParameters @@ -28,7 +29,7 @@ public StorageAccountPropertiesCreateParameters(AccountType accountType) /// 'Standard_LRS', 'Standard_ZRS', 'Standard_GRS', 'Standard_RAGRS', /// 'Premium_LRS' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "accountType")] + [JsonProperty(PropertyName = "accountType")] public AccountType AccountType { get; set; } /// @@ -42,3 +43,4 @@ public virtual void Validate() } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesUpdateParameters.cs b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesUpdateParameters.cs index 7d4e4b491c..217eab1941 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesUpdateParameters.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountPropertiesUpdateParameters.cs @@ -1,6 +1,7 @@ namespace Petstore.Models { + using Newtonsoft.Json; using System.Linq; public partial class StorageAccountPropertiesUpdateParameters @@ -39,7 +40,7 @@ public StorageAccountPropertiesUpdateParameters() { } /// Possible values include: 'Standard_LRS', 'Standard_ZRS', /// 'Standard_GRS', 'Standard_RAGRS', 'Premium_LRS' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "accountType")] + [JsonProperty(PropertyName = "accountType")] public AccountType? AccountType { get; set; } /// @@ -48,7 +49,7 @@ public StorageAccountPropertiesUpdateParameters() { } /// account at this time. To clear the existing custom domain, use an /// empty string for the custom domain name property. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "customDomain")] + [JsonProperty(PropertyName = "customDomain")] public CustomDomain CustomDomain { get; set; } /// @@ -59,10 +60,11 @@ public StorageAccountPropertiesUpdateParameters() { } /// public virtual void Validate() { - if (this.CustomDomain != null) + if (CustomDomain != null) { - this.CustomDomain.Validate(); + CustomDomain.Validate(); } } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountRegenerateKeyParameters.cs b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountRegenerateKeyParameters.cs index e2d88e7194..46ed614336 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountRegenerateKeyParameters.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountRegenerateKeyParameters.cs @@ -1,6 +1,8 @@ namespace Petstore.Models { + using Microsoft.Rest; + using Newtonsoft.Json; using System.Linq; public partial class StorageAccountRegenerateKeyParameters @@ -22,21 +24,22 @@ public StorageAccountRegenerateKeyParameters(string keyName) /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "keyName")] + [JsonProperty(PropertyName = "keyName")] public string KeyName { get; set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { if (KeyName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "KeyName"); + throw new ValidationException(ValidationRules.CannotBeNull, "KeyName"); } } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountUpdateParameters.cs b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountUpdateParameters.cs index b784dc82bb..8bc84b2cf2 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/StorageAccountUpdateParameters.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/StorageAccountUpdateParameters.cs @@ -1,12 +1,17 @@ namespace Petstore.Models { + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// /// The parameters to update on the account. /// - public partial class StorageAccountUpdateParameters : Microsoft.Rest.Azure.IResource + public partial class StorageAccountUpdateParameters : IResource { /// /// Initializes a new instance of the StorageAccountUpdateParameters @@ -19,7 +24,7 @@ public StorageAccountUpdateParameters() { } /// class. /// /// Resource tags - public StorageAccountUpdateParameters(System.Collections.Generic.IDictionary tags = default(System.Collections.Generic.IDictionary), StorageAccountPropertiesUpdateParameters properties = default(StorageAccountPropertiesUpdateParameters)) + public StorageAccountUpdateParameters(IDictionary tags = default(IDictionary), StorageAccountPropertiesUpdateParameters properties = default(StorageAccountPropertiesUpdateParameters)) { Tags = tags; Properties = properties; @@ -28,26 +33,27 @@ public StorageAccountUpdateParameters() { } /// /// Gets or sets resource tags /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] - public System.Collections.Generic.IDictionary Tags { get; set; } + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "properties")] + [JsonProperty(PropertyName = "properties")] public StorageAccountPropertiesUpdateParameters Properties { get; set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { - if (this.Properties != null) + if (Properties != null) { - this.Properties.Validate(); + Properties.Validate(); } } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/Usage.cs b/Samples/azure-storage/Azure.CSharp/Models/Usage.cs index 99fb59e41c..7cdb359248 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/Usage.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/Usage.cs @@ -1,6 +1,8 @@ namespace Petstore.Models { + using Microsoft.Rest; + using Newtonsoft.Json; using System.Linq; /// @@ -36,41 +38,42 @@ public Usage(UsageUnit unit, int currentValue, int limit, UsageName name) /// Gets the unit of measurement. Possible values include: 'Count', /// 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond', 'BytesPerSecond' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "unit")] + [JsonProperty(PropertyName = "unit")] public UsageUnit Unit { get; set; } /// /// Gets the current count of the allocated resources in the /// subscription. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "currentValue")] + [JsonProperty(PropertyName = "currentValue")] public int CurrentValue { get; set; } /// /// Gets the maximum count of the resources that can be allocated in /// the subscription. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "limit")] + [JsonProperty(PropertyName = "limit")] public int Limit { get; set; } /// /// Gets the name of the type of usage. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public UsageName Name { get; set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { if (Name == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Name"); + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); } } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/UsageName.cs b/Samples/azure-storage/Azure.CSharp/Models/UsageName.cs index 3d3d191e31..c757db0604 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/UsageName.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/UsageName.cs @@ -1,6 +1,7 @@ namespace Petstore.Models { + using Newtonsoft.Json; using System.Linq; /// @@ -29,14 +30,15 @@ public UsageName() { } /// /// Gets a string describing the resource name. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "value")] + [JsonProperty(PropertyName = "value")] public string Value { get; set; } /// /// Gets a localized string describing the resource name. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "localizedValue")] + [JsonProperty(PropertyName = "localizedValue")] public string LocalizedValue { get; set; } } } + diff --git a/Samples/azure-storage/Azure.CSharp/Models/UsageUnit.cs b/Samples/azure-storage/Azure.CSharp/Models/UsageUnit.cs index d435ce5def..f7e2402fd3 100644 --- a/Samples/azure-storage/Azure.CSharp/Models/UsageUnit.cs +++ b/Samples/azure-storage/Azure.CSharp/Models/UsageUnit.cs @@ -1,24 +1,29 @@ namespace Petstore.Models { + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; /// /// Defines values for UsageUnit. /// - [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] + [JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))] public enum UsageUnit { - [System.Runtime.Serialization.EnumMember(Value = "Count")] + [EnumMember(Value = "Count")] Count, - [System.Runtime.Serialization.EnumMember(Value = "Bytes")] + [EnumMember(Value = "Bytes")] Bytes, - [System.Runtime.Serialization.EnumMember(Value = "Seconds")] + [EnumMember(Value = "Seconds")] Seconds, - [System.Runtime.Serialization.EnumMember(Value = "Percent")] + [EnumMember(Value = "Percent")] Percent, - [System.Runtime.Serialization.EnumMember(Value = "CountsPerSecond")] + [EnumMember(Value = "CountsPerSecond")] CountsPerSecond, - [System.Runtime.Serialization.EnumMember(Value = "BytesPerSecond")] + [EnumMember(Value = "BytesPerSecond")] BytesPerSecond } } + diff --git a/Samples/azure-storage/Azure.CSharp/StorageAccountsOperations.cs b/Samples/azure-storage/Azure.CSharp/StorageAccountsOperations.cs index ea0d0b0f1d..360fb4b696 100644 --- a/Samples/azure-storage/Azure.CSharp/StorageAccountsOperations.cs +++ b/Samples/azure-storage/Azure.CSharp/StorageAccountsOperations.cs @@ -1,15 +1,22 @@ namespace Petstore { - using System.Linq; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; /// /// StorageAccountsOperations operations. /// - internal partial class StorageAccountsOperations : Microsoft.Rest.IServiceOperations, IStorageAccountsOperations + internal partial class StorageAccountsOperations : IServiceOperations, IStorageAccountsOperations { /// /// Initializes a new instance of the StorageAccountsOperations class. @@ -22,11 +29,11 @@ internal partial class StorageAccountsOperations : Microsoft.Rest.IServiceOperat /// internal StorageAccountsOperations(StorageManagementClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } - this.Client = client; + Client = client; } /// @@ -48,77 +55,77 @@ internal StorageAccountsOperations(StorageManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> CheckNameAvailabilityWithHttpMessagesAsync(StorageAccountCheckNameAvailabilityParameters accountName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> CheckNameAvailabilityWithHttpMessagesAsync(StorageAccountCheckNameAvailabilityParameters accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (accountName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "accountName"); + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } if (accountName != null) { accountName.Validate(); } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("accountName", accountName); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailability", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailability", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Storage/checkNameAvailability").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } if (customHeaders != null) { @@ -136,40 +143,40 @@ internal StorageAccountsOperations(StorageManagementClient client) string _requestContent = null; if(accountName != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(accountName, this.Client.SerializationSettings); + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(accountName, Client.SerializationSettings); _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -177,15 +184,15 @@ internal StorageAccountsOperations(StorageManagementClient client) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -195,7 +202,7 @@ internal StorageAccountsOperations(StorageManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -208,7 +215,7 @@ internal StorageAccountsOperations(StorageManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -217,12 +224,12 @@ internal StorageAccountsOperations(StorageManagementClient client) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -251,12 +258,12 @@ internal StorageAccountsOperations(StorageManagementClient client) /// /// The cancellation token. /// - public async System.Threading.Tasks.Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountCreateParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Send Request - Microsoft.Rest.Azure.AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync( + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync( resourceGroupName, accountName, parameters, customHeaders, cancellationToken); - return await this.Client.GetPutOrPatchOperationResultAsync(_response, + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken); } @@ -278,88 +285,88 @@ internal StorageAccountsOperations(StorageManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (accountName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "accountName"); + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } if (accountName != null) { if (accountName.Length > 24) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "accountName", 24); + throw new ValidationException(ValidationRules.MaxLength, "accountName", 24); } if (accountName.Length < 3) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3); + throw new ValidationException(ValidationRules.MinLength, "accountName", 3); } } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } if (customHeaders != null) { @@ -376,43 +383,43 @@ internal StorageAccountsOperations(StorageManagementClient client) // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 204) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -422,7 +429,7 @@ internal StorageAccountsOperations(StorageManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -431,7 +438,7 @@ internal StorageAccountsOperations(StorageManagementClient client) } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -455,91 +462,91 @@ internal StorageAccountsOperations(StorageManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> GetPropertiesWithHttpMessagesAsync(string resourceGroupName, string accountName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> GetPropertiesWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (accountName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "accountName"); + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } if (accountName != null) { if (accountName.Length > 24) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "accountName", 24); + throw new ValidationException(ValidationRules.MaxLength, "accountName", 24); } if (accountName.Length < 3) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3); + throw new ValidationException(ValidationRules.MinLength, "accountName", 3); } } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "GetProperties", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetProperties", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } if (customHeaders != null) { @@ -556,35 +563,35 @@ internal StorageAccountsOperations(StorageManagementClient client) // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -592,15 +599,15 @@ internal StorageAccountsOperations(StorageManagementClient client) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -610,7 +617,7 @@ internal StorageAccountsOperations(StorageManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -623,7 +630,7 @@ internal StorageAccountsOperations(StorageManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -632,12 +639,12 @@ internal StorageAccountsOperations(StorageManagementClient client) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -674,96 +681,96 @@ internal StorageAccountsOperations(StorageManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountUpdateParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (accountName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "accountName"); + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } if (accountName != null) { if (accountName.Length > 24) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "accountName", 24); + throw new ValidationException(ValidationRules.MaxLength, "accountName", 24); } if (accountName.Length < 3) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3); + throw new ValidationException(ValidationRules.MinLength, "accountName", 3); } } if (parameters == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Update", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("PATCH"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } if (customHeaders != null) { @@ -781,40 +788,40 @@ internal StorageAccountsOperations(StorageManagementClient client) string _requestContent = null; if(parameters != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -822,15 +829,15 @@ internal StorageAccountsOperations(StorageManagementClient client) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -840,7 +847,7 @@ internal StorageAccountsOperations(StorageManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -853,7 +860,7 @@ internal StorageAccountsOperations(StorageManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -862,12 +869,12 @@ internal StorageAccountsOperations(StorageManagementClient client) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -887,91 +894,91 @@ internal StorageAccountsOperations(StorageManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string accountName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string accountName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (accountName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "accountName"); + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } if (accountName != null) { if (accountName.Length > 24) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "accountName", 24); + throw new ValidationException(ValidationRules.MaxLength, "accountName", 24); } if (accountName.Length < 3) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3); + throw new ValidationException(ValidationRules.MinLength, "accountName", 3); } } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListKeys", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListKeys", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/listKeys").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } if (customHeaders != null) { @@ -988,35 +995,35 @@ internal StorageAccountsOperations(StorageManagementClient client) // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1024,15 +1031,15 @@ internal StorageAccountsOperations(StorageManagementClient client) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1042,7 +1049,7 @@ internal StorageAccountsOperations(StorageManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1055,7 +1062,7 @@ internal StorageAccountsOperations(StorageManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -1064,12 +1071,12 @@ internal StorageAccountsOperations(StorageManagementClient client) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1084,68 +1091,68 @@ internal StorageAccountsOperations(StorageManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Storage/storageAccounts").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } if (customHeaders != null) { @@ -1162,35 +1169,35 @@ internal StorageAccountsOperations(StorageManagementClient client) // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1198,15 +1205,15 @@ internal StorageAccountsOperations(StorageManagementClient client) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1216,7 +1223,7 @@ internal StorageAccountsOperations(StorageManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1229,7 +1236,7 @@ internal StorageAccountsOperations(StorageManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -1238,12 +1245,12 @@ internal StorageAccountsOperations(StorageManagementClient client) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1262,74 +1269,74 @@ internal StorageAccountsOperations(StorageManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } if (customHeaders != null) { @@ -1346,35 +1353,35 @@ internal StorageAccountsOperations(StorageManagementClient client) // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1382,15 +1389,15 @@ internal StorageAccountsOperations(StorageManagementClient client) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1400,7 +1407,7 @@ internal StorageAccountsOperations(StorageManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1413,7 +1420,7 @@ internal StorageAccountsOperations(StorageManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -1422,12 +1429,12 @@ internal StorageAccountsOperations(StorageManagementClient client) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1453,100 +1460,100 @@ internal StorageAccountsOperations(StorageManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountRegenerateKeyParameters regenerateKey, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountRegenerateKeyParameters regenerateKey, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (accountName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "accountName"); + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } if (accountName != null) { if (accountName.Length > 24) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "accountName", 24); + throw new ValidationException(ValidationRules.MaxLength, "accountName", 24); } if (accountName.Length < 3) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3); + throw new ValidationException(ValidationRules.MinLength, "accountName", 3); } } if (regenerateKey == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "regenerateKey"); + throw new ValidationException(ValidationRules.CannotBeNull, "regenerateKey"); } if (regenerateKey != null) { regenerateKey.Validate(); } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("regenerateKey", regenerateKey); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "RegenerateKey", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "RegenerateKey", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/regenerateKey").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } if (customHeaders != null) { @@ -1564,40 +1571,40 @@ internal StorageAccountsOperations(StorageManagementClient client) string _requestContent = null; if(regenerateKey != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(regenerateKey, this.Client.SerializationSettings); + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(regenerateKey, Client.SerializationSettings); _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1605,15 +1612,15 @@ internal StorageAccountsOperations(StorageManagementClient client) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1623,7 +1630,7 @@ internal StorageAccountsOperations(StorageManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1636,7 +1643,7 @@ internal StorageAccountsOperations(StorageManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -1645,12 +1652,12 @@ internal StorageAccountsOperations(StorageManagementClient client) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1679,100 +1686,100 @@ internal StorageAccountsOperations(StorageManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountCreateParameters parameters, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string accountName, StorageAccountCreateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "resourceGroupName"); + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); } if (accountName == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "accountName"); + throw new ValidationException(ValidationRules.CannotBeNull, "accountName"); } if (accountName != null) { if (accountName.Length > 24) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MaxLength, "accountName", 24); + throw new ValidationException(ValidationRules.MaxLength, "accountName", 24); } if (accountName.Length < 3) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.MinLength, "accountName", 3); + throw new ValidationException(ValidationRules.MinLength, "accountName", 3); } } if (parameters == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "parameters"); + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); } if (parameters != null) { parameters.Validate(); } - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("accountName", accountName); tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}").ToString(); _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); _url = _url.Replace("{accountName}", System.Uri.EscapeDataString(accountName)); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } if (customHeaders != null) { @@ -1790,40 +1797,40 @@ internal StorageAccountsOperations(StorageManagementClient client) string _requestContent = null; if(parameters != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, this.Client.SerializationSettings); + _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings); _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 202) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -1831,15 +1838,15 @@ internal StorageAccountsOperations(StorageManagementClient client) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1849,7 +1856,7 @@ internal StorageAccountsOperations(StorageManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse(); + var _result = new AzureOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -1862,7 +1869,7 @@ internal StorageAccountsOperations(StorageManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -1871,15 +1878,16 @@ internal StorageAccountsOperations(StorageManagementClient client) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } } } + diff --git a/Samples/azure-storage/Azure.CSharp/StorageAccountsOperationsExtensions.cs b/Samples/azure-storage/Azure.CSharp/StorageAccountsOperationsExtensions.cs index 947dc439ba..5d0b55f1fe 100644 --- a/Samples/azure-storage/Azure.CSharp/StorageAccountsOperationsExtensions.cs +++ b/Samples/azure-storage/Azure.CSharp/StorageAccountsOperationsExtensions.cs @@ -1,9 +1,13 @@ namespace Petstore { - using System.Threading.Tasks; + using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; /// /// Extension methods for StorageAccountsOperations. @@ -23,7 +27,7 @@ public static partial class StorageAccountsOperationsExtensions /// public static CheckNameAvailabilityResult CheckNameAvailability(this IStorageAccountsOperations operations, StorageAccountCheckNameAvailabilityParameters accountName) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).CheckNameAvailabilityAsync(accountName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).CheckNameAvailabilityAsync(accountName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -40,7 +44,7 @@ public static CheckNameAvailabilityResult CheckNameAvailability(this IStorageAcc /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task CheckNameAvailabilityAsync(this IStorageAccountsOperations operations, StorageAccountCheckNameAvailabilityParameters accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task CheckNameAvailabilityAsync(this IStorageAccountsOperations operations, StorageAccountCheckNameAvailabilityParameters accountName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(accountName, null, cancellationToken).ConfigureAwait(false)) { @@ -71,7 +75,7 @@ public static CheckNameAvailabilityResult CheckNameAvailability(this IStorageAcc /// public static StorageAccount Create(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, StorageAccountCreateParameters parameters) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).CreateAsync(resourceGroupName, accountName, parameters), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).CreateAsync(resourceGroupName, accountName, parameters), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -98,7 +102,7 @@ public static StorageAccount Create(this IStorageAccountsOperations operations, /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task CreateAsync(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, StorageAccountCreateParameters parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task CreateAsync(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, StorageAccountCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, accountName, parameters, null, cancellationToken).ConfigureAwait(false)) { @@ -122,7 +126,7 @@ public static StorageAccount Create(this IStorageAccountsOperations operations, /// public static void Delete(this IStorageAccountsOperations operations, string resourceGroupName, string accountName) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).DeleteAsync(resourceGroupName, accountName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).DeleteAsync(resourceGroupName, accountName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -142,7 +146,7 @@ public static void Delete(this IStorageAccountsOperations operations, string res /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task DeleteAsync(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task DeleteAsync(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false); } @@ -165,7 +169,7 @@ public static void Delete(this IStorageAccountsOperations operations, string res /// public static StorageAccount GetProperties(this IStorageAccountsOperations operations, string resourceGroupName, string accountName) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).GetPropertiesAsync(resourceGroupName, accountName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).GetPropertiesAsync(resourceGroupName, accountName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -187,7 +191,7 @@ public static StorageAccount GetProperties(this IStorageAccountsOperations opera /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task GetPropertiesAsync(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task GetPropertiesAsync(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetPropertiesWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) { @@ -226,7 +230,7 @@ public static StorageAccount GetProperties(this IStorageAccountsOperations opera /// public static StorageAccount Update(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, StorageAccountUpdateParameters parameters) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).UpdateAsync(resourceGroupName, accountName, parameters), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).UpdateAsync(resourceGroupName, accountName, parameters), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -261,7 +265,7 @@ public static StorageAccount Update(this IStorageAccountsOperations operations, /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task UpdateAsync(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, StorageAccountUpdateParameters parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task UpdateAsync(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, StorageAccountUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, accountName, parameters, null, cancellationToken).ConfigureAwait(false)) { @@ -283,7 +287,7 @@ public static StorageAccount Update(this IStorageAccountsOperations operations, /// public static StorageAccountKeys ListKeys(this IStorageAccountsOperations operations, string resourceGroupName, string accountName) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).ListKeysAsync(resourceGroupName, accountName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).ListKeysAsync(resourceGroupName, accountName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -301,7 +305,7 @@ public static StorageAccountKeys ListKeys(this IStorageAccountsOperations operat /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task ListKeysAsync(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task ListKeysAsync(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListKeysWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)) { @@ -316,9 +320,9 @@ public static StorageAccountKeys ListKeys(this IStorageAccountsOperations operat /// /// The operations group for this extension method. /// - public static System.Collections.Generic.IEnumerable List(this IStorageAccountsOperations operations) + public static IEnumerable List(this IStorageAccountsOperations operations) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).ListAsync(), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).ListAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -331,7 +335,7 @@ public static System.Collections.Generic.IEnumerable List(this I /// /// The cancellation token. /// - public static async Task> ListAsync(this IStorageAccountsOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> ListAsync(this IStorageAccountsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { @@ -350,9 +354,9 @@ public static System.Collections.Generic.IEnumerable List(this I /// /// The name of the resource group within the user's subscription. /// - public static System.Collections.Generic.IEnumerable ListByResourceGroup(this IStorageAccountsOperations operations, string resourceGroupName) + public static IEnumerable ListByResourceGroup(this IStorageAccountsOperations operations, string resourceGroupName) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).ListByResourceGroupAsync(resourceGroupName), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).ListByResourceGroupAsync(resourceGroupName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -369,7 +373,7 @@ public static System.Collections.Generic.IEnumerable ListByResou /// /// The cancellation token. /// - public static async Task> ListByResourceGroupAsync(this IStorageAccountsOperations operations, string resourceGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> ListByResourceGroupAsync(this IStorageAccountsOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) { @@ -397,7 +401,7 @@ public static System.Collections.Generic.IEnumerable ListByResou /// public static StorageAccountKeys RegenerateKey(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, StorageAccountRegenerateKeyParameters regenerateKey) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).RegenerateKeyAsync(resourceGroupName, accountName, regenerateKey), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).RegenerateKeyAsync(resourceGroupName, accountName, regenerateKey), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -421,7 +425,7 @@ public static StorageAccountKeys RegenerateKey(this IStorageAccountsOperations o /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task RegenerateKeyAsync(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, StorageAccountRegenerateKeyParameters regenerateKey, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task RegenerateKeyAsync(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, StorageAccountRegenerateKeyParameters regenerateKey, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.RegenerateKeyWithHttpMessagesAsync(resourceGroupName, accountName, regenerateKey, null, cancellationToken).ConfigureAwait(false)) { @@ -452,7 +456,7 @@ public static StorageAccountKeys RegenerateKey(this IStorageAccountsOperations o /// public static StorageAccount BeginCreate(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, StorageAccountCreateParameters parameters) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).BeginCreateAsync(resourceGroupName, accountName, parameters), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((IStorageAccountsOperations)s).BeginCreateAsync(resourceGroupName, accountName, parameters), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -479,7 +483,7 @@ public static StorageAccount BeginCreate(this IStorageAccountsOperations operati /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task BeginCreateAsync(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, StorageAccountCreateParameters parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task BeginCreateAsync(this IStorageAccountsOperations operations, string resourceGroupName, string accountName, StorageAccountCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, accountName, parameters, null, cancellationToken).ConfigureAwait(false)) { @@ -489,3 +493,4 @@ public static StorageAccount BeginCreate(this IStorageAccountsOperations operati } } + diff --git a/Samples/azure-storage/Azure.CSharp/StorageManagementClient.cs b/Samples/azure-storage/Azure.CSharp/StorageManagementClient.cs index 2b534599b3..d16cb0caa0 100644 --- a/Samples/azure-storage/Azure.CSharp/StorageManagementClient.cs +++ b/Samples/azure-storage/Azure.CSharp/StorageManagementClient.cs @@ -1,15 +1,21 @@ namespace Petstore { - using System.Linq; using Microsoft.Rest; using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; /// /// The Storage Management Client. /// - public partial class StorageManagementClient : Microsoft.Rest.ServiceClient, IStorageManagementClient, IAzureClient + public partial class StorageManagementClient : ServiceClient, IStorageManagementClient, IAzureClient { /// /// The base URI of the service. @@ -29,7 +35,7 @@ public partial class StorageManagementClient : Microsoft.Rest.ServiceClient /// Credentials needed for the client to connect to Azure. /// - public Microsoft.Rest.ServiceClientCredentials Credentials { get; private set; } + public ServiceClientCredentials Credentials { get; private set; } /// /// Gets subscription credentials which uniquely identify Microsoft Azure @@ -78,7 +84,7 @@ public partial class StorageManagementClient : Microsoft.Rest.ServiceClient protected StorageManagementClient(params System.Net.Http.DelegatingHandler[] handlers) : base(handlers) { - this.Initialize(); + Initialize(); } /// @@ -92,7 +98,7 @@ protected StorageManagementClient(params System.Net.Http.DelegatingHandler[] han /// protected StorageManagementClient(System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : base(rootHandler, handlers) { - this.Initialize(); + Initialize(); } /// @@ -113,7 +119,7 @@ protected StorageManagementClient(System.Uri baseUri, params System.Net.Http.Del { throw new System.ArgumentNullException("baseUri"); } - this.BaseUri = baseUri; + BaseUri = baseUri; } /// @@ -137,7 +143,7 @@ protected StorageManagementClient(System.Uri baseUri, System.Net.Http.HttpClient { throw new System.ArgumentNullException("baseUri"); } - this.BaseUri = baseUri; + BaseUri = baseUri; } /// @@ -152,16 +158,16 @@ protected StorageManagementClient(System.Uri baseUri, System.Net.Http.HttpClient /// /// Thrown when a required parameter is null /// - public StorageManagementClient(Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + public StorageManagementClient(ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) { if (credentials == null) { throw new System.ArgumentNullException("credentials"); } - this.Credentials = credentials; - if (this.Credentials != null) + Credentials = credentials; + if (Credentials != null) { - this.Credentials.InitializeServiceClient(this); + Credentials.InitializeServiceClient(this); } } @@ -180,16 +186,16 @@ public StorageManagementClient(Microsoft.Rest.ServiceClientCredentials credentia /// /// Thrown when a required parameter is null /// - public StorageManagementClient(Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + public StorageManagementClient(ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (credentials == null) { throw new System.ArgumentNullException("credentials"); } - this.Credentials = credentials; - if (this.Credentials != null) + Credentials = credentials; + if (Credentials != null) { - this.Credentials.InitializeServiceClient(this); + Credentials.InitializeServiceClient(this); } } @@ -208,7 +214,7 @@ public StorageManagementClient(Microsoft.Rest.ServiceClientCredentials credentia /// /// Thrown when a required parameter is null /// - public StorageManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) + public StorageManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, params System.Net.Http.DelegatingHandler[] handlers) : this(handlers) { if (baseUri == null) { @@ -218,11 +224,11 @@ public StorageManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClientC { throw new System.ArgumentNullException("credentials"); } - this.BaseUri = baseUri; - this.Credentials = credentials; - if (this.Credentials != null) + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) { - this.Credentials.InitializeServiceClient(this); + Credentials.InitializeServiceClient(this); } } @@ -244,7 +250,7 @@ public StorageManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClientC /// /// Thrown when a required parameter is null /// - public StorageManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) + public StorageManagementClient(System.Uri baseUri, ServiceClientCredentials credentials, System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (baseUri == null) { @@ -254,11 +260,11 @@ public StorageManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClientC { throw new System.ArgumentNullException("credentials"); } - this.BaseUri = baseUri; - this.Credentials = credentials; - if (this.Credentials != null) + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) { - this.Credentials.InitializeServiceClient(this); + Credentials.InitializeServiceClient(this); } } @@ -271,13 +277,13 @@ public StorageManagementClient(System.Uri baseUri, Microsoft.Rest.ServiceClientC /// private void Initialize() { - this.StorageAccounts = new StorageAccountsOperations(this); - this.Usage = new UsageOperations(this); - this.BaseUri = new System.Uri("https://management.azure.com"); - this.ApiVersion = "2015-06-15"; - this.AcceptLanguage = "en-US"; - this.LongRunningOperationRetryTimeout = 30; - this.GenerateClientRequestId = true; + StorageAccounts = new StorageAccountsOperations(this); + Usage = new UsageOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2015-06-15"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; SerializationSettings = new Newtonsoft.Json.JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, @@ -285,10 +291,10 @@ private void Initialize() DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, - ContractResolver = new Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(), + ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new System.Collections.Generic.List { - new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter() + new Iso8601TimeSpanConverter() } }; DeserializationSettings = new Newtonsoft.Json.JsonSerializerSettings @@ -297,14 +303,15 @@ private void Initialize() DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, - ContractResolver = new Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(), + ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new System.Collections.Generic.List { - new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter() + new Iso8601TimeSpanConverter() } }; CustomInitialize(); - DeserializationSettings.Converters.Add(new Microsoft.Rest.Azure.CloudErrorJsonConverter()); - } + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } } } + diff --git a/Samples/azure-storage/Azure.CSharp/UsageOperations.cs b/Samples/azure-storage/Azure.CSharp/UsageOperations.cs index ff238c5fcf..163dc35526 100644 --- a/Samples/azure-storage/Azure.CSharp/UsageOperations.cs +++ b/Samples/azure-storage/Azure.CSharp/UsageOperations.cs @@ -1,15 +1,22 @@ namespace Petstore { - using System.Linq; using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; /// /// UsageOperations operations. /// - internal partial class UsageOperations : Microsoft.Rest.IServiceOperations, IUsageOperations + internal partial class UsageOperations : IServiceOperations, IUsageOperations { /// /// Initializes a new instance of the UsageOperations class. @@ -22,11 +29,11 @@ internal partial class UsageOperations : Microsoft.Rest.IServiceOperations internal UsageOperations(StorageManagementClient client) { - if (client == null) + if (client == null) { throw new System.ArgumentNullException("client"); } - this.Client = client; + Client = client; } /// @@ -44,68 +51,68 @@ internal UsageOperations(StorageManagementClient client) /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task>> ListWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (this.Client.ApiVersion == null) + if (Client.ApiVersion == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); } - if (this.Client.SubscriptionId == null) + if (Client.SubscriptionId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); } // Construct URL - var _baseUrl = this.Client.BaseUri.AbsoluteUri; + var _baseUrl = Client.BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages").ToString(); - _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId)); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); - if (this.Client.ApiVersion != null) + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) { - _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion))); + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); } if (_queryParameters.Count > 0) { _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers - if (this.Client.GenerateClientRequestId != null && this.Client.GenerateClientRequestId.Value) + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) { _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); } - if (this.Client.AcceptLanguage != null) + if (Client.AcceptLanguage != null) { if (_httpRequest.Headers.Contains("accept-language")) { _httpRequest.Headers.Remove("accept-language"); } - _httpRequest.Headers.TryAddWithoutValidation("accept-language", this.Client.AcceptLanguage); + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); } if (customHeaders != null) { @@ -122,35 +129,35 @@ internal UsageOperations(StorageManagementClient client) // Serialize Request string _requestContent = null; // Set Credentials - if (this.Client.Credentials != null) + if (Client.Credentials != null) { cancellationToken.ThrowIfCancellationRequested(); - await this.Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.Azure.CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); - CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.Client.DeserializationSettings); + CloudError _errorBody = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); if (_errorBody != null) { - ex = new Microsoft.Rest.Azure.CloudException(_errorBody.Message); + ex = new CloudException(_errorBody.Message); ex.Body = _errorBody; } } @@ -158,15 +165,15 @@ internal UsageOperations(StorageManagementClient client) { // Ignore the exception } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_httpResponse.Headers.Contains("x-ms-request-id")) { ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault(); } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -176,7 +183,7 @@ internal UsageOperations(StorageManagementClient client) throw ex; } // Create Result - var _result = new Microsoft.Rest.Azure.AzureOperationResponse>(); + var _result = new AzureOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_httpResponse.Headers.Contains("x-ms-request-id")) @@ -189,7 +196,7 @@ internal UsageOperations(StorageManagementClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.Client.DeserializationSettings); + _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -198,15 +205,16 @@ internal UsageOperations(StorageManagementClient client) { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } } } + diff --git a/Samples/azure-storage/Azure.CSharp/UsageOperationsExtensions.cs b/Samples/azure-storage/Azure.CSharp/UsageOperationsExtensions.cs index 7d7401c5c5..b318c294c2 100644 --- a/Samples/azure-storage/Azure.CSharp/UsageOperationsExtensions.cs +++ b/Samples/azure-storage/Azure.CSharp/UsageOperationsExtensions.cs @@ -1,9 +1,13 @@ namespace Petstore { - using System.Threading.Tasks; + using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; /// /// Extension methods for UsageOperations. @@ -17,9 +21,9 @@ public static partial class UsageOperationsExtensions /// /// The operations group for this extension method. /// - public static System.Collections.Generic.IEnumerable List(this IUsageOperations operations) + public static IEnumerable List(this IUsageOperations operations) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((IUsageOperations)s).ListAsync(), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((IUsageOperations)s).ListAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -32,7 +36,7 @@ public static System.Collections.Generic.IEnumerable List(this IUsageOper /// /// The cancellation token. /// - public static async Task> ListAsync(this IUsageOperations operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> ListAsync(this IUsageOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { @@ -42,3 +46,4 @@ public static System.Collections.Generic.IEnumerable List(this IUsageOper } } + diff --git a/Samples/petstore/CSharp/ISwaggerPetstore.cs b/Samples/petstore/CSharp/ISwaggerPetstore.cs index 82b294d3ac..479c9cb311 100644 --- a/Samples/petstore/CSharp/ISwaggerPetstore.cs +++ b/Samples/petstore/CSharp/ISwaggerPetstore.cs @@ -1,7 +1,14 @@ namespace Petstore { + using Microsoft.Rest; using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.IO; + using System.Threading; + using System.Threading.Tasks; /// /// This is a sample server Petstore server. You can find out more about @@ -41,7 +48,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task AddPetUsingByteArrayWithHttpMessagesAsync(string body = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task AddPetUsingByteArrayWithHttpMessagesAsync(string body = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Add a new pet to the store @@ -59,7 +66,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task AddPetWithHttpMessagesAsync(Pet body = default(Pet), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task AddPetWithHttpMessagesAsync(Pet body = default(Pet), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Update an existing pet @@ -73,7 +80,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task UpdatePetWithHttpMessagesAsync(Pet body = default(Pet), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task UpdatePetWithHttpMessagesAsync(Pet body = default(Pet), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Finds Pets by status @@ -90,7 +97,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task>> FindPetsByStatusWithHttpMessagesAsync(System.Collections.Generic.IList status = default(System.Collections.Generic.IList), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> FindPetsByStatusWithHttpMessagesAsync(IList status = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Finds Pets by tags @@ -108,7 +115,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task>> FindPetsByTagsWithHttpMessagesAsync(System.Collections.Generic.IList tags = default(System.Collections.Generic.IList), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> FindPetsByTagsWithHttpMessagesAsync(IList tags = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Fake endpoint to test byte array return by 'Find pet by ID' @@ -126,7 +133,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task> FindPetsWithByteArrayWithHttpMessagesAsync(long petId, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> FindPetsWithByteArrayWithHttpMessagesAsync(long petId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Find pet by ID @@ -144,7 +151,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task> GetPetByIdWithHttpMessagesAsync(long petId, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> GetPetByIdWithHttpMessagesAsync(long petId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates a pet in the store with form data @@ -164,7 +171,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task UpdatePetWithFormWithHttpMessagesAsync(string petId, string name = default(string), string status = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task UpdatePetWithFormWithHttpMessagesAsync(string petId, string name = default(string), string status = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes a pet @@ -180,7 +187,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task DeletePetWithHttpMessagesAsync(long petId, string apiKey = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task DeletePetWithHttpMessagesAsync(long petId, string apiKey = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// uploads an image @@ -200,7 +207,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task UploadFileWithHttpMessagesAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task UploadFileWithHttpMessagesAsync(long petId, string additionalMetadata = default(string), Stream file = default(Stream), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Returns pet inventories by status @@ -214,7 +221,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task>> GetInventoryWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task>> GetInventoryWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Place an order for a pet @@ -228,7 +235,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task> PlaceOrderWithHttpMessagesAsync(Order body = default(Order), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> PlaceOrderWithHttpMessagesAsync(Order body = default(Order), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Find purchase order by ID @@ -246,7 +253,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task> GetOrderByIdWithHttpMessagesAsync(string orderId, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> GetOrderByIdWithHttpMessagesAsync(string orderId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete purchase order by ID @@ -264,7 +271,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task DeleteOrderWithHttpMessagesAsync(string orderId, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task DeleteOrderWithHttpMessagesAsync(string orderId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Create user @@ -281,7 +288,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task CreateUserWithHttpMessagesAsync(User body = default(User), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task CreateUserWithHttpMessagesAsync(User body = default(User), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates list of users with given input array @@ -295,7 +302,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task CreateUsersWithArrayInputWithHttpMessagesAsync(System.Collections.Generic.IList body = default(System.Collections.Generic.IList), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task CreateUsersWithArrayInputWithHttpMessagesAsync(IList body = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Creates list of users with given input array @@ -309,7 +316,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task CreateUsersWithListInputWithHttpMessagesAsync(System.Collections.Generic.IList body = default(System.Collections.Generic.IList), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task CreateUsersWithListInputWithHttpMessagesAsync(IList body = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Logs user into the system @@ -326,7 +333,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task> LoginUserWithHttpMessagesAsync(string username = default(string), string password = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> LoginUserWithHttpMessagesAsync(string username = default(string), string password = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Logs out current logged in user session @@ -337,7 +344,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task LogoutUserWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task LogoutUserWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Get user by user name @@ -351,7 +358,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task> GetUserByNameWithHttpMessagesAsync(string username, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task> GetUserByNameWithHttpMessagesAsync(string username, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updated user @@ -371,7 +378,7 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task UpdateUserWithHttpMessagesAsync(string username, User body = default(User), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task UpdateUserWithHttpMessagesAsync(string username, User body = default(User), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Delete user @@ -388,7 +395,8 @@ public partial interface ISwaggerPetstore : System.IDisposable /// /// The cancellation token. /// - System.Threading.Tasks.Task DeleteUserWithHttpMessagesAsync(string username, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + Task DeleteUserWithHttpMessagesAsync(string username, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } + diff --git a/Samples/petstore/CSharp/Models/Category.cs b/Samples/petstore/CSharp/Models/Category.cs index 2c14a66ee4..d202e6b8d1 100644 --- a/Samples/petstore/CSharp/Models/Category.cs +++ b/Samples/petstore/CSharp/Models/Category.cs @@ -1,6 +1,7 @@ namespace Petstore.Models { + using Newtonsoft.Json; using System.Linq; public partial class Category @@ -21,13 +22,14 @@ public Category() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } } } + diff --git a/Samples/petstore/CSharp/Models/Order.cs b/Samples/petstore/CSharp/Models/Order.cs index 49d64b44a4..130e7d5c5a 100644 --- a/Samples/petstore/CSharp/Models/Order.cs +++ b/Samples/petstore/CSharp/Models/Order.cs @@ -1,6 +1,7 @@ namespace Petstore.Models { + using Newtonsoft.Json; using System.Linq; public partial class Order @@ -27,35 +28,36 @@ public Order() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] - public long? Id { get; private set; } + [JsonProperty(PropertyName = "id")] + public long? Id { get; protected set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "petId")] + [JsonProperty(PropertyName = "petId")] public long? PetId { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "quantity")] + [JsonProperty(PropertyName = "quantity")] public int? Quantity { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "shipDate")] + [JsonProperty(PropertyName = "shipDate")] public System.DateTime? ShipDate { get; set; } /// /// Gets or sets order Status. Possible values include: 'placed', /// 'approved', 'delivered' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public string Status { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "complete")] + [JsonProperty(PropertyName = "complete")] public bool? Complete { get; set; } } } + diff --git a/Samples/petstore/CSharp/Models/Pet.cs b/Samples/petstore/CSharp/Models/Pet.cs index 3a7ae32e13..eaf4446949 100644 --- a/Samples/petstore/CSharp/Models/Pet.cs +++ b/Samples/petstore/CSharp/Models/Pet.cs @@ -1,6 +1,10 @@ namespace Petstore.Models { + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; using System.Linq; /// @@ -22,7 +26,7 @@ public Pet() { } /// The id of the pet. /// pet status in the store. Possible values /// include: 'available', 'pending', 'sold' - public Pet(string name, System.Collections.Generic.IList photoUrls, long? id = default(long?), Category category = default(Category), System.Collections.Generic.IList tags = default(System.Collections.Generic.IList), string status = default(string)) + public Pet(string name, IList photoUrls, long? id = default(long?), Category category = default(Category), IList tags = default(IList), string status = default(string)) { Id = id; Category = category; @@ -38,52 +42,53 @@ public Pet() { } /// /// A more detailed description of the id of the pet. /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "category")] + [JsonProperty(PropertyName = "category")] public Category Category { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "photoUrls")] - public System.Collections.Generic.IList PhotoUrls { get; set; } + [JsonProperty(PropertyName = "photoUrls")] + public IList PhotoUrls { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "tags")] - public System.Collections.Generic.IList Tags { get; set; } + [JsonProperty(PropertyName = "tags")] + public IList Tags { get; set; } /// /// Gets or sets pet status in the store. Possible values include: /// 'available', 'pending', 'sold' /// - [Newtonsoft.Json.JsonProperty(PropertyName = "status")] + [JsonProperty(PropertyName = "status")] public string Status { get; set; } /// /// Validate the object. /// - /// + /// /// Thrown if validation fails /// public virtual void Validate() { if (Name == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "Name"); + throw new ValidationException(ValidationRules.CannotBeNull, "Name"); } if (PhotoUrls == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "PhotoUrls"); + throw new ValidationException(ValidationRules.CannotBeNull, "PhotoUrls"); } } } } + diff --git a/Samples/petstore/CSharp/Models/Tag.cs b/Samples/petstore/CSharp/Models/Tag.cs index 4b1159c0c3..f617295201 100644 --- a/Samples/petstore/CSharp/Models/Tag.cs +++ b/Samples/petstore/CSharp/Models/Tag.cs @@ -1,6 +1,7 @@ namespace Petstore.Models { + using Newtonsoft.Json; using System.Linq; public partial class Tag @@ -21,13 +22,14 @@ public Tag() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "name")] + [JsonProperty(PropertyName = "name")] public string Name { get; set; } } } + diff --git a/Samples/petstore/CSharp/Models/User.cs b/Samples/petstore/CSharp/Models/User.cs index a9fc22bd6a..4b10c885a7 100644 --- a/Samples/petstore/CSharp/Models/User.cs +++ b/Samples/petstore/CSharp/Models/User.cs @@ -1,6 +1,7 @@ namespace Petstore.Models { + using Newtonsoft.Json; using System.Linq; public partial class User @@ -28,44 +29,45 @@ public User() { } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "id")] + [JsonProperty(PropertyName = "id")] public long? Id { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "username")] + [JsonProperty(PropertyName = "username")] public string Username { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "firstName")] + [JsonProperty(PropertyName = "firstName")] public string FirstName { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "lastName")] + [JsonProperty(PropertyName = "lastName")] public string LastName { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "email")] + [JsonProperty(PropertyName = "email")] public string Email { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "password")] + [JsonProperty(PropertyName = "password")] public string Password { get; set; } /// /// - [Newtonsoft.Json.JsonProperty(PropertyName = "phone")] + [JsonProperty(PropertyName = "phone")] public string Phone { get; set; } /// /// Gets or sets user Status /// - [Newtonsoft.Json.JsonProperty(PropertyName = "userStatus")] + [JsonProperty(PropertyName = "userStatus")] public int? UserStatus { get; set; } } } + diff --git a/Samples/petstore/CSharp/SwaggerPetstore.cs b/Samples/petstore/CSharp/SwaggerPetstore.cs index 9e923e1cee..9b14d2ae24 100644 --- a/Samples/petstore/CSharp/SwaggerPetstore.cs +++ b/Samples/petstore/CSharp/SwaggerPetstore.cs @@ -2,7 +2,17 @@ namespace Petstore { using Microsoft.Rest; + using Microsoft.Rest.Serialization; using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.IO; + using System.Net; + using System.Net.Http; + using System.Net.Http.Headers; + using System.Threading; + using System.Threading.Tasks; /// /// This is a sample server Petstore server. You can find out more about @@ -11,7 +21,7 @@ namespace Petstore /// irc.freenode.net, #swagger. For this sample, you can use the api key /// "special-key" to test the authorization filters /// - public partial class SwaggerPetstore : Microsoft.Rest.ServiceClient, ISwaggerPetstore + public partial class SwaggerPetstore : ServiceClient, ISwaggerPetstore { /// /// The base URI of the service. @@ -36,7 +46,7 @@ public partial class SwaggerPetstore : Microsoft.Rest.ServiceClient public SwaggerPetstore(params System.Net.Http.DelegatingHandler[] handlers) : base(handlers) { - this.Initialize(); + Initialize(); } /// @@ -50,7 +60,7 @@ public SwaggerPetstore(params System.Net.Http.DelegatingHandler[] handlers) : ba /// public SwaggerPetstore(System.Net.Http.HttpClientHandler rootHandler, params System.Net.Http.DelegatingHandler[] handlers) : base(rootHandler, handlers) { - this.Initialize(); + Initialize(); } /// @@ -71,7 +81,7 @@ public SwaggerPetstore(System.Uri baseUri, params System.Net.Http.DelegatingHand { throw new System.ArgumentNullException("baseUri"); } - this.BaseUri = baseUri; + BaseUri = baseUri; } /// @@ -95,19 +105,19 @@ public SwaggerPetstore(System.Uri baseUri, System.Net.Http.HttpClientHandler roo { throw new System.ArgumentNullException("baseUri"); } - this.BaseUri = baseUri; + BaseUri = baseUri; } /// /// An optional partial-method to perform custom initialization. - /// + /// partial void CustomInitialize(); /// /// Initializes client properties. /// private void Initialize() { - this.BaseUri = new System.Uri("http://petstore.swagger.io/v2"); + BaseUri = new System.Uri("http://petstore.swagger.io/v2"); SerializationSettings = new Newtonsoft.Json.JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, @@ -115,10 +125,10 @@ private void Initialize() DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, - ContractResolver = new Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(), + ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new System.Collections.Generic.List { - new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter() + new Iso8601TimeSpanConverter() } }; DeserializationSettings = new Newtonsoft.Json.JsonSerializerSettings @@ -127,14 +137,14 @@ private void Initialize() DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, - ContractResolver = new Microsoft.Rest.Serialization.ReadOnlyJsonContractResolver(), + ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new System.Collections.Generic.List { - new Microsoft.Rest.Serialization.Iso8601TimeSpanConverter() + new Iso8601TimeSpanConverter() } }; CustomInitialize(); - } + } /// /// Fake endpoint to test byte array in body parameter for adding a new pet to /// the store @@ -148,30 +158,30 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task AddPetUsingByteArrayWithHttpMessagesAsync(string body = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task AddPetUsingByteArrayWithHttpMessagesAsync(string body = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("body", body); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "AddPetUsingByteArray", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "AddPetUsingByteArray", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "pet").ToString(); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); @@ -192,38 +202,38 @@ private void Initialize() string _requestContent = null; if(body != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(body, this.SerializationSettings); + _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 405) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -233,12 +243,12 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -259,34 +269,34 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task AddPetWithHttpMessagesAsync(Pet body = default(Pet), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task AddPetWithHttpMessagesAsync(Pet body = default(Pet), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (body != null) { body.Validate(); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("body", body); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "AddPet", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "AddPet", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "pet").ToString(); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); @@ -307,38 +317,38 @@ private void Initialize() string _requestContent = null; if(body != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(body, this.SerializationSettings); + _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 405) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -348,12 +358,12 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -370,34 +380,34 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task UpdatePetWithHttpMessagesAsync(Pet body = default(Pet), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task UpdatePetWithHttpMessagesAsync(Pet body = default(Pet), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (body != null) { body.Validate(); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("body", body); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "UpdatePet", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "UpdatePet", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "pet").ToString(); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); @@ -418,38 +428,38 @@ private void Initialize() string _requestContent = null; if(body != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(body, this.SerializationSettings); + _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 405 && (int)_statusCode != 404 && (int)_statusCode != 400) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -459,12 +469,12 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -484,32 +494,32 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task>> FindPetsByStatusWithHttpMessagesAsync(System.Collections.Generic.IList status = default(System.Collections.Generic.IList), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> FindPetsByStatusWithHttpMessagesAsync(IList status = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("status", status); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "FindPetsByStatus", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "FindPetsByStatus", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "pet/findByStatus").ToString(); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + List _queryParameters = new List(); if (status != null) { _queryParameters.Add(string.Format("status={0}", System.Uri.EscapeDataString(string.Join(",", status)))); @@ -519,7 +529,7 @@ private void Initialize() _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); @@ -541,31 +551,31 @@ private void Initialize() // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 400) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -575,7 +585,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse>(); + var _result = new HttpOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; // Deserialize Response @@ -584,7 +594,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -593,12 +603,12 @@ private void Initialize() { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -619,32 +629,32 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task>> FindPetsByTagsWithHttpMessagesAsync(System.Collections.Generic.IList tags = default(System.Collections.Generic.IList), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> FindPetsByTagsWithHttpMessagesAsync(IList tags = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("tags", tags); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "FindPetsByTags", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "FindPetsByTags", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "pet/findByTags").ToString(); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + List _queryParameters = new List(); if (tags != null) { _queryParameters.Add(string.Format("tags={0}", System.Uri.EscapeDataString(string.Join(",", tags)))); @@ -654,7 +664,7 @@ private void Initialize() _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); @@ -676,31 +686,31 @@ private void Initialize() // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 400) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -710,7 +720,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse>(); + var _result = new HttpOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; // Deserialize Response @@ -719,7 +729,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -728,12 +738,12 @@ private void Initialize() { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -754,34 +764,34 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> FindPetsWithByteArrayWithHttpMessagesAsync(long petId, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> FindPetsWithByteArrayWithHttpMessagesAsync(long petId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("petId", petId); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "FindPetsWithByteArray", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "FindPetsWithByteArray", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "pet/{petId}").ToString(); - _url = _url.Replace("{petId}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(petId, this.SerializationSettings).Trim('"'))); + _url = _url.Replace("{petId}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(petId, SerializationSettings).Trim('"'))); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); @@ -803,31 +813,31 @@ private void Initialize() // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 404 && (int)_statusCode != 200 && (int)_statusCode != 400) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -837,7 +847,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; // Deserialize Response @@ -846,7 +856,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -855,12 +865,12 @@ private void Initialize() { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -881,34 +891,34 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> GetPetByIdWithHttpMessagesAsync(long petId, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> GetPetByIdWithHttpMessagesAsync(long petId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("petId", petId); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "GetPetById", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetPetById", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "pet/{petId}").ToString(); - _url = _url.Replace("{petId}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(petId, this.SerializationSettings).Trim('"'))); + _url = _url.Replace("{petId}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(petId, SerializationSettings).Trim('"'))); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); @@ -930,31 +940,31 @@ private void Initialize() // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 404 && (int)_statusCode != 200 && (int)_statusCode != 400) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -964,7 +974,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; // Deserialize Response @@ -973,7 +983,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -982,12 +992,12 @@ private void Initialize() { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1010,40 +1020,40 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task UpdatePetWithFormWithHttpMessagesAsync(string petId, string name = default(string), string status = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task UpdatePetWithFormWithHttpMessagesAsync(string petId, string name = default(string), string status = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (petId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "petId"); + throw new ValidationException(ValidationRules.CannotBeNull, "petId"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("petId", petId); tracingParameters.Add("name", name); tracingParameters.Add("status", status); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "UpdatePetWithForm", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "UpdatePetWithForm", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "pet/{petId}").ToString(); _url = _url.Replace("{petId}", System.Uri.EscapeDataString(petId)); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); @@ -1077,31 +1087,31 @@ private void Initialize() // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 405) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1111,12 +1121,12 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1135,32 +1145,32 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task DeletePetWithHttpMessagesAsync(long petId, string apiKey = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task DeletePetWithHttpMessagesAsync(long petId, string apiKey = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("apiKey", apiKey); tracingParameters.Add("petId", petId); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "DeletePet", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "DeletePet", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "pet/{petId}").ToString(); - _url = _url.Replace("{petId}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(petId, this.SerializationSettings).Trim('"'))); + _url = _url.Replace("{petId}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(petId, SerializationSettings).Trim('"'))); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); @@ -1190,31 +1200,31 @@ private void Initialize() // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 400) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1224,12 +1234,12 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1252,33 +1262,33 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task UploadFileWithHttpMessagesAsync(long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task UploadFileWithHttpMessagesAsync(long petId, string additionalMetadata = default(string), Stream file = default(Stream), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("petId", petId); tracingParameters.Add("additionalMetadata", additionalMetadata); tracingParameters.Add("file", file); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "UploadFile", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "UploadFile", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "pet/{petId}/uploadImage").ToString(); - _url = _url.Replace("{petId}", System.Uri.EscapeDataString(Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(petId, this.SerializationSettings).Trim('"'))); + _url = _url.Replace("{petId}", System.Uri.EscapeDataString(SafeJsonConvert.SerializeObject(petId, SerializationSettings).Trim('"'))); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); @@ -1307,45 +1317,45 @@ private void Initialize() { System.Net.Http.StreamContent _file = new System.Net.Http.StreamContent(file); _file.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("application/octet-stream"); - System.IO.FileStream _fileAsFileStream = file as System.IO.FileStream; + FileStream _fileAsFileStream = file as FileStream; if (_fileAsFileStream != null) { System.Net.Http.Headers.ContentDispositionHeaderValue _contentDispositionHeaderValue = new System.Net.Http.Headers.ContentDispositionHeaderValue("form-data"); _contentDispositionHeaderValue.Name = "file"; _contentDispositionHeaderValue.FileName = _fileAsFileStream.Name; - _file.Headers.ContentDisposition = _contentDispositionHeaderValue; - } + _file.Headers.ContentDisposition = _contentDispositionHeaderValue; + } _multiPartContent.Add(_file, "file"); } _httpRequest.Content = _multiPartContent; // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if (!_httpResponse.IsSuccessStatusCode) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1355,12 +1365,12 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1377,32 +1387,32 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task>> GetInventoryWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task>> GetInventoryWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "GetInventory", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetInventory", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "store/inventory").ToString(); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); @@ -1424,31 +1434,31 @@ private void Initialize() // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1458,7 +1468,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse>(); + var _result = new HttpOperationResponse>(); _result.Request = _httpRequest; _result.Response = _httpResponse; // Deserialize Response @@ -1467,7 +1477,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject>(_responseContent, DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -1476,12 +1486,12 @@ private void Initialize() { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1498,33 +1508,33 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> PlaceOrderWithHttpMessagesAsync(Order body = default(Order), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> PlaceOrderWithHttpMessagesAsync(Order body = default(Order), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("body", body); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "PlaceOrder", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "PlaceOrder", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "store/order").ToString(); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); @@ -1545,38 +1555,38 @@ private void Initialize() string _requestContent = null; if(body != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(body, this.SerializationSettings); + _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 400) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1586,7 +1596,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; // Deserialize Response @@ -1595,7 +1605,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -1604,12 +1614,12 @@ private void Initialize() { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1630,41 +1640,41 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> GetOrderByIdWithHttpMessagesAsync(string orderId, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> GetOrderByIdWithHttpMessagesAsync(string orderId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (orderId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "orderId"); + throw new ValidationException(ValidationRules.CannotBeNull, "orderId"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("orderId", orderId); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "GetOrderById", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetOrderById", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "store/order/{orderId}").ToString(); _url = _url.Replace("{orderId}", System.Uri.EscapeDataString(orderId)); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); @@ -1686,31 +1696,31 @@ private void Initialize() // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 404 && (int)_statusCode != 200 && (int)_statusCode != 400) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1720,7 +1730,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; // Deserialize Response @@ -1729,7 +1739,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -1738,12 +1748,12 @@ private void Initialize() { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1764,38 +1774,38 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task DeleteOrderWithHttpMessagesAsync(string orderId, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task DeleteOrderWithHttpMessagesAsync(string orderId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (orderId == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "orderId"); + throw new ValidationException(ValidationRules.CannotBeNull, "orderId"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("orderId", orderId); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "DeleteOrder", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "DeleteOrder", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "store/order/{orderId}").ToString(); _url = _url.Replace("{orderId}", System.Uri.EscapeDataString(orderId)); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); @@ -1817,31 +1827,31 @@ private void Initialize() // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 404 && (int)_statusCode != 400) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1851,12 +1861,12 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1876,30 +1886,30 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task CreateUserWithHttpMessagesAsync(User body = default(User), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task CreateUserWithHttpMessagesAsync(User body = default(User), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("body", body); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "CreateUser", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "CreateUser", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "user").ToString(); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); @@ -1920,38 +1930,38 @@ private void Initialize() string _requestContent = null; if(body != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(body, this.SerializationSettings); + _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if (!_httpResponse.IsSuccessStatusCode) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -1961,12 +1971,12 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -1983,30 +1993,30 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task CreateUsersWithArrayInputWithHttpMessagesAsync(System.Collections.Generic.IList body = default(System.Collections.Generic.IList), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task CreateUsersWithArrayInputWithHttpMessagesAsync(IList body = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("body", body); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "CreateUsersWithArrayInput", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "CreateUsersWithArrayInput", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "user/createWithArray").ToString(); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); @@ -2027,38 +2037,38 @@ private void Initialize() string _requestContent = null; if(body != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(body, this.SerializationSettings); + _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if (!_httpResponse.IsSuccessStatusCode) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -2068,12 +2078,12 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -2090,30 +2100,30 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task CreateUsersWithListInputWithHttpMessagesAsync(System.Collections.Generic.IList body = default(System.Collections.Generic.IList), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task CreateUsersWithListInputWithHttpMessagesAsync(IList body = default(IList), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("body", body); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "CreateUsersWithListInput", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "CreateUsersWithListInput", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "user/createWithList").ToString(); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); @@ -2134,38 +2144,38 @@ private void Initialize() string _requestContent = null; if(body != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(body, this.SerializationSettings); + _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if (!_httpResponse.IsSuccessStatusCode) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -2175,12 +2185,12 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -2200,33 +2210,33 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> LoginUserWithHttpMessagesAsync(string username = default(string), string password = default(string), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> LoginUserWithHttpMessagesAsync(string username = default(string), string password = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("username", username); tracingParameters.Add("password", password); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "LoginUser", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "LoginUser", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "user/login").ToString(); - System.Collections.Generic.List _queryParameters = new System.Collections.Generic.List(); + List _queryParameters = new List(); if (username != null) { _queryParameters.Add(string.Format("username={0}", System.Uri.EscapeDataString(username))); @@ -2240,7 +2250,7 @@ private void Initialize() _url += "?" + string.Join("&", _queryParameters); } // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); @@ -2262,31 +2272,31 @@ private void Initialize() // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 200 && (int)_statusCode != 400) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -2296,7 +2306,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; // Deserialize Response @@ -2305,7 +2315,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -2314,12 +2324,12 @@ private void Initialize() { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -2333,29 +2343,29 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task LogoutUserWithHttpMessagesAsync(System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task LogoutUserWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "LogoutUser", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "LogoutUser", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "user/logout").ToString(); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); @@ -2377,31 +2387,31 @@ private void Initialize() // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if (!_httpResponse.IsSuccessStatusCode) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -2411,12 +2421,12 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -2433,41 +2443,41 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when unable to deserialize the response /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task> GetUserByNameWithHttpMessagesAsync(string username, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task> GetUserByNameWithHttpMessagesAsync(string username, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (username == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "username"); + throw new ValidationException(ValidationRules.CannotBeNull, "username"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("username", username); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "GetUserByName", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetUserByName", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "user/{username}").ToString(); _url = _url.Replace("{username}", System.Uri.EscapeDataString(username)); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); @@ -2489,31 +2499,31 @@ private void Initialize() // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 404 && (int)_statusCode != 200 && (int)_statusCode != 400) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -2523,7 +2533,7 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; // Deserialize Response @@ -2532,7 +2542,7 @@ private void Initialize() _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Microsoft.Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, this.DeserializationSettings); + _result.Body = SafeJsonConvert.DeserializeObject(_responseContent, DeserializationSettings); } catch (Newtonsoft.Json.JsonException ex) { @@ -2541,12 +2551,12 @@ private void Initialize() { _httpResponse.Dispose(); } - throw new Microsoft.Rest.SerializationException("Unable to deserialize the response.", _responseContent, ex); + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); } } if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -2569,39 +2579,39 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task UpdateUserWithHttpMessagesAsync(string username, User body = default(User), System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task UpdateUserWithHttpMessagesAsync(string username, User body = default(User), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (username == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "username"); + throw new ValidationException(ValidationRules.CannotBeNull, "username"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("username", username); tracingParameters.Add("body", body); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "UpdateUser", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "UpdateUser", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "user/{username}").ToString(); _url = _url.Replace("{username}", System.Uri.EscapeDataString(username)); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("PUT"); _httpRequest.RequestUri = new System.Uri(_url); @@ -2622,38 +2632,38 @@ private void Initialize() string _requestContent = null; if(body != null) { - _requestContent = Microsoft.Rest.Serialization.SafeJsonConvert.SerializeObject(body, this.SerializationSettings); + _requestContent = SafeJsonConvert.SerializeObject(body, SerializationSettings); _httpRequest.Content = new System.Net.Http.StringContent(_requestContent, System.Text.Encoding.UTF8); _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8"); } // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 404 && (int)_statusCode != 400) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -2663,12 +2673,12 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } @@ -2688,38 +2698,38 @@ private void Initialize() /// /// The cancellation token. /// - /// + /// /// Thrown when the operation returned an invalid status code /// - /// + /// /// Thrown when a required parameter is null /// /// /// A response object containing the response body and response headers. /// - public async System.Threading.Tasks.Task DeleteUserWithHttpMessagesAsync(string username, System.Collections.Generic.Dictionary> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async Task DeleteUserWithHttpMessagesAsync(string username, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (username == null) { - throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "username"); + throw new ValidationException(ValidationRules.CannotBeNull, "username"); } // Tracing - bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled; + bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; if (_shouldTrace) { - _invocationId = Microsoft.Rest.ServiceClientTracing.NextInvocationId.ToString(); - System.Collections.Generic.Dictionary tracingParameters = new System.Collections.Generic.Dictionary(); + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("username", username); tracingParameters.Add("cancellationToken", cancellationToken); - Microsoft.Rest.ServiceClientTracing.Enter(_invocationId, this, "DeleteUser", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "DeleteUser", tracingParameters); } // Construct URL - var _baseUrl = this.BaseUri.AbsoluteUri; + var _baseUrl = BaseUri.AbsoluteUri; var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "user/{username}").ToString(); _url = _url.Replace("{username}", System.Uri.EscapeDataString(username)); // Create HTTP transport objects - System.Net.Http.HttpRequestMessage _httpRequest = new System.Net.Http.HttpRequestMessage(); + var _httpRequest = new System.Net.Http.HttpRequestMessage(); System.Net.Http.HttpResponseMessage _httpResponse = null; _httpRequest.Method = new System.Net.Http.HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); @@ -2741,31 +2751,31 @@ private void Initialize() // Send Request if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); } cancellationToken.ThrowIfCancellationRequested(); - _httpResponse = await this.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + _httpResponse = await HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); } - System.Net.HttpStatusCode _statusCode = _httpResponse.StatusCode; + HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; if ((int)_statusCode != 404 && (int)_statusCode != 400) { - var ex = new Microsoft.Rest.HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); if (_httpResponse.Content != null) { _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); } else { _responseContent = string.Empty; } - ex.Request = new Microsoft.Rest.HttpRequestMessageWrapper(_httpRequest, _requestContent); - ex.Response = new Microsoft.Rest.HttpResponseMessageWrapper(_httpResponse, _responseContent); + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Error(_invocationId, ex); + ServiceClientTracing.Error(_invocationId, ex); } _httpRequest.Dispose(); if (_httpResponse != null) @@ -2775,15 +2785,16 @@ private void Initialize() throw ex; } // Create Result - var _result = new Microsoft.Rest.HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; if (_shouldTrace) { - Microsoft.Rest.ServiceClientTracing.Exit(_invocationId, _result); + ServiceClientTracing.Exit(_invocationId, _result); } return _result; } } } + diff --git a/Samples/petstore/CSharp/SwaggerPetstoreExtensions.cs b/Samples/petstore/CSharp/SwaggerPetstoreExtensions.cs index 7cb93652ec..fb77bb536c 100644 --- a/Samples/petstore/CSharp/SwaggerPetstoreExtensions.cs +++ b/Samples/petstore/CSharp/SwaggerPetstoreExtensions.cs @@ -1,8 +1,12 @@ namespace Petstore { - using System.Threading.Tasks; using Models; + using System.Collections; + using System.Collections.Generic; + using System.IO; + using System.Threading; + using System.Threading.Tasks; /// /// Extension methods for SwaggerPetstore. @@ -21,7 +25,7 @@ public static partial class SwaggerPetstoreExtensions /// public static void AddPetUsingByteArray(this ISwaggerPetstore operations, string body = default(string)) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).AddPetUsingByteArrayAsync(body), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + Task.Factory.StartNew(s => ((ISwaggerPetstore)s).AddPetUsingByteArrayAsync(body), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -37,7 +41,7 @@ public static partial class SwaggerPetstoreExtensions /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task AddPetUsingByteArrayAsync(this ISwaggerPetstore operations, string body = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task AddPetUsingByteArrayAsync(this ISwaggerPetstore operations, string body = default(string), CancellationToken cancellationToken = default(CancellationToken)) { await operations.AddPetUsingByteArrayWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false); } @@ -57,7 +61,7 @@ public static partial class SwaggerPetstoreExtensions /// public static void AddPet(this ISwaggerPetstore operations, Pet body = default(Pet)) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).AddPetAsync(body), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + Task.Factory.StartNew(s => ((ISwaggerPetstore)s).AddPetAsync(body), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -76,7 +80,7 @@ public static partial class SwaggerPetstoreExtensions /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task AddPetAsync(this ISwaggerPetstore operations, Pet body = default(Pet), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task AddPetAsync(this ISwaggerPetstore operations, Pet body = default(Pet), CancellationToken cancellationToken = default(CancellationToken)) { await operations.AddPetWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false); } @@ -92,7 +96,7 @@ public static partial class SwaggerPetstoreExtensions /// public static void UpdatePet(this ISwaggerPetstore operations, Pet body = default(Pet)) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).UpdatePetAsync(body), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + Task.Factory.StartNew(s => ((ISwaggerPetstore)s).UpdatePetAsync(body), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -107,7 +111,7 @@ public static partial class SwaggerPetstoreExtensions /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task UpdatePetAsync(this ISwaggerPetstore operations, Pet body = default(Pet), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task UpdatePetAsync(this ISwaggerPetstore operations, Pet body = default(Pet), CancellationToken cancellationToken = default(CancellationToken)) { await operations.UpdatePetWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false); } @@ -124,9 +128,9 @@ public static partial class SwaggerPetstoreExtensions /// /// Status values that need to be considered for filter /// - public static System.Collections.Generic.IList FindPetsByStatus(this ISwaggerPetstore operations, System.Collections.Generic.IList status = default(System.Collections.Generic.IList)) + public static IList FindPetsByStatus(this ISwaggerPetstore operations, IList status = default(IList)) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).FindPetsByStatusAsync(status), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((ISwaggerPetstore)s).FindPetsByStatusAsync(status), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -144,7 +148,7 @@ public static partial class SwaggerPetstoreExtensions /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task> FindPetsByStatusAsync(this ISwaggerPetstore operations, System.Collections.Generic.IList status = default(System.Collections.Generic.IList), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> FindPetsByStatusAsync(this ISwaggerPetstore operations, IList status = default(IList), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.FindPetsByStatusWithHttpMessagesAsync(status, null, cancellationToken).ConfigureAwait(false)) { @@ -165,9 +169,9 @@ public static partial class SwaggerPetstoreExtensions /// /// Tags to filter by /// - public static System.Collections.Generic.IList FindPetsByTags(this ISwaggerPetstore operations, System.Collections.Generic.IList tags = default(System.Collections.Generic.IList)) + public static IList FindPetsByTags(this ISwaggerPetstore operations, IList tags = default(IList)) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).FindPetsByTagsAsync(tags), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((ISwaggerPetstore)s).FindPetsByTagsAsync(tags), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -186,7 +190,7 @@ public static partial class SwaggerPetstoreExtensions /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task> FindPetsByTagsAsync(this ISwaggerPetstore operations, System.Collections.Generic.IList tags = default(System.Collections.Generic.IList), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> FindPetsByTagsAsync(this ISwaggerPetstore operations, IList tags = default(IList), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.FindPetsByTagsWithHttpMessagesAsync(tags, null, cancellationToken).ConfigureAwait(false)) { @@ -209,7 +213,7 @@ public static partial class SwaggerPetstoreExtensions /// public static string FindPetsWithByteArray(this ISwaggerPetstore operations, long petId) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).FindPetsWithByteArrayAsync(petId), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((ISwaggerPetstore)s).FindPetsWithByteArrayAsync(petId), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -228,7 +232,7 @@ public static string FindPetsWithByteArray(this ISwaggerPetstore operations, lon /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task FindPetsWithByteArrayAsync(this ISwaggerPetstore operations, long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task FindPetsWithByteArrayAsync(this ISwaggerPetstore operations, long petId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.FindPetsWithByteArrayWithHttpMessagesAsync(petId, null, cancellationToken).ConfigureAwait(false)) { @@ -251,7 +255,7 @@ public static string FindPetsWithByteArray(this ISwaggerPetstore operations, lon /// public static Pet GetPetById(this ISwaggerPetstore operations, long petId) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).GetPetByIdAsync(petId), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((ISwaggerPetstore)s).GetPetByIdAsync(petId), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -270,7 +274,7 @@ public static Pet GetPetById(this ISwaggerPetstore operations, long petId) /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task GetPetByIdAsync(this ISwaggerPetstore operations, long petId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task GetPetByIdAsync(this ISwaggerPetstore operations, long petId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetPetByIdWithHttpMessagesAsync(petId, null, cancellationToken).ConfigureAwait(false)) { @@ -295,7 +299,7 @@ public static Pet GetPetById(this ISwaggerPetstore operations, long petId) /// public static void UpdatePetWithForm(this ISwaggerPetstore operations, string petId, string name = default(string), string status = default(string)) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).UpdatePetWithFormAsync(petId, name, status), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + Task.Factory.StartNew(s => ((ISwaggerPetstore)s).UpdatePetWithFormAsync(petId, name, status), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -316,7 +320,7 @@ public static Pet GetPetById(this ISwaggerPetstore operations, long petId) /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task UpdatePetWithFormAsync(this ISwaggerPetstore operations, string petId, string name = default(string), string status = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task UpdatePetWithFormAsync(this ISwaggerPetstore operations, string petId, string name = default(string), string status = default(string), CancellationToken cancellationToken = default(CancellationToken)) { await operations.UpdatePetWithFormWithHttpMessagesAsync(petId, name, status, null, cancellationToken).ConfigureAwait(false); } @@ -334,7 +338,7 @@ public static Pet GetPetById(this ISwaggerPetstore operations, long petId) /// public static void DeletePet(this ISwaggerPetstore operations, long petId, string apiKey = default(string)) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).DeletePetAsync(petId, apiKey), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + Task.Factory.StartNew(s => ((ISwaggerPetstore)s).DeletePetAsync(petId, apiKey), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -351,7 +355,7 @@ public static Pet GetPetById(this ISwaggerPetstore operations, long petId) /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task DeletePetAsync(this ISwaggerPetstore operations, long petId, string apiKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task DeletePetAsync(this ISwaggerPetstore operations, long petId, string apiKey = default(string), CancellationToken cancellationToken = default(CancellationToken)) { await operations.DeletePetWithHttpMessagesAsync(petId, apiKey, null, cancellationToken).ConfigureAwait(false); } @@ -371,9 +375,9 @@ public static Pet GetPetById(this ISwaggerPetstore operations, long petId) /// /// file to upload /// - public static void UploadFile(this ISwaggerPetstore operations, long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream)) + public static void UploadFile(this ISwaggerPetstore operations, long petId, string additionalMetadata = default(string), Stream file = default(Stream)) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).UploadFileAsync(petId, additionalMetadata, file), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + Task.Factory.StartNew(s => ((ISwaggerPetstore)s).UploadFileAsync(petId, additionalMetadata, file), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -394,7 +398,7 @@ public static Pet GetPetById(this ISwaggerPetstore operations, long petId) /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task UploadFileAsync(this ISwaggerPetstore operations, long petId, string additionalMetadata = default(string), System.IO.Stream file = default(System.IO.Stream), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task UploadFileAsync(this ISwaggerPetstore operations, long petId, string additionalMetadata = default(string), Stream file = default(Stream), CancellationToken cancellationToken = default(CancellationToken)) { await operations.UploadFileWithHttpMessagesAsync(petId, additionalMetadata, file, null, cancellationToken).ConfigureAwait(false); } @@ -408,9 +412,9 @@ public static Pet GetPetById(this ISwaggerPetstore operations, long petId) /// /// The operations group for this extension method. /// - public static System.Collections.Generic.IDictionary GetInventory(this ISwaggerPetstore operations) + public static IDictionary GetInventory(this ISwaggerPetstore operations) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).GetInventoryAsync(), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((ISwaggerPetstore)s).GetInventoryAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -425,7 +429,7 @@ public static Pet GetPetById(this ISwaggerPetstore operations, long petId) /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task> GetInventoryAsync(this ISwaggerPetstore operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task> GetInventoryAsync(this ISwaggerPetstore operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetInventoryWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { @@ -444,7 +448,7 @@ public static Pet GetPetById(this ISwaggerPetstore operations, long petId) /// public static Order PlaceOrder(this ISwaggerPetstore operations, Order body = default(Order)) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).PlaceOrderAsync(body), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((ISwaggerPetstore)s).PlaceOrderAsync(body), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -459,7 +463,7 @@ public static Pet GetPetById(this ISwaggerPetstore operations, long petId) /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task PlaceOrderAsync(this ISwaggerPetstore operations, Order body = default(Order), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task PlaceOrderAsync(this ISwaggerPetstore operations, Order body = default(Order), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PlaceOrderWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false)) { @@ -482,7 +486,7 @@ public static Pet GetPetById(this ISwaggerPetstore operations, long petId) /// public static Order GetOrderById(this ISwaggerPetstore operations, string orderId) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).GetOrderByIdAsync(orderId), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((ISwaggerPetstore)s).GetOrderByIdAsync(orderId), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -501,7 +505,7 @@ public static Order GetOrderById(this ISwaggerPetstore operations, string orderI /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task GetOrderByIdAsync(this ISwaggerPetstore operations, string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task GetOrderByIdAsync(this ISwaggerPetstore operations, string orderId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetOrderByIdWithHttpMessagesAsync(orderId, null, cancellationToken).ConfigureAwait(false)) { @@ -524,7 +528,7 @@ public static Order GetOrderById(this ISwaggerPetstore operations, string orderI /// public static void DeleteOrder(this ISwaggerPetstore operations, string orderId) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).DeleteOrderAsync(orderId), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + Task.Factory.StartNew(s => ((ISwaggerPetstore)s).DeleteOrderAsync(orderId), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -543,7 +547,7 @@ public static void DeleteOrder(this ISwaggerPetstore operations, string orderId) /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task DeleteOrderAsync(this ISwaggerPetstore operations, string orderId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task DeleteOrderAsync(this ISwaggerPetstore operations, string orderId, CancellationToken cancellationToken = default(CancellationToken)) { await operations.DeleteOrderWithHttpMessagesAsync(orderId, null, cancellationToken).ConfigureAwait(false); } @@ -562,7 +566,7 @@ public static void DeleteOrder(this ISwaggerPetstore operations, string orderId) /// public static void CreateUser(this ISwaggerPetstore operations, User body = default(User)) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).CreateUserAsync(body), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + Task.Factory.StartNew(s => ((ISwaggerPetstore)s).CreateUserAsync(body), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -580,7 +584,7 @@ public static void DeleteOrder(this ISwaggerPetstore operations, string orderId) /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task CreateUserAsync(this ISwaggerPetstore operations, User body = default(User), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task CreateUserAsync(this ISwaggerPetstore operations, User body = default(User), CancellationToken cancellationToken = default(CancellationToken)) { await operations.CreateUserWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false); } @@ -594,9 +598,9 @@ public static void DeleteOrder(this ISwaggerPetstore operations, string orderId) /// /// List of user object /// - public static void CreateUsersWithArrayInput(this ISwaggerPetstore operations, System.Collections.Generic.IList body = default(System.Collections.Generic.IList)) + public static void CreateUsersWithArrayInput(this ISwaggerPetstore operations, IList body = default(IList)) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).CreateUsersWithArrayInputAsync(body), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + Task.Factory.StartNew(s => ((ISwaggerPetstore)s).CreateUsersWithArrayInputAsync(body), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -611,7 +615,7 @@ public static void DeleteOrder(this ISwaggerPetstore operations, string orderId) /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task CreateUsersWithArrayInputAsync(this ISwaggerPetstore operations, System.Collections.Generic.IList body = default(System.Collections.Generic.IList), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task CreateUsersWithArrayInputAsync(this ISwaggerPetstore operations, IList body = default(IList), CancellationToken cancellationToken = default(CancellationToken)) { await operations.CreateUsersWithArrayInputWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false); } @@ -625,9 +629,9 @@ public static void DeleteOrder(this ISwaggerPetstore operations, string orderId) /// /// List of user object /// - public static void CreateUsersWithListInput(this ISwaggerPetstore operations, System.Collections.Generic.IList body = default(System.Collections.Generic.IList)) + public static void CreateUsersWithListInput(this ISwaggerPetstore operations, IList body = default(IList)) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).CreateUsersWithListInputAsync(body), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + Task.Factory.StartNew(s => ((ISwaggerPetstore)s).CreateUsersWithListInputAsync(body), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -642,7 +646,7 @@ public static void DeleteOrder(this ISwaggerPetstore operations, string orderId) /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task CreateUsersWithListInputAsync(this ISwaggerPetstore operations, System.Collections.Generic.IList body = default(System.Collections.Generic.IList), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task CreateUsersWithListInputAsync(this ISwaggerPetstore operations, IList body = default(IList), CancellationToken cancellationToken = default(CancellationToken)) { await operations.CreateUsersWithListInputWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false); } @@ -661,7 +665,7 @@ public static void DeleteOrder(this ISwaggerPetstore operations, string orderId) /// public static string LoginUser(this ISwaggerPetstore operations, string username = default(string), string password = default(string)) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).LoginUserAsync(username, password), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((ISwaggerPetstore)s).LoginUserAsync(username, password), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -679,7 +683,7 @@ public static void DeleteOrder(this ISwaggerPetstore operations, string orderId) /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task LoginUserAsync(this ISwaggerPetstore operations, string username = default(string), string password = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task LoginUserAsync(this ISwaggerPetstore operations, string username = default(string), string password = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.LoginUserWithHttpMessagesAsync(username, password, null, cancellationToken).ConfigureAwait(false)) { @@ -695,7 +699,7 @@ public static void DeleteOrder(this ISwaggerPetstore operations, string orderId) /// public static void LogoutUser(this ISwaggerPetstore operations) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).LogoutUserAsync(), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + Task.Factory.StartNew(s => ((ISwaggerPetstore)s).LogoutUserAsync(), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -707,7 +711,7 @@ public static void LogoutUser(this ISwaggerPetstore operations) /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task LogoutUserAsync(this ISwaggerPetstore operations, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task LogoutUserAsync(this ISwaggerPetstore operations, CancellationToken cancellationToken = default(CancellationToken)) { await operations.LogoutUserWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false); } @@ -723,7 +727,7 @@ public static void LogoutUser(this ISwaggerPetstore operations) /// public static User GetUserByName(this ISwaggerPetstore operations, string username) { - return System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).GetUserByNameAsync(username), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + return Task.Factory.StartNew(s => ((ISwaggerPetstore)s).GetUserByNameAsync(username), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -738,7 +742,7 @@ public static User GetUserByName(this ISwaggerPetstore operations, string userna /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task GetUserByNameAsync(this ISwaggerPetstore operations, string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task GetUserByNameAsync(this ISwaggerPetstore operations, string username, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetUserByNameWithHttpMessagesAsync(username, null, cancellationToken).ConfigureAwait(false)) { @@ -763,7 +767,7 @@ public static User GetUserByName(this ISwaggerPetstore operations, string userna /// public static void UpdateUser(this ISwaggerPetstore operations, string username, User body = default(User)) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).UpdateUserAsync(username, body), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + Task.Factory.StartNew(s => ((ISwaggerPetstore)s).UpdateUserAsync(username, body), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -784,7 +788,7 @@ public static User GetUserByName(this ISwaggerPetstore operations, string userna /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task UpdateUserAsync(this ISwaggerPetstore operations, string username, User body = default(User), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task UpdateUserAsync(this ISwaggerPetstore operations, string username, User body = default(User), CancellationToken cancellationToken = default(CancellationToken)) { await operations.UpdateUserWithHttpMessagesAsync(username, body, null, cancellationToken).ConfigureAwait(false); } @@ -803,7 +807,7 @@ public static User GetUserByName(this ISwaggerPetstore operations, string userna /// public static void DeleteUser(this ISwaggerPetstore operations, string username) { - System.Threading.Tasks.Task.Factory.StartNew(s => ((ISwaggerPetstore)s).DeleteUserAsync(username), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None, System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); + Task.Factory.StartNew(s => ((ISwaggerPetstore)s).DeleteUserAsync(username), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); } /// @@ -821,10 +825,11 @@ public static void DeleteUser(this ISwaggerPetstore operations, string username) /// /// The cancellation token. /// - public static async System.Threading.Tasks.Task DeleteUserAsync(this ISwaggerPetstore operations, string username, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public static async Task DeleteUserAsync(this ISwaggerPetstore operations, string username, CancellationToken cancellationToken = default(CancellationToken)) { await operations.DeleteUserWithHttpMessagesAsync(username, null, cancellationToken).ConfigureAwait(false); } } } + From 2e9098c692afc7c0f6f11929ed1917e87f97fa41 Mon Sep 17 00:00:00 2001 From: Garrett Serack Date: Fri, 18 Nov 2016 15:38:35 -0800 Subject: [PATCH 08/10] merged from master and regenerated --- .gitattributes | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 01a3143e9c..600a4a267a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -20,7 +20,6 @@ *.htm text *.html text -*.js text *.json text *.msbuild text From 3ae41d3772ca5d6537a8030a2f05385320d2ea1a Mon Sep 17 00:00:00 2001 From: Garrett Serack Date: Mon, 21 Nov 2016 17:30:45 -0800 Subject: [PATCH 09/10] whitelist assemblies that should be signed --- build.proj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.proj b/build.proj index d0fb134767..e6dabaacf3 100644 --- a/build.proj +++ b/build.proj @@ -271,7 +271,7 @@ - <_TempBinaries Include="$(PackageOutputDir)\**\*.dll" Exclude="$(PackageOutputDir)\**\Newtonsoft.Json.dll;$(PackageOutputDir)\**\YamlDotNet.dll" /> + <_TempBinaries Include="$(PackageOutputDir)\**\*.dll" Exclude="$(PackageOutputDir)\**\Newtonsoft.Json.dll;$(PackageOutputDir)\**\YamlDotNet.dll;$(PackageOutputDir)\**\System.*.dll;$(PackageOutputDir)\**\ Microsoft.CodeAnalysis.dll" /> <_TempBinaries Include="$(PackageOutputDir)\**\*.exe" /> <_PackageBinaries Include="@(_TempBinaries)"> From 121b1e7e479e199e320b795f0d09e19fe8a0ba0a Mon Sep 17 00:00:00 2001 From: Garrett Serack Date: Mon, 28 Nov 2016 08:23:55 -0800 Subject: [PATCH 10/10] imported draft document --- docs/proposals/validation-tools/diagram.png | Bin 0 -> 101861 bytes docs/proposals/validation-tools/readme.md | 83 ++++++++++++++++++ .../proposals/validation-tools/screencap1.png | Bin 0 -> 47944 bytes .../proposals/validation-tools/screencap2.png | Bin 0 -> 168119 bytes .../proposals/validation-tools/screencap3.png | Bin 0 -> 166382 bytes 5 files changed, 83 insertions(+) create mode 100644 docs/proposals/validation-tools/diagram.png create mode 100644 docs/proposals/validation-tools/readme.md create mode 100644 docs/proposals/validation-tools/screencap1.png create mode 100644 docs/proposals/validation-tools/screencap2.png create mode 100644 docs/proposals/validation-tools/screencap3.png diff --git a/docs/proposals/validation-tools/diagram.png b/docs/proposals/validation-tools/diagram.png new file mode 100644 index 0000000000000000000000000000000000000000..28366b6e3db4df56cbdae88dcc8983eb4010bb93 GIT binary patch literal 101861 zcmYg%by$?&^EN54wn)1?c zRiDXrfgeaOq*SEf;A#`l@63^b-)Jrh2JUch(w2 zb(*fQ&#yYvJVGZs)g%O*Bqln3yU;rQ#HrMQs3Q+8&i1b{s@PcT7VC`FLqfRGAi-4b z)Uwnv=3G(gk|B{82qR|skyOFbh%_^V5UJ2o=(ggDP9x#>zL8z4ZSg+w7V*=#Siei5 z7r9~;9hW01nT(`&W1QP&M&@I^P06MWOj)-L&hyE4vDZB%2_C+UZcB{KeMk@X*Xfn!3({VuSZgd)H!;Di zj#>cK28M>pilTPhH6?Vu@x0K}Mdeua9hg@&HiBmbuQs9ODRbXRr;9HsyU~E2y-Gx3 zmw3@1VHG$7;@EIQR z2UZA~B&lMn+A8dF;uzdp!5K*o!+%eJ)`Snj%8R3$V>HO0E6#`2;0NlmwFK#R-wuhX@J9r_I4wG()`bK6bk%so#@y3*oE?iM5Md8vW8AX9|j}THjaF1 zD%F8y!`|dJ9O{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|~i+uPq&>7Tt)zkDfr`Fo@R-7q3fpCJ-qY80-fF6mcw_o$bwXdrF2?hi9JV zQUGkta<>!-WqNTsBB)W~m*IKyqtMDyQ3T^aoB)U;6QF27 zCTt~bmfJPHX>Rk(qfHKH@^=qL{THW{8x%YY3ZB%Bzjg|5>>MhfV;RDb{U9w!C(${? znjysN$$AOf^Dnsg>u!VNx6TQJ#F}5NBWZ6TeXplA25)nSNs;&kYk(((luS2(ibWKG z6=8$a~o znEWVQ@Rwm$Qi?st1NR1x0p!d;IaUKLkNs6+@Em{=g-?TAPkv&3{uyA?Gy}BB(yG}1 zRKgxu^xKy%=Aw7g$m zHMo!6F8kF`()mCO-S{TU1_D(O0=MMYHLK#wMp&GMc(R-jRWrJ-+sT5f2lUi5cc7>|>9ZJv7T z!m&8ScKzQ4jlGE`mj)L;krO;2XfP-KJxs_z5&GY;LH&O(8?*QK$oCA5q5a&NWgwc( MnR6EJ%slS@2T$~F3IG5A literal 0 HcmV?d00001 diff --git a/docs/proposals/validation-tools/readme.md b/docs/proposals/validation-tools/readme.md new file mode 100644 index 0000000000..4e9f096d95 --- /dev/null +++ b/docs/proposals/validation-tools/readme.md @@ -0,0 +1,83 @@ +# Swagger Validation Tools VS Code Extension + +## Objectives and High-level plan + +We plan on building a one-stop shop vs-code extension that will help the swagger authors get live and prompt feedback on the quality and correctness of their swaggers. We plan on reusing and building on top of the work that was done for the Autorest Linter VS code extension and integration our tools Autorest to simplify the users experience. + +## Overall architecture + +The following diagram provides a high-level architecture of the proposed SVT (Swagger Validation tools) VS Code extension. + +> ![](./diagram.png) + +1. SVT VS Code extension's client: the client is the implementation of UI and experience of the swagger authoring, details will follow later in the document on the proposed user experience. The swagger tooling team will take ownership of this component. + +2. SVT VS Code server component: The Autorest team will be owning this component and the current plan is to: + + - Load up Autorest in memory of the machine where VS Code resides. + - Investigate a way to include the server logic or process within Autorest (basically turn Autorest into the server) to improve performance. + - Define a clear interface for the different operations and calls that the client side will need to trigger different validation tools. + +3. Pluggable linter rules: the Autorest team will be working on a design and interface to allow anyone to contribute static linting rules in a more scalable (not directly authored into the code) way. The swagger volition tools team or anyone from the services team will be able to contribute to the rules as they see fit. + +4. Pluggable Validation tools: The swagger tooling team will mainly be responsible for building these tools except for the linter which will continue to be owned by the Autorest team, but that wouldn't stop contribution from anyone else. in the efforts of simplifying the user experience and potentially simplifying the process of integrating our tools with any IDE in the future (such as Visual Studio), all the validation tools will be hooked up to extension points on Autorest which is currently work in progress on Autorests side. Our tools can all be run through simple commands but we're committed to update them to adhere with any integration requirements from Auto-rest. + +## Standardizing validation tools output structure + +All the validation tools including the linter will be updated to output the same messaging structure. This will allow us to build parsers, analytics and potentially visualizers that are reusable across all our tools. The swagger tooling team will be working with the Autorest team on the messaging specs but so far we agree on that types of information that it will be providing, including: + +- Unified format (JSON) +- Tool Identification (linter, model validator) +- category: error or warning, info …etc +- Line, column & location info +- Short description +- Detailed description +- Intellisense +- Fix it recommendations. + +Not all tools will be able to offer all this information and some tools may provide extra info but we'll be defining a minimum set of parameters that should be provided. + +## Swagger Validation tools UI and Specs + +For our v0.1 our focus will be more on the richness of the functionality that extension offer rather than the beatification of it. As we build this initial proto-type and start sharing it with users, we will be collecting feedback on the user experience and work towards the optimal user experience. + +### Swagger Validation tools types + +Our classification of the tools will be based on how expense the tool is to run and whether all the information required for the validation is contained within the swagger itself or not. + +1. On the fly static validation tools: a good example is the linter, all the info required for validation is self-contained within the swagger and It's relatively inexpensive to process on the fly. + +The current user experience of the linter vs code extension is very simple and straight forward and we're planning on keeping this experience and extend it to cover other similar tools such as the semantic validator. To summarize it: + +- The user opens VS code and creates a new Swagger or edits an existing one. +- As he';s typing, in the background the SVT extension's client will be calling the extension's server (which is basically Autorest) and uploading the updated swagger content. +- The swagger server will trigger the configured and registered tools for "only the fly validation" and return the standardized messages If applicable. +- The client will process the response messages and depending on the content, either take no action or: + - Update the console with the list of errors or warnings + - Underline the erroneous area with swiggles and provide tips. + +The snapshot in figure (2) below provides an example of this experience. + +> ![](./screencap1.png) + +Figure (2) on the fly validation experience (taken from the current linter extension) + +2. Long running validation: a good example of this type of tools would be the live testing swagger validator. This tool picks up all sample request & response payloads for the operations defined in the swagger, runs the sample request against the service and finally matches & validates the response payload returned from the service to the sample response payload provided in the swagger. + +Running this type of validation continuously and on the fly will be very expensive, so the experience that we're proposing here is: + +- The user creates a new swagger or edits an existing one in VS code. +- As the user updates the document no requests will be sent to Autorest to fire up long running validation tools. +- When the user is ready to run a specific long running validation tools he will trigger it by: + - Selecting the JOSON file or giving it focus in VS Code. + - Clicking the tool's specific command button on the navigation as shown in figure (3) below, and yes these are **McDonalds** and **Burger King** Icons for now LOL (apologies this is the best of my photoshop skills ). + - Alternatively the user can right click on the JSON file in the file explorer and select the tool specific command as shown in figure (4) below. +- The request will go to Autorest and the response with all the errors and warnings will be returned and displayed in the VS code console similar to the current behavior of the linter's extension. swiggles will also be displayed under the location of the violation with hints displayed when the users hovers over them. + +> ![](./screencap2.png) + + (Figure 3) Trigger long running validations through navigation bar commands + +> ![](./screencap3.png) + +Figure (4) trigger long running operations through the file explorer's context menu diff --git a/docs/proposals/validation-tools/screencap1.png b/docs/proposals/validation-tools/screencap1.png new file mode 100644 index 0000000000000000000000000000000000000000..ed86f7a82d588bfdecfa1ff73182ef7048d91347 GIT binary patch literal 47944 zcmZs@1z1#F+cvBsp|q%oq#yz!U6O-{fYRM1(p@w3h#;Vp+;k%dNOuk0%Fs2`kkZW1 zIShPzyr1{^zW;cCjzbRj>^*z$wbm8qd0yAzi<*i&>D|Y7Z``;+`c^?!x^bf-n)uQjA2`0_qM+}7;|4Jm?%&ND zDQS;x+<+n9%D&R_GTFg;$34(a5xF|Kz|MQ_q8bBEOHWUG8+FPWO)RzE(!`5CdAlac zN24um`R!e@*0Wdm_;>O7Zc?g^%c@b{y(>F(A`j*Ugm=?S4J9$w|Md{lsA+etpMzyco-TiuX#=ea75h%bXD=5UfSil($npcv(w#aD?m|oPuz3s zX|vDqU5~1g#>*Oq=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y_3RQTA}2=)d{C~?X#c!y--MR z)YZO9Z2xq^Q)8I&^@@i(X4^Px#_mwhS4V2#(z>qw1Z{K&@j|7bb-Z<-wi0Qjq_sZe z_i7?1Q63WNex&e}cg!^ivso#vDK|A#tAdAl7e=xtlNq?$Bf_n2^v5HLm*o**I z-#_o?)3z3Na!ru+F_W}W^qXps$uZv)@cM-fK2oU*7v89#qe&+01TS2;@bC`9v vB4H#KEX?`;ES>M2a7+*Qf(r_=sxok?=kNXxhB_p- literal 0 HcmV?d00001 diff --git a/docs/proposals/validation-tools/screencap2.png b/docs/proposals/validation-tools/screencap2.png new file mode 100644 index 0000000000000000000000000000000000000000..e9ec041fbdb7d022007391b943c76b8aa7f755fb GIT binary patch literal 168119 zcmaI8byQSs8$JrsNHcWz&?Q|%Hw+~R0#ef5-QBGyFqFW6AV_zoL5p-sOGxM0yuRP} zTfc9eb6AT%fW7xT`>yA{uKRk3g=#2bW0GScARu5XE6HgiAfR+2ARv#SKS4l1WEaRM z1O9;MuB|A8Q1y*+2lxTmT3THi0ih=O>8%+G@H2*s(hGM41ghxAZ^Y!yV=DxNhZ1Eu zXZpZR6}hs77)gO{lyp3q_#(Z2x~GS;G};nB+Bb<>7p z&|B~j6Ntn!V&J`U=t8!j;Nk0*!)Ii)P;=?wr}p;}&pVzQz-KvnF!HRbs)C2Zjix_3 zon47(3@kVZ26c9wC@IUOX}1-T`Z>Svk?ERiEnT#HCo5S(Qc$#y?c zc--&3@8o#bHEiP|39X|lJ*4^5G?R18xO$&IE*O914Ka{{{^kpcrvw*Ptyre| z$ApIQ&$Mo^(kgw+JALIAvu(u$rrB*ufTLD*q&UwLp{p!#i4V}f$3nry0Udmg=3d|| z_q(C+-dFlo?$9>6+xjppYY@70nP%mmCBN6r7FMf?QJt1VB{mWoruT=?V7Rh-82ZU2 z17V#aE6><-VRDuec#k{85SmE zXcrsnEg*c^df0JuJV>)DCodm(dpvk_JU}DvgO}R49CWiWoK7L+bh}fU|9i3Zq8C?c z+kS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Mcob&lsGgFVNBI9)}4g<=XGlizb}Q1 z$=u;ZCbOdW(@dlk+w>eZKJf^0AVWBZDKCP2t2NWJL+%tK!BKLxIM(#tH5;1Ec9yyr z>FZ)XcW19z6jt|aduJ8|!mc!)*ets`Wr$hos? zj31)CN4#P=+464&ogEc*iCRdFO~yYRHVNC@RofBfF~4bu8CLIICu45dt+h`*fMb*3 z&XQ9O3^a>EgsLns^|s~aSr4P;zv@%U2G@l&2g%Ea5I^+pGoN@9P%Vlznso@U%y7>= z24Ncn!~Fvz^x>Bwwe>8-dh0`#a~@3btVBz#Ec1GEkKLDpoeKQWYD>3`4vPZru#blD z_KCgn>+@z&r#Bz<#1(sutU4nqXm+5-Znf!+vd07&c%GcG|m4A4Q5{E)-Xqf8yVOqyfZ}OMHbx(a}%p$rAPm9^Pl&&ls^Cf literal 0 HcmV?d00001 diff --git a/docs/proposals/validation-tools/screencap3.png b/docs/proposals/validation-tools/screencap3.png new file mode 100644 index 0000000000000000000000000000000000000000..30e0982d3334a1290707fc2ab4dce94c231738e7 GIT binary patch literal 166382 zcmZ5|1yodB_dY6(G($-%IUrKf-QA492uOE>G)i})baxB_lG5GXEg;?9{4c)m_pR^u zXD!ycGu(U6K0D6Y`+4>uSV=(=9hDdr4h{}oT1rd>4i2FQ4i0`6`8gciGr}^ZcfcQ> zIjBgAz`=${wt)}uCc^T#GJ?2V_39Gs2 z?A@by;HghNMqb)9oqBHYmR$=DTciy(Y!IRQF@5oqrzi;!NA8LFfdWs7EHZ;DgxseG z?@yr}#U%WVa8^uAD9#i6`5P?6C~-+;B2w~CjwCHiSwau#MGiN4Dvh+0sg9Sf?hPsK zJ5&2R$=c~WA3uIHx}EQQtFOP5P%4JikUapsp3HfnOmq#!_NzF8UaQYNlZ$h|JWzMP zAQZoA0XSeo6u+MfID3!I;oBw)+ck`hSWYUun z$aYdg&>+4MvcgoI?6X38un{simC8TJ`SZ^5HE+|%;*2krU);mJB@xn0<(fTgE0h)b zxNoLqxS<-Z?C__(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